GET /v1/health and GET /v1/openapi.json needs an API key, sent as a Bearer token in the Authorization header:
Bearer, bearer). If a request carries both Authorization and the old X-API-Key header, the Authorization header is used.
Keys
A key ispk_live_ or pk_test_ followed by 43 URL-safe characters.
Use test keys for development, CI and the playground on this site, and live keys only in production services.
Pinakel issues keys when your agreement is set up. A key is shown once, when it is issued; we store only a hash of it, so we cannot show it to you again. If you lose a key, rotate it.
Rotating a key
Rotate a key yourself in the customer portal at portal.pinakelai.com: open API keys, choose Rotate…, and copy the new key, which is shown once. The old key stops working within about a minute, so deploy the new key first if you can schedule the rotation. Rotate immediately if a key may have leaked, for example into a log, a ticket or a repository. Revocation works the same way: Pinakel revokes keys on request or when an agreement ends, and requests with the key fail within about a minute.When authentication fails
Authentication errors are problem details. Every 401 response carries aWWW-Authenticate header (RFC 6750).
A key in the query string is rejected even when it is valid, and it is removed from our request logs. Query strings end up in proxy logs, browser history and analytics tools, so never send credentials that way.
Authentication failures (401 and 403) are not counted toward your usage.
Using the playground on this site
Each page in the API reference has a Try it button. The playground sends requests from your browser straight toapi.pinakelai.com; they do not pass through the documentation host. The API accepts these browser requests only from https://docs.pinakelai.com.
Use a pk_test_ key in the playground. Your browser may keep the key you enter, so clear it on a shared machine.
Keep keys on the server
A key identifies your organisation and carries your quota. Call the API from your own servers, not from browser or mobile code that end users can inspect. Security covers storage, separate keys per environment, and incident response.Bearer tokens that do not start with
pk_ are reserved for OAuth 2.0 access tokens with the data:read scope, planned for a later release. Today, such tokens get 401 unauthenticated.