curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/audit/export' \
--header 'X-API-Key: YOUR_API_KEY'
{
"event_count": 1,
"events": [
{
"api_key_prefix": "string",
"client_ip": "string",
"context": null,
"duration_ms": 1,
"error": "string",
"event_type": "api_request",
"method": "string",
"operation": "string",
"path": "string",
"request_id": "string",
"resource_type": "string",
"status": 1,
"timestamp": "string",
"timestamp_ms": 1
}
],
"generated_at": "2026-07-24T12:00:00Z",
"org_id": "string",
"total_available": 1
}
Audit export handler
Required scope: read
GET
/
api
/
v1
/
audit
/
export
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/audit/export' \
--header 'X-API-Key: YOUR_API_KEY'
{
"event_count": 1,
"events": [
{
"api_key_prefix": "string",
"client_ip": "string",
"context": null,
"duration_ms": 1,
"error": "string",
"event_type": "api_request",
"method": "string",
"operation": "string",
"path": "string",
"request_id": "string",
"resource_type": "string",
"status": 1,
"timestamp": "string",
"timestamp_ms": 1
}
],
"generated_at": "2026-07-24T12:00:00Z",
"org_id": "string",
"total_available": 1
}
Required scope:
read
Query parameters
integer (int64)
Unix millis lower bound
integer (int64)
Unix millis upper bound
integer
Max events (default 1000, capped at 10000)
Response
AuditExportResponse
integer
required
AuditEvent[]
required
Show AuditEvent
Show AuditEvent
string
First 8 chars of API key (for identification without exposure)
string
Client IP address
object
Additional context
integer (int64)
required
Request duration in milliseconds
string
Error message if applicable
AuditEventType
required
string
required
HTTP method
string
Operation performed
string
required
Request path
string
required
Unique request identifier
string
Type of resource affected
integer (int32)
required
Response status code
string
required
ISO 8601 timestamp string
integer (int64)
required
Unix timestamp in milliseconds
string (date-time)
required
string
required
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | Audit events for the caller’s org |
401 | Unauthorized |
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/audit/export' \
--header 'X-API-Key: YOUR_API_KEY'
{
"event_count": 1,
"events": [
{
"api_key_prefix": "string",
"client_ip": "string",
"context": null,
"duration_ms": 1,
"error": "string",
"event_type": "api_request",
"method": "string",
"operation": "string",
"path": "string",
"request_id": "string",
"resource_type": "string",
"status": 1,
"timestamp": "string",
"timestamp_ms": 1
}
],
"generated_at": "2026-07-24T12:00:00Z",
"org_id": "string",
"total_available": 1
}