Agentsai-org
GET/groups/{group_id}/ai-org/ritual-runs/{run_id}
One ritual run.
get_ai_ritual_run
ai_org:read
A token needs theai_org:readscope: Read an AI organization, its agents, sessions and usageGranted byread_api,write_api.Every operation this scope unlocks
For anyone who can see the organization; its recorded outcome only under its squad's readership, as in the listing. A run of another organization is not found.
Parameters
Path
- group_idGroupId (string · uuid)The organization's top-level group
- run_idAiRitualRunId (string · uuid)The run
Responses
200The runapplication/json
- cost_microsinteger · int64What it spent, in millionths of a dollar with the fee included.
- kindRitualKindstand_upplanningrefinementreviewretrospectivearchitecture_reviewreleasereplenishmentdigestWhat the ritual does.
- namestringThe ritual's name when the run was scheduled.
- ritual_keyRitualKey (string)The ritual's key in the revision.
- run_idAiRitualRunId (string · uuid)The run.
- scheduled_forstring · date-timeWhen it was due.
- started_byAiRitualStartscheduledmanualreleaseWhat started it.
- stateAiRitualRunStatescheduledrunningcompletedskippedfailedWhere it stands.
- budget_microsinteger · int64 or nulloptionalThe most it may spend.
- ended_atstring · date-time or nulloptionalWhen it ended.
- errorstring or nulloptionalWhy it failed.
- gate_idAiGateId (string · uuid) or nulloptionalThe gate its outcome waits on, when a person approves it.
- outcomeobject or nulloptionalWhat it produced, as its facilitator recorded it.
- phaseAiRitualPhaseparticipantsfacilitatingawaiting_approvalapplyingor nulloptionalWhere a running run is.
- skip_reasonstring or nulloptionalWhy it was skipped.
- squad_keySquadKey (string) or nulloptionalThe squad it ran for; absent for the whole organization.
- started_atstring · date-time or nulloptionalWhen it started.
- threadstring or nulloptionalIts thread, by address.
200 exampleSynthesized example
{
"cost_micros": 84,
"kind": "stand_up",
"name": "payments-api",
"ritual_key": "ritual-key-6056",
"run_id": "621ab2f6-87bf-4eaf-a2ae-3d40a5d9e89b",
"scheduled_for": "2026-10-10T01:45:06Z",
"started_by": "scheduled",
"state": "scheduled",
"budget_micros": 81,
"ended_at": "2026-10-12T10:19:55Z",
"error": "error-b540",
"gate_id": "7f2aa62b-dea7-4c56-b066-a85aaabd7814",
"outcome": {},
"phase": "participants",
"skip_reason": "skip-reason-b121",
"squad_key": "squad-key-19e2",
"started_at": "2026-10-14T15:55:48Z",
"thread": "thread-43cc"
}
400Bad request — a path parameter is not a well-formed value of its typeapplication/json
Error codes
- BAD_REQUESTThe request is malformed: a parameter or a body field is not a well-formed value of its type
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
400 exampleSynthesized example
{
"error": {
"code": "code-6a4c",
"message": "Inline scalar newtypes but keep their brand"
}
}
401Unauthenticated — no credential, or an invalid oneapplication/json
Error codes
- UNAUTHORIZEDNo credential was sent, or the one sent is invalid, expired or revoked
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
401 exampleSynthesized example
{
"error": {
"code": "code-3244",
"message": "Pin a page's payload to the build that rendered it"
}
}
403Forbidden — the caller's access level or token scope is insufficientapplication/json
Error codes
- FORBIDDENYou are signed in but may not do this here;
reasonnames the permission or the rule that refused it - INSUFFICIENT_SCOPEThe access token lacks the scope this operation needs;
required_scopenames it - PERMISSION_REQUIREDYou need a permission you do not hold here; the message names it
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
403 exampleSynthesized example
{
"error": {
"code": "code-b764",
"message": "Label every synthesized example"
}
}
404application/json
Error codes
- NOT_FOUNDThe resource does not exist — or exists and you cannot see it: a private resource you have no access to answers exactly as an absent one does
errorErrorBody
- The ErrorBody schema
- codestringThe coarse category, tied to the status:
NOT_FOUND,CONFLICT,INSUFFICIENT_SCOPE. Every error has one; the API reference's error catalogue lists them all. - messagestringWhat went wrong, for a person. Written to be read, not parsed: match on
reasonorcode. - fieldstring or nulloptionalOn a
400that refused one field's value, the field, as its JSON path:email,items[0].name. Put the message under that input. Absent on every other error. - reasonstring or nulloptionalThe specific code, when the error has one:
LAST_ORGANIZATION_OWNER,BRANCH_PROTECTED. The message starts with it too. Match on this when it is present, and oncodeotherwise. - required_scopestring or nulloptionalThe scope the access token was missing, on
INSUFFICIENT_SCOPE. - violationsanyoptionalPresent on the structured-validation errors (
PROVIDER_VALIDATION_FAILEDper-node,PIPELINE_VALIDATION_FAILEDDAG): a JSON array of the offending elements, so a caller can fix every one in a single round-trip. Absent (omitted) on every other error.
404 exampleSynthesized example
{
"error": {
"code": "code-28a2",
"message": "Inline scalar newtypes but keep their brand"
}
}
CLI
gitmoap ai-org get-ai-ritual-run
- --group-ididThe organization's top-level group (id or group path)
- --run-ididThe run