Skip to content

API reference ​

This page summarises the operations in the build with every module. The source of truth is the generated snapshots in crates/orbit-bin, which tests keep in step with the code:

The build without optional modules has only the kernel operations, and no MCP tools. Authentication, error codes and limits are in the API overview.

By module ​

What each module on development declares in its manifest. Each command is a GraphQL mutation and a CLI verb, each query a GraphQL query field and a CLI verb; MCP tools are the subset the module lists, and sensitive ones need the person's approval. The module READMEs describe every operation and who may run it.

ModuleCommandsQueriesMCP toolsSensitive
agents4100
attendance12762
core251590
country-ca1221
country-lk1221
expenses1710136
hello5231
inbox3640
leave14882
payroll26182219
policies97112
recruitment3012167
scim9502

Kernel and the sample module ​

Every GraphQL field returns a JSON value. "Who may" is what the Cedar policies allow a person with that tenant role. An owner can do everything an admin can, and an admin everything a member can.

OperationKindGraphQLMCP toolCLIInputOutputWho may
kernel.module.enablecommandkernelModuleEnablenoneorbit kernel module enable --module <id>module: module idnulladmin
kernel.module.disablecommandkernelModuleDisablenoneorbit kernel module disable --module <id>module: module idnulladmin
kernel.session.getquerykernelSessionGetnoneorbit kernel session getnone{ actor: { kind, id }, modules: [enabled module ids] }member
hello.greeting.postcommandhelloGreetingPosthello.greeting.postorbit hello greeting post --text <text>text: 1 to 280 charactersthe greetingmember
hello.greeting.listqueryhelloGreetingListhello.greeting.listorbit hello greeting listnoneup to 50 greetings, newest firstmember
hello.greeting.deletecommandhelloGreetingDeletehello.greeting.delete (sensitive)orbit hello greeting delete --id <id>id: greeting id (UUID)nullthe author, or an admin

A greeting is { id, author, text, posted_at }: author is the Orbit id of the person who posted it and posted_at is a UTC timestamp.

Notes ​

  • kernel.* operations are always available. kernel.session.get lists the modules enabled for your tenant (the built-in kernel is not listed).
  • kernel.module.enable and kernel.module.disable only switch the module on or off for your tenant; they never run migrations (ADR 0004). module must be a module compiled into the server, or the answer is NOT_FOUND. They are refused with CONFLICT when the module has not been migrated yet (an operator runs orbit migrate), when enabling a module whose dependencies are off, and when disabling a module that another enabled module requires. Disabling hides the module for your tenant and keeps its data. Switching to the state a module is already in does nothing.
  • hello.* operations need the hello module enabled for your tenant. Otherwise they are refused with FORBIDDEN, and MCP does not list its tools.
  • hello.greeting.post emits the event hello.greeting.posted. Posting a greeting is something only a person can do.
  • hello.greeting.delete is sensitive. Over MCP it needs the confirm step described in the API overview. It returns NOT_FOUND for a greeting that does not exist in your tenant.
  • CLI flags. Every generated command also takes --input-json <JSON>, --json and --server <URL>.

Orbit by SkySync Tech. Licensed under AGPL-3.0.