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
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | Key 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.