cs-icon.svg

Create a Delivery Token

Delivery Tokens enable secure access and display of published content to external applications, such as websites and mobile apps. This is done by fetching content from specific branches and publishing environments within your stack.

Note: Only the stack Owner, Admin, and Developer roles have permission to 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 the “Settings” icon in the left navigation panel or use the shortcut key “S” (for Windows and Mac OS users).
  2. Click Tokens in the settings panel.
  3. Click + Delivery Token to create a new token.

    Tip: If you are on the Management Tokens tab, you can press “Alt + O” (for Windows users) or “Option + O” (for Mac users) to navigate to the Delivery Tokens tab.

    Create Delivery Token UI

  4. Enter a Name (required) and a Description (optional) for the Delivery Token.
  5. In the Scope section, choose the Branches or Aliases you want to associate with this token.
  6. Select the Publishing Environments for which you want to generate the Delivery Token.
  7. (Optional) Enable the Create Preview Token toggle to generate a Preview Token associated with this Delivery Token.
  8. Click Generate Token.

A new token appears in both the Delivery Token and Preview Token fields. You can copy the tokens using the “Click to copy” icon.

Create a Preview Token for an Existing Delivery Token

To create a Preview Token for an existing Delivery Token:

  1. Select a Delivery Token from the Tokens page.
  2. Click + Create Preview Token at the bottom of the page.

    Create Preview Token UI

Note: A Delivery Token is configured for a specific environment and can only retrieve content from that environment.

API Reference

Was this article helpful?
^