Artboard
Admin API Keys

Revoke an Admin API Key

POST
/otto/api/admin-api-key/{key}/revoke

Revokes an Admin API Key so it can no longer be used. Revoking is permanent; the key stays listed (with revoked_at set) until it is deleted.

Path Parameters

key*string

POST /otto/api/admin-api-key/:key/revoke Parameter

Request Body

POST /otto/api/admin-api-key/:key/revoke Request body

application/json
  1. body

Response Body

POST /otto/api/admin-api-key/:key/revoke Positive response

application/json
  1. response
messages*array<>
response*
Example Request
curl -X POST 'https://your.server.net/otto/api/admin-api-key/ak_KFji7VzNDOasdfqwerqOXFLJOhW/revoke' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?