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” for both Windows and Mac users) on the left navigation panel.
  2. Click on Tokens. This opens the Tokens page where you will see two tabs: Delivery Tokens (already opened) and Management Tokens.
    Or, press “alt + O” (Windows) or “option key + O” (Mac) to directly land on the Delivery Tokens section from wherever you are.
  3. Click on + Delivery Token.
  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.
  7. Enable the Create Preview Token toggle to generate a preview token associated with this delivery token.
  8. Finally, click the Generate Token button. You will see a new token in the Delivery Token and Preview 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.

Alternatively, if you want to create a Preview token for an existing delivery token, select the delivery token you want to link it with. Navigate to the bottom of the page and click the + Create Preview Token button.

API Reference

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

Was this article helpful?