curl --request DELETE \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"revoked_at": "2026-08-31T14:22:05Z"
}
Revoke an API key by id.
Required scope: admin
DELETE
/
api
/
v1
/
auth
/
keys
/
{id}
curl --request DELETE \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"revoked_at": "2026-08-31T14:22:05Z"
}
Required scope:
admin
Path parameters
string
required
Response
ApiKeyRevokeResponse
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
200 | API key revoked |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request DELETE \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys/{id}' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"revoked_at": "2026-08-31T14:22:05Z"
}
Last modified on August 31, 2026