Create a Delivery Token

Note: Only the stack owner, admin, and users assigned developer roles can create delivery tokens.

To create a delivery token, log in to your Contentstack account, go to your stack, and perform the following steps:

  1. Click on the “Settings” icon (press “S”) on the left navigation panel.
  2. Click on API Tokens. This opens the Tokens page where you will see two tabs: Delivery Tokens and Management Tokens.
  3. Open the Delivery Tokens tab (or press “alt + O” for Windows, “option key + O” for Mac OS), and click on the + New Token button.
  4. Provide a suitable Name (mandatory) and Description (optional) for the delivery token.
  5. In the Scope section, either select the branch(es) to which you want to assign this token or select alias(es) to fetch data from their associated branches.
  6. Select the publishing environment for which you want to generate a delivery token.image.png
  7. Finally, click on the Generate Token button. You will see a new token in the Delivery Token field.

    Now, you can use the generated token to fetch the content of only the selected environment. It cannot be used to fetch the content of any other environment.

Tutorial Video

Let's see how to create a delivery token.

API Reference

To create a delivery token for an environment via API, refer to the Create delivery token API request.

Was this article helpful?