Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API
keys.revoke

Method

keys.revoke

Revoke an API key.

Details

Endpoint
DELETE /v0/keys/:id
Credits
Free
Rate class
Light. Counts against your light requests per second.

Revokes one of your keys. It stops working within 30 seconds and cannot be restored. Usage already recorded for it stays in your totals.

Parameters

NameTypeDescription
idrequiredstringKey id from GET /v0/keys.

Request

Send your key in the x-api-key header, or leave it out to use the keyless tier.

curl
curl -X DELETE "https://api.tide.ad/v0/keys/kid_abc123" \
  -H "x-api-key: YOUR_API_KEY"
TypeScript
const res = await fetch("https://api.tide.ad/v0/keys/kid_abc123", {
  method: "DELETE",
  headers: {
    "x-api-key": process.env.TIDE_API_KEY!,
  },
});
const data = await res.json();

Response

JSON
{
  "revoked": true
}