curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/flywheel/events' \
--header 'X-API-Key: YOUR_API_KEY'
{
"events": [
{
"confidence": 1,
"event_type": {
"error": null,
"raw_query": null,
"type": null
},
"id": "string",
"metadata": null,
"org_id": "string",
"query": "string",
"strategy": "string",
"success": true,
"timestamp": "2026-07-24T12:00:00Z"
}
],
"total": 1
}
Flywheel events handler
Required scope: read
GET
/
api
/
v1
/
flywheel
/
events
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/flywheel/events' \
--header 'X-API-Key: YOUR_API_KEY'
{
"events": [
{
"confidence": 1,
"event_type": {
"error": null,
"raw_query": null,
"type": null
},
"id": "string",
"metadata": null,
"org_id": "string",
"query": "string",
"strategy": "string",
"success": true,
"timestamp": "2026-07-24T12:00:00Z"
}
],
"total": 1
}
Required scope:
read
Query parameters
integer
Maximum number of events to return (1..1000)
Response
FlywheelEventsResponse
LearningEvent[]
required
Show LearningEvent
Show LearningEvent
number (float)
required
Outcome confidence
string
required
Unique event ID
object
required
Additional metadata
string
Organization context
string
required
The query that triggered this event
string
required
Strategy used
boolean
required
Whether the outcome was successful
string (date-time)
required
When this event occurred
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | Recent learning events |
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/flywheel/events' \
--header 'X-API-Key: YOUR_API_KEY'
{
"events": [
{
"confidence": 1,
"event_type": {
"error": null,
"raw_query": null,
"type": null
},
"id": "string",
"metadata": null,
"org_id": "string",
"query": "string",
"strategy": "string",
"success": true,
"timestamp": "2026-07-24T12:00:00Z"
}
],
"total": 1
}