Skip to content
GitmoapAPIBeta
Schema

ListAiGatesResponse

An organization's gates, those waiting for a person first, then the newest.

Shape

  • itemsarray of AiGateThe gates of this page.
    • The AiGate schema
    • approversarray of ActorSummaryThe people named to decide it; empty means the organization's board.
      • The ActorSummary schema
      • emailstringThe principal's address. An agent's is a generated no-reply address — the author of its commits. unknown on a deleted actor and empty on a redacted one.
      • idstringThe principal's id: a user id, a service account id or an agent id, as kind says. Empty on a redacted actor.
      • usernamestringThe name to show: a person's or service account's username, or an agent's handle (which always ends in -ai). deleted-user when the actor no longer resolves, redacted when the caller may not see who it was.
      • avatar_urlstring or nulloptionalThe principal's picture, when one is known. Absent otherwise: a client derives the deterministic avatar URL itself.
      • kindPrincipalKinduserservice_accountagentor nulloptionalWhat the actor is — a person, a service account or an AI organization's agent — and so which page it links to. Absent on a placeholder (a redacted or deleted actor) and on an actor that is not a principal, such as the platform's own system actor; a client draws such an actor unlinked.
    • decide_bystring · date-timeWhen it expires if nobody decides it.
    • gate_idAiGateId (string · uuid)The gate.
    • kindAiGateKindmerge_protectedmerge_unprotectedlarge_changeadd_dependencycreate_work_itemclose_work_itemreleasedeploy_non_productiondeploy_productionexternal_messagesession_spendprivileged_pathritual_outcomeWhich gate of the catalogue it is.
    • org_idAiOrgId (string · uuid)The organization it belongs to.
    • requested_atstring · date-timeWhen it was raised.
    • stateAiGateStatependingapproveddeniedexpiredwithdrawnconsumednotifiedWhere it stands.
    • subjectobjectThe exact action waiting — what a decision applies to and nothing else.
    • agentActorSummary or nulloptionalThe agent whose action it is.
      • The ActorSummary schema
      • emailstringThe principal's address. An agent's is a generated no-reply address — the author of its commits. unknown on a deleted actor and empty on a redacted one.
      • idstringThe principal's id: a user id, a service account id or an agent id, as kind says. Empty on a redacted actor.
      • usernamestringThe name to show: a person's or service account's username, or an agent's handle (which always ends in -ai). deleted-user when the actor no longer resolves, redacted when the caller may not see who it was.
      • avatar_urlstring or nulloptionalThe principal's picture, when one is known. Absent otherwise: a client derives the deterministic avatar URL itself.
      • kindPrincipalKinduserservice_accountagentor nulloptionalWhat the actor is — a person, a service account or an AI organization's agent — and so which page it links to. Absent on a placeholder (a redacted or deleted actor) and on an actor that is not a principal, such as the platform's own system actor; a client draws such an actor unlinked.
    • bodystring or nulloptionalThe exact text an outgoing write would publish, for an external_message gate.
    • consumed_atstring · date-time or nulloptionalWhen the approved action was taken.
    • decided_atstring · date-time or nulloptionalWhen it was decided.
    • decided_byActorSummary or nulloptionalWho decided it.
      • The ActorSummary schema
      • emailstringThe principal's address. An agent's is a generated no-reply address — the author of its commits. unknown on a deleted actor and empty on a redacted one.
      • idstringThe principal's id: a user id, a service account id or an agent id, as kind says. Empty on a redacted actor.
      • usernamestringThe name to show: a person's or service account's username, or an agent's handle (which always ends in -ai). deleted-user when the actor no longer resolves, redacted when the caller may not see who it was.
      • avatar_urlstring or nulloptionalThe principal's picture, when one is known. Absent otherwise: a client derives the deterministic avatar URL itself.
      • kindPrincipalKinduserservice_accountagentor nulloptionalWhat the actor is — a person, a service account or an AI organization's agent — and so which page it links to. Absent on a placeholder (a redacted or deleted actor) and on an actor that is not a principal, such as the platform's own system actor; a client draws such an actor unlinked.
    • decision_notestring or nulloptionalWhat the person who decided it wrote for the agent.
    • ritual_run_idAiRitualRunId (string · uuid) or nulloptionalThe ritual run whose outcome waits on it.
    • session_idAiSessionId (string · uuid) or nulloptionalThe session waiting on it; absent for a ritual's outcome.
  • next_tokenstring or nulloptionalWhere the next page starts; absent on the last.

Example

Synthesized example
{
"items": [
{
"approvers": [],
"decide_by": "a3f1c2d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"gate_id": "c38734ca-dd36-405d-9cba-1fe6f24dd4bc",
"kind": "merge_protected",
"org_id": "97b6b462-10cd-4ae4-b6df-2fb213c18e4c",
"requested_at": "2026-10-10T22:37:31Z",
"state": "pending",
"subject": {}
}
],
"next_token": "next-token-3d7d"
}

Graph

Used inside

No schema contains this one.

Contains

Used by

Sent by 0 operations

No operation takes it as a request body.