shadwshadw/Docs
GuidesAPIGetting Started
Dashboard
shadw REST APIOverviewErrors
  • POSTCreate an API key
  • GETList API keys
  • DELRevoke an API key
  • POSTMint a token
APIs & SDKs/shadw REST API/Revoke an API key

Revoke an API key

DELETEhttps://api.shadw.cloud/v1/apikeys/{id}

Revoke an API key. Requests presenting the revoked token stop resolving immediately.

Authentication

AuthorizationbearerToken

A platform API key (hive_…, created under Settings → API Keys) or a short-lived JWT minted with POST /v1/token. An API key scopes the request to the team it was created under.

Path parameters

idstringRequired

The API key id.

ts
const response = await fetch('https://api.shadw.cloud/v1/apikeys/{id}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY', // hive_… (Settings → API Keys)
  },
});

const data = await response.json();
console.log(data);
Response
json
{ "revoked": true, "id": "key_9f2a1c7b04d14e3e" }