Your account's events as they happen, as server-sent events. The same events a webhook receives, carrying ids and never content.
Needs scope events:read.
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 (docs.inorbit.hr). The gateway verifies it; the audience is iohr-api.
types?stringComma-separated event types; empty for all.
account_id?stringA team you belong to, to act on its events; empty for your own account.
A stream of iohr.events.v1.StreamEventsResponse events, one JSON object per data:; a failure is an error event carrying Problem
text/event-stream- response
iohr.events.v1.StreamEventsResponse
account_id*stringdata*id*stringoccurred_at*stringtype*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const event of api.events.streamEvents()) { console.log(event); }} 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.
{ "account_id": "string", "data": { "property1": "string", "property2": "string" }, "id": "string", "occurred_at": "string", "type": "string"}