Skip to main content
The Datasite analytics API provides organization-scoped access to websites and reports. Keep API keys on the server and use the machine-readable OpenAPI contract for exact parameters and schemas.

Authentication

Create a key under the organization’s API & MCP settings and send it as a bearer token:
A key can cover every website in its organization or selected websites. Requests for an unassigned website return an authorization or not-found response. The current contract is available from GET /openapi.json.

Stats endpoints

Common parameters

The OpenAPI document defines exact query names, enums, defaults, and response schemas.

Examples

Errors

MCP

Organizations on Pro or Ultra can connect supported MCP clients when MCP is enabled. MCP access is read-only and organization-scoped. Use OAuth or a scoped ds_ key, then revoke access from API & MCP when it is no longer needed.