Skip to main content

API Keys

All API requests require a Bearer token in the Authorization header:
API keys start with agentpay_sk_live_ and are SHA-256 hashed before storage. The full key is shown only once at creation.

Getting an API key

Agent signup (programmatic):
Dashboard (manual): Log in at agentpay.la/dashboard and create keys from Settings. Organization keys: Org owners can create org-scoped keys at POST /v1/orgs/{org_id}/api-keys.

Key scoping

Org-scoped keys set organization_id on all cards and data they create.

Session Tokens

The web dashboard uses session tokens (not API keys). These are obtained via magic link authentication:
  1. POST /v1/auth/magic-link — sends a 6-digit code to your email
  2. POST /v1/auth/verify — validates the code, returns a 30-day session token
Session tokens do not start with agentpay_sk_live_ and are routed differently in the auth middleware.

Rate Limits

Rate limit responses return 429 Too Many Requests with a human-readable detail message.