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
with Deepgram
Create a replacement key, verify it, and delete the old key.
- Create the replacement scoped API key and capture its one-time secret value and new identifier.
- List the project keys to confirm the replacement key is registered before removing the old credential.
- 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.