Skip to main content
DELETE
/
v1
/
user
/
me
/
api-keys
/
{keyId}
Revoke API key
curl --request DELETE \
  --url https://relay.bayse.markets/v1/user/me/api-keys/{keyId}
{
  "message": "API key revoked"
}

Authentication

Requires x-auth-token and x-device-id headers. Obtain these by calling the login endpoint.

Path parameters

keyId
string
required
The ID of the API key to revoke.

Example request

curl -X DELETE https://relay.bayse.markets/v1/user/me/api-keys/3f7a1b2c-d4e5-6789-abcd-ef0123456789 \
  -H "x-auth-token: YOUR_AUTH_TOKEN" \
  -H "x-device-id: YOUR_DEVICE_ID"

Response

{
  "message": "API key revoked"
}
Revoking a key is permanent. Any requests signed with the revoked key will immediately start returning 401. If you need to replace a key, use Rotate API key instead.