Skip to content
Website API / Site keys

Revoke a site key

DELETEhttps://<your Reveata origin>/api/v1/websites/{website}/site-keys/{keyId}

The key stops working at once. Needs the admin role.

Related: List site keys and Create a site key in Site keys.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

keyIdstringrequired

Pattern: ^[a-f0-9]{24}$

Headers

Authorizationstringrequired

Bearer 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

FieldTypeDescription
status"ok"
dataobject
data.revokedtrue