Skip to content

Rotate an API client's keys

POST
/auth/clients/{id}/rotate
curl --request POST \
--url https://apisandbox.puurk.com/auth/clients/example/rotate \
--header 'Authorization: Bearer <token>'

Deprecates all of the client’s active keys with a 7-day grace period and issues one new key. The api_key in the response is shown once and never retrievable again.

id
required
string

ID of the API client

New API key issued

Unauthorized

API client not found

API client is deactivated