capabilities.work

Rotate a Project API Key

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

Recipe · 3 steps

Rotate a Project API Key

Create a replacement key, verify it, and delete the old key.

  1. Create the replacement scoped API key and capture its one-time secret value and new identifier.
  2. List the project keys to confirm the replacement key is registered before removing the old credential.
  3. Delete the outgoing API key now that the replacement has been verified, leaving only the new credential active.
What you'll need to have ready
  • apiKey: Deepgram API key with keys:write scope used to authenticate.
  • projectId: The project whose key is being rotated.
  • oldKeyId: The identifier of the outgoing key to delete after rotation.
  • comment: Description or name for the replacement API key.
  • scopes: Scopes to assign to the replacement API key.
For your developer

Arazzo workflow deepgram:rotate-project-key, 3 operations: createProjectKey → listProjectKeys → deleteProjectKey. Specs on APIs.io.