curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys' \
--header 'X-API-Key: YOUR_API_KEY'
{
"keys": [
{
"created_at": "string",
"expires_at": "string",
"id": "string",
"last_used_at": "string",
"name": "string",
"org_id": "string",
"prefix": "string",
"rate_limit_per_minute": 1,
"revoked_at": "string",
"scopes": []
}
],
"total": 1
}
List API keys for the current org.
Required scope: admin
GET
/
api
/
v1
/
auth
/
keys
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys' \
--header 'X-API-Key: YOUR_API_KEY'
{
"keys": [
{
"created_at": "string",
"expires_at": "string",
"id": "string",
"last_used_at": "string",
"name": "string",
"org_id": "string",
"prefix": "string",
"rate_limit_per_minute": 1,
"revoked_at": "string",
"scopes": []
}
],
"total": 1
}
Required scope:
admin
Response
ApiKeyListResponse
ApiKeyListItem[]
required
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | API keys |
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 GET \
--url 'https://api.nsr.stateset.com/api/v1/auth/keys' \
--header 'X-API-Key: YOUR_API_KEY'
{
"keys": [
{
"created_at": "string",
"expires_at": "string",
"id": "string",
"last_used_at": "string",
"name": "string",
"org_id": "string",
"prefix": "string",
"rate_limit_per_minute": 1,
"revoked_at": "string",
"scopes": []
}
],
"total": 1
}