capabilities.work

Data Platform Rotate an Environment API Key

A 3-step recipe with Prisma. We can help you get access.

Recipe · 3 steps

Data Platform Rotate an Environment API Key

with Prisma
Works with AI assistants

Create a new environment API key and revoke the previous key.

  1. List the API keys for the environment so the currently active key can be identified for later revocation.
  2. Mint a replacement API key for the environment before revoking the old one so the environment stays authenticated throughout the rotation.
  3. Permanently revoke and delete the previously active API key now that the replacement is in place. Returns 204 No Content on success.
What you'll need to have ready
  • apiToken: Service token or OAuth access token for the Data Platform API, sent as a Bearer token.
  • environmentId: Identifier of the environment whose key is being rotated.
  • newKeyName: Display name for the replacement API key.
For your developer

Arazzo workflow prisma:rotate-api-key, 3 operations: listApiKeys → createApiKey → deleteApiKey. Specs on APIs.io.