OpenAPI document
A machine-readable OpenAPI 3.1 description of every route an API key can call, for Postman, code generators and AI agents.
GET /v1/openapi.json returns an OpenAPI 3.1 document of the routes an API key can use. Any valid key can read it, whatever its scope or site list, and so can the signed-in admin. It holds no site data.
curl -H "Authorization: Bearer anl_YOUR_KEY" \
"https://analytik.example.com/api/v1/openapi.json"
Load it into Postman or Insomnia, feed it to a client generator, or hand it to an agent framework as the tool list. The servers entry is /v1, relative to the address of your server and its base path.
What it contains
- Paths and methods of every route a key may call, generated from the same table the server uses to decide, so the document cannot list a route a key is refused, or miss one it can use.
x-analytik-scopeon each operation:readorwrite, the minimum scope of the key. A read key may call everyreadoperation; a write key all of them.- Parameters: path parameters, the range, interval and filter parameters of the stats routes, paging, and the required ones such as
dimensionfor the breakdown. - Security: one HTTP bearer scheme,
bearerKey(keys start withanl_), applied to every operation. - Errors: a shared
Errorschema ({ "error": "..." }) and the401,403and429answers. - Limit headers:
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reseton every answer andRetry-Afteron429.
Responses of large reports are described loosely (an object) on purpose; the HTTP API reference and the types say what is inside. Routes closed to keys (sign-in, key management, webhooks, share links, deleting a site) are left out.
info.version is the analytik version and info['x-api-version'] is v1.