Skip to main content
DELETE
/
api-key
/
{tokenId}
Revoke an API key
curl --request DELETE \
  --url https://app.myhero.so/api-key/{tokenId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "revoked": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Marks the API key as revoked. Subsequent requests using it return 401.

Authorizations

Authorization
string
header
required

HERO personal access token

Path Parameters

tokenId
string
required
Minimum string length: 1

Response

200 response

data
object
required