API reference
Get the account's incident settings
How the account handles incidents: whether alerts open them (open_on_alert) and whether InOrbit investigates them by itself (auto_investigate), with origin saying whether the account chose or the default applies. Open to any member.
Needs scope incidents:read.
bearerAuthorizationBearer <JWT>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.
org_id*stringThe account's id: org in GET /v1/me.
iohr.incidents.v1.GetIncidentSettingsResponse
application/json- response
iohr.incidents.v1.GetIncidentSettingsResponse
settings?iohr.incidents.v1.IncidentSettings
import { 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.incidents.getIncidentSettings("<org_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}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.
{ "settings": { "auto_investigate": true, "incident_io": { "connection_id": "string", "last_error": "string", "state": "string" }, "open_on_alert": true, "origin": "string", "updated_at": "string", "updated_by": "string" }}