pinstripes.
API Keys

Revoke API key

DELETE/auth/keys/{id}

Revokes an API key. Session token required. Get the key ID from the list keys response.

Path parameters

ParameterTypeRequiredDescription
idintegerYesKey ID from the list keys response.

Example

curl -X DELETE https://api.pinstripes.io/auth/keys/4 \
  -H "Authorization: Bearer <session-token>"

Response

{"revoked": true}

Revocation takes effect immediately. Requests already in-flight when the revocation is processed will complete normally. Any subsequent request using the revoked key receives a 401.