API referenceVoice
API reference
Get a voice call
Have a token? Manage tokens in the console
GET
One call: its state, when it started and ended, how long it ran, how many turns and hand-offs it had, and why it ended. Never what was said.
Needs scope voice:read.
bearerheader
AuthorizationBearer <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.
session_id*stringThe call's id, from Start a voice call.
account_id?stringThe account's id: org in GET /v1/me.
iohr.voice.v1.GetSessionResponse
application/json- response
iohr.voice.v1.GetSessionResponse
session?iohr.voice.v1.Session
SDK
HTTP
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.voice.getSession("<session_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
{ "session": { "account_id": "string", "characters": 0, "duration_ms": "string", "end_reason": "string", "ended_at": "string", "handoffs": 0, "max_characters": 0, "max_seconds": 0, "room": "string", "session_id": "string", "started_at": "string", "state": "string", "thread_id": "string", "turns": 0 }}