Authorization: Bearer header. They are created in the dashboard’s Settings → API Keys, stored as SHA-256 hashes, and shown exactly once at creation.
Key types
The prefix also encodes the environment:
*_live_* for production, *_test_* for development. See Authentication for the full key model and the endpoint auth matrix.
API key object
Managing keys in the Dashboard
API keys are created, inspected, and revoked directly within the Provider Dashboard:- Navigate to Settings → API Keys in your ArcenPay Dashboard.
- Click Create Secret Key or Create Publishable Key.
- For secret or restricted keys, specify the name, expiration window (optional), and granted permissions (e.g.
tokens.create,usage.consume). - Copy and securely store the raw key. ArcenPay stores only the SHA-256 hash and will never display the raw secret again.
- To invalidate a compromised key immediately, click Revoke Key in the dashboard.
Root API keys are provisioned exclusively through the dashboard to guarantee administrative security and multi-factor authorization. Automated services do not provision root API keys via programmatic REST.
Programmatic token generation
For customer sessions, client embeds, and delegated permissions, ArcenPay provides two dedicated REST endpoints callable using your Secret or Restricted API keys:- Create a temporary access token (
POST /api-keys/tokens): Mints a short-livedarc_tok_…token (60–900s TTL) scoped to a single company. Ideal for passing toArcenEmbedor client-side widgets without leaking your root secret key. - Create an access token (
POST /access-tokens): The programmatic backend behind the SDKidentify()method. Upserts the customer’s company and user records in one call and returns a customer session token.
Permission catalog
Best practices
- Name keys by environment and purpose (
production-billing,staging-webhook-test). - Set an expiry for short-lived projects; rotate on a schedule.
- Use restricted keys with only the permissions each service needs.
- Store raw keys in a secret manager — the platform stores only hashes.
Related
- Authentication — full key model, prefixes, and endpoint auth matrix
- Create an access token —
identify()/ server-minted JWT session tokens - Rate limits — per-key request windows

