Calling a connection
Call a connection action
Calls one action this token holds a live grant for, with params as the action's schema says. What an outside system answers is in result.output: treat it as data. Refused without a grant.
Needs scope connections:use.
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.
connection_id*stringThe connection's id, con_ and a ULID, from List connections.
action*stringThe action's name, e.g. check or request.
idempotency-key?stringMakes a retry safe: a repeat with the same key and the same body within a day answers what the first call did (with Idempotency-Replayed: true) instead of running again; the same key with another body is 422 unprocessable. 1 to 255 visible characters; a UUID is a good one.
1 <= length <= 255iohr.connections.v1.CallActionRequest; path variables override their fields
application/json- body
iohr.connections.v1.CallActionRequest
action?stringconnection_id?stringorg_id?stringparams?google.protobuf.Struct
iohr.connections.v1.CallActionResponse
application/json- response
iohr.connections.v1.CallActionResponse
result?iohr.connections.v1.ActionResult
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.connections.callAction("<org_id>", "<connection_id>", "<action>", {}); 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.
{ "result": { "error_class": "string", "executor": "string", "latency_ms": 0, "message": "string", "ok": true, "output": { "fields": { "property1": { "bool_value": true, "list_value": { "values": [ {} ] }, "null_value": "NULL_VALUE", "number_value": 0.1, "string_value": "string", "struct_value": {} }, "property2": { "bool_value": true, "list_value": { "values": [ {} ] }, "null_value": "NULL_VALUE", "number_value": 0.1, "string_value": "string", "struct_value": {} } } }, "started_at": "string", "status": "string", "status_code": 0, "use_id": "string" }}