API reference / Tests and incidents
List the errors of an incident
The errors that Troopy keeps of one incident, newest first. Get the incident with event=<id> for one of them whole.
get
/api/v1/incidents/{number}/eventsOther ways to call it
CLI
troopy incidents eventsMCP tool
troopy_list_incident_eventsRate limit120 calls in 60 seconds, for each key
Path parameters
number*integerAt least 1
Query parameters
pageinteger1-based page number
Default 1 · At least 1
limitintegerItems per page, at most 100
Default 20 · At least 1 · At most 100
Response
200 · application/jsondata*array<object>9 properties
id*stringThe event's own id from its SDK: 32 hex
at*stringISO 8601 date and time
level*enum<string>fatalerrorwarninginfodebug
crash*booleanenvironment*stringrelease*string | nullmessage*stringThe error and its message, on one line
url*string | nullThe address of the request, without its query
user*string | nullThe person: their email, or the name that hides it, or their id
pagination*object4 properties
page*integerlimit*integertotal*integerpages*integerErrors
400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
404 not_foundCheck the path and any id in it. Every operation is listed in /api/v1/openapi.json.
429 rate_limitedWait the number of seconds in Retry-After, then retry.