---
updatedAt: 2026-03-01T18:44:24.000Z
---

# API workflow

This section presents the steps that you need to follow to create a key collection, start using public keys to verify JWT signatures in client requests, and update the key collection used by your property.

Suppose a company issues JWTs to identify clients and authorize them to access specific topics. The company needs to provide a key collection with a public key in the property's JWT behavior to make sure that the JWTs in client requests are properly validated. Here are the steps to do that:

1. Create a key collection.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148721eb01a480010599d11",
  "link": "https://techdocs.akamai.com/v1.0/recipes/create-a-key-collection",
  "slug": "create-a-key-collection",
  "title": "Create a key collection"
}
[/block]

2. Create a key collection version and set the `primaryKey` object member.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148721f4c8824004129702d",
  "link": "https://techdocs.akamai.com/v1.0/recipes/create-a-key-collection-version",
  "slug": "create-a-key-collection-version",
  "title": "Create a key collection version"
}
[/block]

3. Optionally, activate the key collection version on staging.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

4. [Refer to the key collection in the property's JWT behavior](https://techdocs.akamai.com/property-mgr/reference/latest-verify-json-web-token-for-dcp).

5. Activate the key collection version on production

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

If for security reasons, the company decides to rotate public key used by the property, it can simply do so by updating the key collection referenced in the JWT behavior. Here are the steps to do that:

1. Create a key collection version and set the `secondaryKey` object member.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148721f4c8824004129702d",
  "link": "https://techdocs.akamai.com/v1.0/recipes/create-a-key-collection-version",
  "slug": "create-a-key-collection-version",
  "title": "Create a key collection version"
}
[/block]

2. Optionally, activate the key collection version on staging.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

3. Activate the key collection version on production.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

4. Create a key collection version where you replace the `primaryKey` value with the `secondaryKey` value.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148721f4c8824004129702d",
  "link": "https://techdocs.akamai.com/v1.0/recipes/create-a-key-collection-version",
  "slug": "create-a-key-collection-version",
  "title": "Create a key collection version"
}
[/block]

5. Optionally, activate the key collection version on staging

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

6. Activate the key collection version on production.

[block:tutorial-tile]
{
  "backgroundColor": "#018FF4",
  "emoji": "",
  "id": "6148854632d85c002be2cbd4",
  "link": "https://techdocs.akamai.com/v1.0/recipes/activate-a-key-collection-version",
  "slug": "activate-a-key-collection-version",
  "title": "Activate a key collection version"
}
[/block]

# Sibling pages

* [IoT Token Access Control API](https://techdocs.akamai.com/iot-token-access-control/reference/api.md)
* [API summary](https://techdocs.akamai.com/iot-token-access-control/reference/api-summary.md)
* [Get started](https://techdocs.akamai.com/iot-token-access-control/reference/get-started.md)
* [API concepts](https://techdocs.akamai.com/iot-token-access-control/reference/api-concepts.md)
* [Rate limits](https://techdocs.akamai.com/iot-token-access-control/reference/rate-limits.md)
* [Verify a web token](https://techdocs.akamai.com/iot-token-access-control/reference/verify-a-web-token.md)
* [Keys and JWT signing algorithms](https://techdocs.akamai.com/iot-token-access-control/reference/keys-and-jwt-signing-algorithms.md)
* [Rotate public keys](https://techdocs.akamai.com/iot-token-access-control/reference/rotate-public-keys.md)
* [Errors](https://techdocs.akamai.com/iot-token-access-control/reference/errors.md)