Copy for Cursor / Claude
Copy for Cursor / Claude
API Keys
All API requests require a Bearer token in the Authorization header: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):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:POST /v1/auth/magic-link— sends a 6-digit code to your emailPOST /v1/auth/verify— validates the code, returns a 30-day session token
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.