API reference
List an agent inbox
The messages addressed to one of your agent addresses, to its roles, or broadcast by others, oldest first. Only an address bound to you can be read. Page with page_token and next_page_token.
Needs scope coordinator:messages-read.
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.
to?stringThe agent address to read.
page_token?stringThe previous answer's next_page_token.
page_size?integerAt most this many; 0 means 50, above 200 means 200.
int32state?stringopen (the default), acked or all.
account_id?stringThe account; empty is the caller's own.
iohr.coordinator.v1.ListInboxResponse
application/json- response
iohr.coordinator.v1.ListInboxResponse
messages*array<>next_page_token*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 inboxMessage of api.coordinator.allListInbox()) { console.log(inboxMessage); }} 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.
{ "messages": [ { "acked_at": "string", "message": { "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": {} } } }, "received_at": "string", "seq": "string", "state": "string" } ], "next_page_token": "string"}