Skip to content
GitmoapAPIBeta
Schema

AiOrgRevision

One version of an organization's configuration. A published version never changes.

Shape

  • author_kindAiRevisionAuthorpersonagentplatform
  • bodyOrgConfig
    • The OrgConfig schema
    • autonomyAutonomyConfig
      • The AutonomyConfig schema
      • levelAutonomyLevelsupervisedgatedautonomousHow much an organization may do without asking: a named preset for every gate, each of which can still be set on its own.
      • gatesarray of GateOverrideoptional
        • The GateOverride schema
        • gateAiGateKindmerge_protectedmerge_unprotectedlarge_changeadd_dependencycreate_work_itemclose_work_itemreleasedeploy_non_productiondeploy_productionexternal_messagesession_spendprivileged_pathritual_outcomeA kind of action an organization's autonomy decides whether an agent may take without asking.
        • settingGateSettingasknotifyallowWhat a gate does when its action comes up, from strictest to loosest: wait for a person, go ahead and tell the approvers, or go ahead.
    • budgetsBudgets
      • The Budgets schema
      • org_monthly_cap_microsinteger · int640–∞All model usage and fees of the organization per calendar month in UTC. Required.
      • agent_daily_cap_microsinteger · int64 or nulloptional0–∞
      • session_cap_microsinteger · int64 or nulloptional0–∞
    • structureOrgStructure
      • The OrgStructure schema
      • levelStructureLevelL1L2L3The organization's shape: L1 is engineers in one squad, L2 adds squads each led by a product owner, L3 adds a director across the squads.
      • boardarray of UserId (string · uuid)optionalBesides the root group's Owners, who are always on it.
    • agentsarray of AgentConfigoptional
      • The AgentConfig schema
      • display_nameAgentDisplayName (string)
      • handleAgentHandle (string)
      • keyAgentKey (string)
      • positionPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writerAn agent's job, which decides what it may do and which model tier it uses by default.
      • squadSquadKey (string)
      • profileAgentProfileoptional
        • The AgentProfile schema
        • model_tierAiModelTiermost_capablestandardeconomicalor nulloptionalOverrides the position's tier for this agent.
        • personaAgentPersona (string) or nulloptional
      • specialisationSpecialisationbackendfrontendinfrastructurecli_and_toolingqualityor nulloptionalAn engineer's specialisation, which shapes the work it is given.
      • wip_limitinteger · int32 or nulloptional0–∞
    • modelsarray of PositionRoutingoptionalPinned.
      • The PositionRouting schema
      • positionPositionengineerreviewerproduct_ownerdirectorrelease_managertechnical_writerAn agent's job, which decides what it may do and which model tier it uses by default.
      • tierAiModelTiermost_capablestandardeconomicalA model tier: the most capable, the standard, or the economical model in the organization's region.
      • modelAiModelKey (string) or nulloptionalAn exact model, which stays exact until the provider retires it.
    • pipelinesPipelinePolicyoptionalOrdered.
      • The PipelinePolicy schema
      • agent_codeAgentCodeTrustuntrustedtrustedoptionalWhether a run of code an agent wrote, or a run an agent started, gets the repository's connections, secrets, cloud roles and build cache.
    • squadsarray of SquadConfigoptional
      • The SquadConfig schema
      • keySquadKey (string)
      • leadAgentKey (string)
      • nameSquadName (string)
      • repositoriesarray of RepositoryId (string · uuid)optional
    • trackerTrackerConfigoptional
    • triggersTriggerAllowListoptional
  • body_digeststringHex SHA-256 of the canonical body; two revisions with one digest are one configuration.
  • created_atstring · date-time
  • created_byActorSummary
  • numberinteger · int64
  • org_idAiOrgId (string · uuid)
  • revision_idAiOrgRevisionId (string · uuid)
  • stateAiRevisionStatedraftproposedpublishedsupersededdeclined
  • updated_atstring · date-time
  • parent_numberinteger · int64 or nulloptionalThe revision this one was edited from.
  • published_atstring · date-time or nulloptional
  • published_byActorSummary or nulloptional

Example

Synthesized example
{
"author_kind": "person",
"body": {
"autonomy": {
"level": "supervised",
"gates": [
{
"gate": "merge_protected",
"setting": "ask"
},
{
"gate": "merge_protected",
"setting": "ask"
}
]
},
"budgets": {
"org_monthly_cap_micros": 80,
"agent_daily_cap_micros": 62,
"session_cap_micros": 4
},
"structure": {
"level": "L1",
"board": [
"a3f1c2d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"a3f1c2d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
]
},
"agents": [
{
"display_name": "Tomás Reyes",
"handle": "handle-30cf",
"key": "key-fa0e",
"position": "engineer",
"squad": "squad-6679"
}
],
"models": [
{
"position": "engineer",
"tier": "most_capable"
},
{
"position": "engineer",
"tier": "most_capable"
}
],
"pipelines": {
"agent_code": "untrusted"
},
"squads": [
{
"key": "key-47d0",
"lead": "lead-c532",
"name": "payments-api"
}
],
"tracker": {
"kind": "gitmoap"
},
"triggers": {
"principals": [
"a5178552-89ae-4388-b36e-6acd017151b7"
]
}
},
"body_digest": "body-digest-bfa7",
"created_at": "2026-10-10T00:53:38Z",
"created_by": {
"email": "lin@acme.example",
"id": "id-4e71",
"username": "lin",
"avatar_url": "https://gitmoap.example/acme/64a69a8e"
},
"number": 17,
"org_id": "da68d11e-7fa6-4ee5-abe5-db168ca4b589",
"revision_id": "a090e482-97c8-45d7-bf37-cce67420713a",
"state": "draft",
"updated_at": "2026-10-12T05:17:36Z",
"parent_number": 83,
"published_at": "2026-10-16T17:08:56Z",
"published_by": {
"email": "mara@acme.example",
"id": "id-6ce7",
"username": "tomas",
"avatar_url": "https://gitmoap.example/acme/a837d2db"
}
}

Graph

Used by