Rotate a Consumer's API Keys
A 3-step recipe with Zuplo. We can help you get access.
Recipe · 3 steps
Rotate a Consumer's API Keys
with Zuplo · Developer Identity & Credential Management
Roll a consumer's keys and list the resulting keys.
- Read the consumer to confirm it exists before rolling its keys.
- Roll the consumer's keys: set the supplied expiration on keys that have no expiration and create a new key.
- List the consumer's keys after rolling to surface the newly created key id.
What you'll need to have ready
- accountName: The Zuplo account name (Settings > Project Information).
- apiKey: The Zuplo Developer API key, sent as a Bearer token.
- bucketName: The name of the bucket the consumer belongs to.
- consumerName: The name of the consumer whose keys are being rotated.
- expiresOn: ISO-8601 date-time to set as the expiration on existing keys.
For your developer
Arazzo workflow zuplo:rotate-consumer-key, 3 operations: ApiKeyConsumersService_read → ApiKeyConsumersService_rollKey → ApiKeyKeysService_list. Specs on APIs.io.