Create an API key for a content collection
Warning
You must have a Contributor or Manager role to create, use, or manage API keys for content collections.
To create an API key for a content collection:
- On the menu bar, click Content and then click Content Collections.
- On the Content collections page, click a content collection name.
- On the content collection details page, click More actions and then click API keys.
- In the API keys dialog, click + API key.
- In the API key dialog, in the Name field, enter a name for the key.
- Select one of the following options to define the purpose of the key:
- Delivery - for the Delivery API, which provides access to approved content. This is for a production environment and exposes all published content.
- Preview - for the Preview API, which allows access to all content, including drafts and other content that is not yet approved. This is for a staging or testing environment.
- Click Create.
- Copy and save the key for future use. Remember, you cannot request this key again after closing the dialog.
If you have suggestions for improving this article, let us know!