Contentstack uses different types of tokens to authorize and authenticate API requests for accessing or managing content within a stack. Each token type has a specific purpose and serves different levels of access.
This section provides a quick overview of the token types, their uses, limitations, and the roles that can create or manage them.
The following table provides a quick comparison of the different token types available in Contentstack:
| Token Type | Access Level | Scope | Content Accessibility | Reset Capability | Creation Permissions |
| Delivery Token | Read-only | Environment-level | Published only | No | Stack owners, Admins, and Developers |
| Access Token | Read-only | Stack-level | Both Published and Unpublished | Yes | Available by default. Can be reset by Stack owners, Admins, and Developers |
| Auth Token | Read/Write | Stack-level and specific to a user. | Both Published and Unpublished | No (the oldest one expires when the limit is reached) | Generated via login; only eligible users can retrieve |
| Management Token | Read/Write (configurable) | Stack-level | Both Published and Unpublished (excluding some modules) | Yes (during creation) | Stack owners, Admins only |
Note: Both Delivery Tokens and Management Tokens can be assigned to all branches or a specific branch. Similarly, they can be assigned to all aliases or specific aliases. This lets you fetch or manage data from their associated branches efficiently.
A Delivery Token is a read-only, environment-specific token used to fetch published content from a particular environment via Content Delivery APIs.
It ensures secure access to published content from specific environments such as staging or production, without exposing draft or unpublished data.
Note: Access Tokens are no longer supported for stacks created after December 16, 2020. For newer stacks, Contentstack recommends using Delivery Tokens to fetch published content and Management Tokens to perform content management operations.
An Access Token is a read-only, stack-level token used to fetch both published and unpublished (draft) content using Content Delivery APIs.
An Authtoken is a user-specific, read/write token used to perform authorized operations via the Content Management API. It allows users to create, read, update, or delete content in a stack based on their permissions.
An automated content script, scheduled for overnight execution, maintains product inventory within a stack in Contentstack. The script leverages an Authtoken and the stack API key to authenticate requests and update the product inventory based on data sourced from an external system.
Since Authtokens support read and write access, the script can:
This setup ensures secure automated updates without manual intervention.
A Management Token is a stack-level, read-write token used to perform various content management operations such as creating, reading, updating, and deleting content within your stack.
It is ideal for use in integrations, scripts, and third-party services that require authenticated access without relying on user-specific Authtokens.