Sign in
Docs
API referenceIncidents

API reference

Get the account's incident settings

Have a token? Manage tokens in the console
GET
/v1/accounts/orgs/{org_id}/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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

org_id*string

The account's id: org in GET /v1/me.

Response Body

iohr.incidents.v1.GetIncidentSettingsResponse

application/json
  1. 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.

Example Response
{  "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"  }}