API reference
Report a failed request
Report one failed request seen on a page or in an app (PRD 0011): its request ID, traceparent, method, route as a template (ids become :id, no query), page route and status, or network / timeout with status 0. Never a body, a value or anything personal. Similar reports are grouped and each group is investigated on its own; the answer goes to the team. A signed-in caller reports into their own account; a site configured for it reports without one. Client errors other than 408 and 429 are not kept (accepted: false).
Needs scope trail:write.
bearerAuthorizationBearer <token>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
iohr.trails.v1.ReportErrorRequest; path variables override their fields
application/json- body
iohr.trails.v1.ReportErrorRequest
client?stringerror_class?stringmethod?stringoccurred_at?stringpage_route?stringrequest_id?stringroute?stringsite?stringstatus?integerint32traceparent?stringiohr.trails.v1.ReportErrorResponse
application/json- response
iohr.trails.v1.ReportErrorResponse
accepted*booleangroup_id*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.trails.reportError({ client: "<client>", error_class: "<error_class>", method: "<method>", occurred_at: "<occurred_at>", }); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "accepted": true, "group_id": "string"}Delete a recording DELETE
The recording and its events are deleted at once. Needs scope `trail:write`.
List error groups GET
The account's groups of similar failed requests, newest first: site, method, route template, status, how many and when, with each group's investigation once it has run (what is known, what is assumed, what can't be proven). Needs scope `trail:read`.