Skip to content

Authentication

Every API request is authorized with a partner API key. Send it in the Authorization header using the Bearer scheme:

Authorization: Bearer ptk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx

API-key requests are for partner-level integration. This is different from the session (JWT/OTP) authorization used in the customer panel and must not be confused with it.

Keys start with a prefix:

PrefixUsage
ptk_live_…Live (prod) environment
ptk_test_…Test environment
  • The key is shown in full only once, at creation time. Store it securely.
  • If lost, it cannot be recovered; you must generate a new key.
  • Only a visible identifier of the key (e.g., the last few characters) appears in listings.

Requests with an invalid, missing, or revoked key are rejected with 401 Unauthorized and a standard error response.