Skip to content

Platform API

API Keys & Scopes ​

How PAPI credentials are issued, what they carry, and how to keep them safe.

Requesting a key ​

There is no self-service key creation today. Provisioning is handled by a platform operator, who runs an internal script to issue a new key for you. Contact your platform representative to request a key for the environment you're integrating against.

What you receive ​

Each key consists of:

  • api_key: a UUID that identifies you in the x-api-key header.
  • secret: a random value used to sign requests (see Authentication).

The secret is displayed once, at creation time, and is not recoverable afterward. It's stored encrypted at rest (AES-256-GCM, decrypted server-side only to compute request signatures); no endpoint or script exposes it for display again. Store it somewhere safe (a secret manager or encrypted env var) as soon as you receive it. If it's lost, the fix is to request a new key, not to recover the old secret.

Key status ​

Keys have a status of active or disabled. Only active keys can authenticate. A disabled key fails with the same generic 401 Invalid API credentials response as any other authentication failure (see Authentication).

Scopes ​

Every key has a scopes field recorded against it. Scopes are not yet enforced. A key with any (or no) scopes currently has the same access to all HMAC-protected PAPI endpoints. This is expected to become an enforced permission boundary in a future release; don't rely on scopes to restrict access today.

Rotation & revocation ​

There's no in-place secret rotation yet. To rotate a credential:

  1. Request a new key.
  2. Switch your integration over to it.
  3. Ask your platform contact to disable the old key.

Security recommendations ​

  • Store the secret in a secret manager or environment variable. Never commit it to source control or client-side code.
  • Treat the secret as sensitive as a database password: it's a bearer of signing capability, not just an identifier.
  • Request a new key and disable the old one immediately if you suspect a secret has leaked.

See also ​