API reference
API reference
Every route a token may call, with its parameters, its answer and an example in several languages.
Each page shows the request, the scope it needs, the parameters, the answer with its
schema, and a sample in several languages, next to a playground that sends the call
from your browser. The pages are generated when the docs are built, from the same
OpenAPI document the API serves at https://api.inorbit.hr/openapi.json, so what you
read is what the gateway answers. How every list pages, how to retry a write and the
headers every answer carries are on Paging, retries and errors.
Trying a call
Above every playground is the token bar. Signed in, Create a test token makes a
seven-day token with every read scope and selects it, for your personal account or a
team you own or administer; signed out, sign in first or paste a token you have, from
the console or from a key's exchange (Authentication). The
selected token goes into the playground's bearer field and into every code sample, and
Send calls https://api.inorbit.hr with it, as your code would. Tokens made or
pasted here stay in this browser.
Signed in, the parameters you would otherwise look up are filled in, and each can be picked from a list or typed:
| Parameter | Filled with |
|---|---|
org_id, account_id | the account the selected token belongs to; the list holds all your accounts. An account_id in a request body is filled the same way |
from, to | this month so far; the list offers last month and the last 30 days |
id of a digest | the latest digest; the list holds the twenty latest, asked with your token |
endpoint_id, inbox_id, delivery_id | your first webhook endpoint, test inbox or latest delivery; the list holds the others |
types | left empty; the list holds the event catalogue |
action, actor, after | left empty; the list holds the actions, people and entries in your audit log |
page_token | left empty; after a call the list offers the answer's next page |
language, lang, before_week | left empty; the list offers the languages, the reader languages and recent weeks |
A call for an account other than the token's answers 403 forbidden; the field says so
before you send it.
Your document
GET https://api.inorbit.hr/v1/openapi.json with a bearer token answers the document
for that credential, with only the schemas its routes use. A token with the full API
scope iohr.api, such as a signed-in person's, gets every route of its plan. A key or
token limited to scopes gets the plan's routes those scopes name, so a route a plan adds
without a scope naming it is left out, which is what the gateway admits.
info.x-iohr-cut says what the document was cut to:
| Field | Value |
|---|---|
plan | the plan the routes come from; public on the open /openapi.json and for a token that names no plan |
account | the account the document is for; left out on the open /openapi.json |
scopes | the scopes it was cut to, sorted: iohr.api for a full token, the catalogue scopes it holds for a scoped one, empty on the open /openapi.json |
hash | sha256:… over the operations and schemas with descriptions, summaries, examples and x-iohr-* markers left out, and info not in it, so a documentation edit or a version bump never moves it |
Two documents with the same hash are the same API. A person in several accounts adds
?account=<id> for a team's document, cut to that team's plan; the accounts service
decides membership, and an account the person is not in, or one a token does not belong
to, answers 403 forbidden either way. A malformed id answers 400.
The command line saves the document with iohr openapi pull and
generates a client from it: Generate an SDK for your account.
What is here
The reference is in eight groups, from your account to the enterprise tools. Each card opens a section's overview, with every method it holds in reading order.
Accounts and access
- Account settings8 methodsWho is calling and the account they act for: the caller a token stands for, what the account's plan lets it use, its dashboard layouts and monitors board, the Ask Io widget's branding, and the audit log of who changed what.
- Usage and units7 methodsWhat the account used and what it costs: units by day and by category, the price of each kind of call, the limits that apply to your keys over the last hours and days, and each request the account made with its traffic.
- Domains6 methodsDomains the account has proved it controls.
Observe
- Sensors11 methodsSignals from agents, devices and scripts, and from the platform itself.
- Monitors10 methodsScheduled checks on a connection: each monitor's runs, health, uptime and latency over time, and how long their data is kept.
- Incidents9 methodsWhat happened, when, how bad and for how long: each incident with its postmortem and every saved version, a live stream while it is open, the account's incident settings, and a summary of a window of time built from the platform's records.
- Status pages12 methodsPublic status pages for an account's customers: drafts and saved versions from the designer, publishing, a preview before you publish, and the incident and maintenance notices readers see.
- Trails7 methodsRecordings of how people moved through a site, made with their consent: pages, clicks, timings and errors, never what anyone typed.
Events and webhooks
- Webhooks11 methodsEndpoints that receive the account's events, signed with a secret you can rotate.
- Events4 methodsThe catalogue of every event the account can receive, a live stream of them as they happen, counts per day, and the account's notifications.
- Test inboxes4 methodsAddresses that keep what is posted to them for a day, to try webhooks without a server of your own.
Agents and automation
- Agents11 methodsThe agents your account runs in its own networks: enrol one, list and read them, run a check on one, and revoke or delete it.
- Approvals8 methodsWhat waits on a person's yes: agents ask with a frozen payload, a person decides on a signed device, and the work that follows reports progress on the same record.
- Schedules4 methodsWho covers approvals, and when: layers of working hours and rotations, overrides above them, and who may act on a kind of request at any moment.
- Guardrails5 methodsThe policies an agent is checked against before it acts, and the attestations that prove a decision still holds.
- Agent work70 methodsWhere agents' work is organised: threads you talk to them in, jobs that move through stages with checks, plans and their items, steps and pipelines, messages between agents, shared terminals, and the runners that do the work on your own subscription.
Knowledge
Infrastructure
- Hosts and clusters24 methodsThe account's hosts, clusters and stacks, and runs against them on the account's own agent: an Ansible check or an OpenTofu plan, read-only, with live output and a diff that an apply is pinned to.
- DNS4 methodsThe account's DNS, through its own Cloudflare connection: list zones and their records, plan a change, then apply exactly the plan you read.
Integrations and media
- Connections22 methodsOutside systems the account connects to: the catalogue of connectors they are made from, signing in to a provider, testing a connection, the grants that let a token or a product use one, and each connection's history.
- Extensions4 methodsThe catalogue of what `iohr ext install` runs: InOrbit's own listings, your account's private ones and public ones, their versions, the scopes and privileges each declares, and the publishers behind them.
- Narration7 methodsAI narration through the account's own ElevenLabs connection: the voices it offers, narrated clips with their licence and the AI-voice disclosure, and the monthly budget with what was spent.
- Scam reports4 methodsReport a scam website or social handle, take your report back, see the reports you sent, and follow the shared list of reported targets live.
- Voice3 methodsReal-time calls with Io, the InOrbit assistant: start one on a thread, read how it went, and hang up.
- Radar3 methodsThe weekly digests of what changed in Go, Rust and Solidity: the published digests, newest week first, and the items Radar read to write them.
- Schemas5 methodsThe JSON Schemas InOrbit publishes and keeps: the catalogue, each schema's versions and their differences, and the findings of the schemas check.
Enterprise
- Cases25 methodsStudies of a client and the cases cut from them: versions, shares to a customer organisation or to named people, who opened what, and lessons a person approves before they are kept.
- Impact3 methodsThe counts behind the Impact page, per account and per assistant client: agents report snapshots, and every surface reads and watches the same picture.
The events that webhooks and MQTT deliver
are listed on the Webhooks page, and GET /v1/events/types answers the catalogue with a
schema per type.
A product opens to tokens and keys with scopes of its own, and the changelog names each new route.