Skip to navigation

Rotate key

View as Markdown
Replace a customer key with a new one, returned in full only once.

Authentication

x-api-keystring
Your API key, using a test key for the sandbox and a live key for production.

Path parameters

idstringRequired
Unique identifier of the resource.
keyIdstringRequired
The identifier of the customer key.

Headers

Idempotency-KeystringOptional<=255 characters

Unique key used to safely retry the same state-changing request.

Request

This endpoint expects an object.
expires_atdatetime or nullOptional
The expiry of the new key. Leave it out to keep the previous expiry, or send null for a key that never expires.

Response

Key rotated successfully.
messagestring
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error