Authentication
All API requests must include your API key in theApi-Key header.
API Keys
API keys are scoped to your organization and can be created in the Dashboard.| Environment | Key Prefix | Description |
|---|---|---|
| Development | lk_dev_ | For testing and development |
| Production | lk_live_ | For live transactions |
Making Authenticated Requests
Include your API key in theApi-Key header:
Error Responses
Missing API Key
401 Unauthorized
Invalid API Key
401 Unauthorized
Error Codes Reference
See all error codes and troubleshooting tips
How Agents Authenticate
Agents don’t have their own API keys. Your organization’s API key is used for all operations, including those on behalf of agents.- Your backend holds the org API key (never expose to clients)
- Your AI agent requests card credentials through your backend
- Your backend calls Proxy API with the org key
- Attestation creates an audit trail of what the agent claimed
Agents are logical identities for organizing spending limits and audit trails — not separate authenticated principals.
Rate Limits
API requests are rate-limited per organization:| Operation | Rate | Burst |
|---|---|---|
| Read (GET) | 100/min | 20 |
| Write (POST/PATCH/DELETE) | 30/min | 10 |
| Card Creation | 10/min | 5 |
429 Too Many Requests
Headers:
Retry-After: Seconds until you can retry
Request IDs
Every API response includes a unique request ID in theX-Request-Id header and response body. Include this when contacting support.
Idempotency
For POST requests, you can include anIdempotency-Key header to ensure the request is only processed once:
Managing API Keys
Create a Key
- Go to Dashboard
- Navigate to Settings > API Keys
- Click Create Key
- Name your key and set expiration (optional)
- Copy the key immediately (it won’t be shown again)
Revoke a Key
- Go to Settings > API Keys
- Find the key you want to revoke
- Click Revoke
Revoking a key is immediate and permanent. Any requests using that key will fail.
Base URL
All API requests should be made to:The same base URL is used for both development (
lk_dev_) and production (lk_live_) keys. The key prefix determines the environment.Use development keys for testing. No real charges are made and you can use test credentials.