Endpoint
Request Body
A descriptive name for the API key to help identify its purpose
The identifier of the owner or user this API key belongs to
Array of permission scopes this API key should have. Determines what operations the key can performCommon scopes:
transactions:read: Read transaction datatransactions:write: Create and modify transactionsbalances:read: Read balance informationbalances:write: Modify balancesledgers:read: Read ledger dataledgers:write: Create and modify ledgersadmin: Full administrative access
Expiration date for the API key (ISO 8601 format). After this date, the key will no longer be valid
Response
Unique identifier for the API key
The actual API key string. This is only shown once during creation - store it securely!
The descriptive name of the API key
The identifier of the owner
Array of permission scopes
Expiration date (ISO 8601 format)
Timestamp when the API key was created
Timestamp of last use (initially same as created_at)
Whether the key has been revoked
Example Request
Production API Key
Read-Only API Key
Admin API Key
Short-lived Testing Key
Example Response
Error Responses
Error message describing what went wrong
Common Errors
- 400 Bad Request: Invalid request body or missing required fields
- 500 Internal Server Error: Failed to create API key
Security Best Practices
Store the Key Securely
Thekey field is only returned during creation. You must store it securely:
Use Principle of Least Privilege
Grant only the scopes needed:Set Appropriate Expiration
Choose expiration dates based on key usage:Rotate Keys Regularly
Implement key rotation:Scope Definitions
Read Scopes
transactions:read: View transaction history and detailsbalances:read: View balance informationledgers:read: View ledger dataidentities:read: View identity informationreconciliations:read: View reconciliation status
Write Scopes
transactions:write: Create and modify transactionsbalances:write: Modify balance recordsledgers:write: Create and modify ledgersidentities:write: Create and modify identitiesreconciliations:write: Start and manage reconciliations
Special Scopes
admin: Full administrative access to all resourceswebhooks:manage: Create, update, and delete webhooksapi_keys:manage: Manage API keys
API Key Naming Conventions
Use descriptive names that indicate:- Environment (production, staging, development)
- Purpose (payment processing, analytics, admin)
- Owner or system (user name, service name)
- “Production - Payment Service”
- “Staging - Analytics Dashboard”
- “Development - John’s Test Key”
- “Admin - Billing System”