Skip to content
Skip to Content

Revoke an API key

DELETE
/api-keys/{keyId}

The key stops working at once.

This loses data or replaces what runs; MCP asks for confirmation first.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

keyId*string

Response body

Done.

Example request
curl -X DELETE "https://openpanel.sh/api/v1/api-keys/$KEY_ID" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
Empty