Reactivate API Key
PATCH {{endpoint}}/api-keys/:apiKey/reactivate
Reactivates a deleted (or revoked) API Key
After reactivating a deleted API Key you will be able to authenticate it again or do any API key operation on it just like any other API key
Returns
-
200
with the API key DTO if the key was reactivated successfully -
401
if authentication fails -
403
if user has insufficient roles (users withuser
andadmin
roles can reactivate an API key, users withviewer
role cannot) -
404
if key doesn't exist -
409
if the key is active and hasn't been deleted/revoked
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string |
RESPONSES
status: OK
{"key":"live_gCFivG55iS4re0tZ8I0ggnQhNoi6FVXB1ZV8YzW791BklroYH1Ns7CmoT3peFTiJ","name":"revoked API key","customMetaData":{"deleted":true},"customAccountId":null,"customUserId":null,"env":"live","createdAt":"2022-08-23T13:12:16.669Z","updatedAt":"2022-08-23T14:23:05.481Z","isActive":true,"expiresAt":null,"rateLimitConfigs":null}