Skip to main content
The Data City v2 API uses Bearer-token authentication. Every request must send an Authorization header.

Request format

Tokens are sent as plain HTTP Bearer credentials — no signing, no rotation header, no expiry parameter on the request itself.
Treat your API key like a password. Never check it into source control, ship it in a frontend bundle, or paste it into a shared chat. Store it as an environment variable or in a secrets manager.

Getting a key

API keys are issued manually by The Data City. To request one, email support@thedatacity.com with:
  • The name of your organisation.
  • The email address of the person who will hold the key.
  • A short description of what you intend to use the API for.
A member of the team will provision the key and reply with the value.

Replacing a key

If a key is leaked, lost, or you want to rotate it, email support@thedatacity.com and ask for a replacement. The old key will be disabled.

Failure modes

See Errors for the full envelope and other status codes.

Abilities

Each token is scoped to one or more abilities (for example companies:read, rtic:read, companies:companyDetails). The endpoints you can call are the intersection of what your token allows and what the route requires. If a request returns 403 despite a valid token, the missing piece is an ability — contact support to widen the scope.

Admin routes

A small number of /admin/... routes use a different X-API-Key header for internal use only. These are filtered out of the public reference and are not callable with a customer Bearer token.
Last modified on May 19, 2026