Revoke a site key
The key stops working at once. Needs the admin role.
Related: List site keys and Create a site key in Site keys.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
keyIdstringrequiredPattern: ^[a-f0-9]{24}$
Headers
AuthorizationstringrequiredBearer followed by an account token or an OAuth access token with the api_keys:write scope.
Response
Revoked.
{
"status": "string",
"data": {
"revoked": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.revoked | true |