Opami ProtectOpen the console

Revoking a key

You can revoke a key in the console (API keys) or with the API. Revoking is permanent for that key.

Removing someone's console access does not revoke an application key. Revoke the key itself.

DELETE /v1/keys/{id}

Needs a console session, not an API key. Example, with placeholders only:

DELETE /v1/keys/<key-id>
Authorization: Bearer <console-session-token>
{
  "key": {
    "id": "<key-id>",
    "name": "<key-name>",
    "prefix": "opk_xxxx",
    "created_at": "<timestamp>",
    "state": "revoked"
  },
  "request_id": "<request-id>"
}