Bearer tokens
Every request to the Dime Payments API requires anAuthorization header with a Bearer token:
Getting a token
- Log into the Dime Payments dashboard
- Click your profile icon in the top right
- Select Generate API token
- Copy the token immediately — it will not be shown again
Token abilities
Every token carries a set of abilities that control which endpoints it can access. If a token lacks the required ability for an endpoint, the API returns a401 Permission Denied response.
Common abilities include:
| Ability | What it allows |
|---|---|
transaction:charge-card-token | Charge a card using a stored token |
transaction:charge-card-pan | Charge a card using raw PAN data (requires PCI compliance) |
transaction:charge-ach | Charge a bank account |
customer:read | List and show customers |
customer:write | Create, update, and delete customers |
merchant:read | List and show merchants |
merchant:write | Create and update merchants |
Keeping tokens secure
- Never expose tokens in client-side code or public repositories
- Use environment variables to store tokens in your application
- Generate separate tokens for production and staging environments
- Rotate tokens immediately if you suspect they have been compromised
Example request
Error responses
| Status | Meaning |
|---|---|
401 Permission Denied | Token is missing, invalid, or lacks the required ability |
403 Unauthorized | Token is valid but the resource belongs to another merchant |
Next steps
- Quickstart — make your first API call
- API Reference — full endpoint documentation

