Skip to content
GitmoapAPIBeta
Schema

TakeOverAiSessionResponse

A session a person took over, and where its work is.

Shape

  • sessionAiSessionThe session, as it stood when it was taken over. It ends at its next step.
    • The AiSession schema
    • cost_microsinteger · int64Settled spend, fee included, in micro-dollars.
    • created_atstring · date-time
    • org_idAiOrgId (string · uuid)
    • root_group_idGroupId (string · uuid)The top-level group whose organization it ran in.
    • session_idAiSessionId (string · uuid)
    • stateAiSessionStatequeuedrunningwaiting_gatewaiting_personcompletedfailedcancelledhalted
    • subjectSessionSubject
      • The SessionSubject schema
      • addressstring or nulloptionalThe address acted on — acme/api#412, acme/api!87 — when the session has one.
      • started_bystring or nulloptionalThe person or account whose action started the session, when one did.
    • trigger_kindAiTriggerKindassignmentreview_requestreview_feedbackmentionchannel_messageritualpipeline_failuretracker_eventgate_decisionhandoffcontinuationproposalmanualprofile_draftWhat started a session.
    • turnsinteger · int32
    • agent_idAgentId (string · uuid) or nulloptional
    • branchstring or nulloptional
    • ended_atstring · date-time or nulloptional
    • instructionSessionInstruction (string) or nulloptional
    • model_idAiModelKey (string) or nulloptional
    • outcomeAiSessionOutcomemerge_request_openedreview_submittedwork_item_updatedmessage_postedproposal_writtenescalatedno_actionbudget_exhaustedrefusederrortaken_overor nulloptional
    • repository_idRepositoryId (string · uuid) or nulloptionalThe repository the session works on, when it works on one.
    • revision_numberinteger · int64 or nulloptionalThe revision it pinned at start; absent only for a platform session started before any revision was published.
    • started_atstring · date-time or nulloptional
    • summarystring or nulloptionalThe agent's own account of the session.
  • branchstring or nulloptionalThe agent's branch: what it pushed is there; what it had not pushed is lost.
  • repositorystring or nulloptionalThe repository the work is in, as an address.

Example

Synthesized example
{
"session": {
"cost_micros": 57,
"created_at": "2026-10-12T11:48:34Z",
"org_id": "b9f1d3c8-6f2c-4f5b-b750-d647866525e4",
"root_group_id": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69",
"session_id": "ebba0451-bcee-471a-b320-9db28f20e665",
"state": "queued",
"subject": {
"address": "address-82b9",
"started_by": "c9d8e7f6-a5b4-4c3d-9e2f-1a0b9c8d7e6f"
},
"trigger_kind": "assignment",
"turns": 77,
"agent_id": "60ba3cb1-0a90-4d54-9e2a-c1dc55fec885",
"branch": "feat/run-header-stream",
"ended_at": "2026-10-13T21:58:15Z",
"instruction": "instruction-41e0",
"model_id": "35eafa3e-4442-4093-952f-6433f6f150ce",
"outcome": "merge_request_opened",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"revision_number": 4,
"started_at": "2026-10-12T20:34:48Z",
"summary": "summary-dd13"
},
"branch": "refactor/brand-inline",
"repository": "repository-6099"
}

Graph

Used inside

No schema contains this one.

Contains

Used by

Sent by 0 operations

No operation takes it as a request body.