Go to developer

API Keys & Credentials

KEYRA issues project credentials with distinct client IDs and secret tokens. Use the right type in the right place.

On this page

Credential types

ParameterTypeRequiredDescription
clientIdstringRequiredAlways prefixed cp_test_ (sandbox) or cp_prod_ (production). Identifies the key/project client. Publishable flows send this from the browser.
clientSecret / tokenstringRequiredAlways prefixed sk_test_ or sk_prod_. Treat as a secret. Used for server-side Partner 2FA (Authorization: Bearer clientId:clientSecret).
projectIdUUIDRequiredYour KEYRA project identifier. Required for Partner 2FA API bodies and SDK configuration.
key typepublishable | secretRequiredKeys are typed in KEYRA. Publishable keys start hosted/browser flows. Secret keys are for server APIs. Hosted login rejects secret-type keys.

Browser vs backend

Browser → publishable credentials only (cp_* client ID)
Backend → secret credentials (sk_*) + project configuration
CredentialUsed whereSafe in browser?Purpose
Publishable clientId (cp_*)Browser OAuth Verify / hosted loginYesStart authentication UI
Secret token (sk_*)Backend onlyNoPartner 2FA and other secret API auth
projectIdBackend (Partner 2FA)Prefer backendScope identity operations to your project

How credentials are sent

Partner 2FA (server):

Authorization headerHTTP
Authorization: Bearer cp_test_…:sk_test_…

Publishable browser header pattern:

Publishable client headerHTTP
x-keyra-client-id: cp_test_…

Where to get them

Create and manage credentials in the Developer Portal under API keys for a sandbox or production project. Use sandbox (_test_) credentials while integrating.