Sign in
Docs

Spaces

List spaces

Have a token? Manage tokens in the console
GET
/v1/decisions/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.

Authorization

bearer
headerAuthorizationBearer <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.

Query Parameters

account_id?string

A team you belong to; empty for your own account.

query?string

Words in the space's name; empty for all.

page_size?integer

At most this many; 0 means 50, above 200 means 200.

Formatint32
page_token?string

From the previous page's next_page_token.

parent_id?string
kind?string
department?string
top_level?boolean

Response Body

iohr.decisions.v1.ListSpacesResponse

application/json
  1. response

iohr.decisions.v1.ListSpacesResponse

next_page_token*string
spaces*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.

Example Response
{  "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"    }  ]}