Spaces
List spaces
The account's spaces, newest first: one per system, each with its documents' counts by status and when it last changed. query matches the name. Paged with page_size and next_page_token.
Needs scope decisions: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.
account_id?stringA team you belong to; empty for your own account.
query?stringWords in the space's name; empty for all.
page_size?integerAt most this many; 0 means 50, above 200 means 200.
int32page_token?stringFrom the previous page's next_page_token.
parent_id?stringkind?stringdepartment?stringtop_level?booleaniohr.decisions.v1.ListSpacesResponse
application/json- response
iohr.decisions.v1.ListSpacesResponse
next_page_token*stringspaces*array<>import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const space of api.decisions.allListSpaces()) { console.log(space); }} 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.
{ "next_page_token": "string", "spaces": [ { "access_floor": "string", "account_id": "string", "account_name": "string", "awaiting_review": 0, "children": 0, "created_at": "string", "department": "string", "depth": 0, "description": "string", "documents": 0, "effective_access_floor": "string", "kind": "string", "name": "string", "open": 0, "parent_id": "string", "slug": "string", "space_id": "string", "templates": [ "string" ], "updated_at": "string" } ]}