Skip to main content
Every endpoint except GET /api/v1/health, GET /api/v1/version, the public jurisdiction lookups, and the countdown requires an API key sent in the x-api-key header.

How keys are issued

Keys are issued in two ways. There is no self-service signup and no shared test credentials. To start a pilot, request one and a partner key is provisioned for you.

Roles and permissions

Each key carries one role. The role decides which permissions the key holds, and each endpoint names the permission it requires. A merchant key is scoped to its merchant. Transactions sent with it are linked to that merchant’s record, registered locations resolve only for that merchant, and the early-adoption settings endpoint accepts only that merchant’s id. A partner key is scoped to its partner. It can register and manage the partner’s own merchants and read analytics across them. An admin key may act on any partner’s behalf by passing partner_id as a query parameter or x-partner-id as a header.

Internal service key

Three provisioning endpoints under /api/v1/provision/* are called by Centsless’s own portal backend, not by partners. They require the INTERNAL_SERVICE_KEY shared secret in the x-service-key header and are documented for completeness.

Key hygiene

  • Keys are stored hashed. A key is shown once, at creation, and cannot be retrieved afterward. Rotate a partner key with POST /api/v1/admin/partners/{partnerId}/rotate-key; the old key stops working immediately.
  • Revoke any key with DELETE /api/v1/admin/keys/{keyId}.
  • Keys may carry an expiry (expires_in_days at creation). An expired key is rejected with 401.
  • Every rejected request (missing, invalid, or expired key; insufficient permission) is logged as a security incident with the endpoint and the source IP.

Errors

Treat keys as production credentials from the first day. There is no separate sandbox environment; a pilot runs against the production engine with its own partner and merchant records.