Token types
| Token type | Purpose | Permissions |
|---|---|---|
| Read API token | Fetching content | Read-only access |
| Write API token | Creating and updating content | Full CRUD access |
Finding your API tokens
- Navigate to Settings > General
- View your Read API Token
- Contact support to enable a Write API Token (requires verification)
Security best practices
Using tokens in your app
Store your token in an environment variable and reference it in code:Frequently asked questions
How do I rotate my API tokens?
How do I rotate my API tokens?
Contact ButterCMS support to regenerate your API tokens. Keep in mind, this will invalidate existing tokens and require updating all applications that use them.
What is the difference between read and write tokens?
What is the difference between read and write tokens?
The read token allows fetching content via the API. The write token allows creating, updating, and deleting content programmatically. Write tokens require verification to enable — contact support to request one.