> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are an AI coding agent operating Cargo, install the agent skills first: paste `Install Cargo by following https://api.getcargo.io/INSTALL.md` into your session, or run `npx skills add getcargohq/cargo-skills`. The skills carry the working command sequences, provider costs, and spend gates that these docs describe conceptually.
> The skills index at https://raw.githubusercontent.com/getcargohq/cargo-skills/main/llms.txt lists every skill, recipe, and provider playbook individually. Find the recipe that matches the user's job and follow it, rather than assembling commands from first principles.
> Signing up is free: a new account starts with 100 free credits, valid for its first 30 days, and needs no card. `cargo-ai login --email you@company.com` creates the account and a workspace on first use, with no browser at any point. Tell the user this before asking them to sign up.
> Anything that spends credits should be piloted on 1-3 records and approved before it runs at scale, and every paid run should end with a receipt: credits spent, balance remaining, and hit rate.

# Create batch

> Create a new orchestration batch. Returns 202 Accepted; poll Location until the batch reaches a terminal status. (POST /orchestration/batches).



## OpenAPI

````yaml https://api.getcargo.io/openapi.json post /orchestration/batches
openapi: 3.1.0
info:
  title: Cargo API
  version: 1.0.0
  description: >-
    Cargo Platform API v1.


    ## Authentication


    Every endpoint requires a bearer token: `Authorization: Bearer <token>`.

    There is no unauthenticated endpoint. Create a token with `cargo-ai login`,

    or complete OAuth 2.0 authorization code with PKCE (the `oauth2` scheme).

    Authorization-server metadata (RFC 8414) is at

    `https://getcargo.eu.auth0.com/.well-known/oauth-authorization-server`.


    ## Errors


    Every 4xx and 5xx response uses the shared `Error` schema: a JSON

    object carrying `errorMessage`, a human-readable description of what

    went wrong. A long tail of orchestration routes carries `reason`

    instead, a machine-readable cause. Routes may add fields

    (`retryAfter` on a 429), so treat the object as open rather than

    closed.


    ## Rate limits


    Requests are counted per workspace. Every `/v1` response, including

    the 401 an unauthenticated caller gets, carries `RateLimit`

    (`"workspace";r=<remaining>;t=<window seconds>`), `RateLimit-Limit`,

    `RateLimit-Remaining`, `RateLimit-Reset` and `RateLimit-Policy`, and

    the legacy `X-RateLimit-*` spellings alongside them. A 429 carries

    `Retry-After` in seconds: back off by that, rather than retrying

    immediately.


    ## Idempotency


    POST, PUT and PATCH accept an optional `Idempotency-Key` header. A

    retry with the same key and the same request returns the original

    response instead of creating a second record. Reusing a key with a

    different request returns 422. A concurrent retry while the first

    request is still running returns 409. Keys expire after 24 hours.

    Multipart file uploads do not accept the header: the body is not

    parsed until after the key would have to be fingerprinted.


    ## Versioning and deprecation


    The version is in the path (`/v1`), and a breaking change ships as a new

    path rather than by altering this one. Adding a field to a response, a

    new optional request field, or a new endpoint is not breaking, so a

    client must ignore fields it does not recognise.


    The deprecation policy is at
    https://docs.getcargo.ai/api-reference/versioning.

    When an endpoint is being retired it carries the `Deprecation` header

    (RFC 9745) and, once a removal date is fixed, `Sunset` (RFC 8594). Both

    are HTTP dates. There are at least 180 days between them. An endpoint

    marked `deprecated` in this document is still served until its `Sunset`

    passes. No `/v1` operation is currently deprecated.


    ## Long-running operations


    Creating a run or a batch does not wait for the work to finish. The

    create request returns `202 Accepted` with a `Location` header pointing

    at the run or batch. Poll that URL (or `GET` the run / batch by

    `uuid`) until it reaches a terminal status (`success`, `error`,

    `cancelled`, or `skipped`). Do not retry the create request while the

    job is still running. Action execute endpoints follow the same pattern

    unless `waitUntilFinished` is true, in which case a finished job is

    `200`.
servers:
  - url: https://api.getcargo.io/v1
    description: Cargo API
security:
  - bearerAuth: []
  - oauth2:
      - openid
      - profile
      - email
      - offline_access
externalDocs:
  description: API versioning and deprecation policy
  url: https://docs.getcargo.ai/api-reference/versioning
paths:
  /orchestration/batches:
    post:
      tags:
        - Orchestration - Batches
      summary: Create batch
      description: >-
        Create a new orchestration batch. Returns 202 Accepted; poll Location
        until the batch reaches a terminal status. (POST
        /orchestration/batches).
      operationId: postOrchestrationBatches
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                workflowUuid:
                  title: Workflow UUID
                  description: Workflow identifier.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                releaseUuid:
                  title: Release UUID
                  description: Release identifier to run.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                nodes:
                  title: Nodes
                  description: Custom nodes to use for the batch.
                  type: array
                  items:
                    allOf:
                      - type: object
                        properties:
                          uuid:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
                            description: Node identifier.
                          slug:
                            type: string
                            pattern: ^\w+$
                            description: Stable slug for this node.
                          name:
                            description: Node display name, if set.
                            type: string
                          config:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                            description: Node-specific configuration.
                          description:
                            description: What this node does, if set.
                            type: string
                          retry:
                            description: Retry policy for this node, if any.
                            type: object
                            properties:
                              maximumAttempts:
                                description: Maximum number of attempts before giving up.
                                type: number
                              initialInterval:
                                description: >-
                                  Initial delay in seconds before the first
                                  retry.
                                type: number
                              backoffCoefficient:
                                description: >-
                                  Multiplier applied to the delay after each
                                  retry.
                                type: number
                          childrenUuids:
                            type: array
                            items:
                              anyOf:
                                - type: string
                                - type: 'null'
                            description: Child node identifiers, including null slots.
                          fallbackChildUuid:
                            description: Child to run when this node fails, if set.
                            type: string
                          fallbackOnFailure:
                            type: boolean
                            description: Whether to follow the fallback child on failure.
                          position:
                            type: object
                            properties:
                              x:
                                type: number
                                description: Horizontal canvas position.
                              'y':
                                type: number
                                description: Vertical canvas position.
                            required:
                              - x
                              - 'y'
                            description: Canvas position of this node.
                        required:
                          - uuid
                          - slug
                          - config
                          - childrenUuids
                          - fallbackOnFailure
                          - position
                      - anyOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Node runs a built-in Cargo action.
                                enum:
                                  - native
                              actionSlug:
                                type: string
                                description: Slug of the native action to run.
                            required:
                              - kind
                              - actionSlug
                          - type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - capability
                                description: Node records an agent capability call.
                              capabilitySlug:
                                type: string
                                description: Slug of the capability that ran.
                            required:
                              - kind
                              - capabilitySlug
                          - type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - autocomplete
                                description: Node records a connector autocomplete call.
                              autocompleteSlug:
                                type: string
                                description: Slug of the autocomplete that ran.
                              integrationSlug:
                                type: string
                                description: Integration that defines this autocomplete.
                            required:
                              - kind
                              - autocompleteSlug
                              - integrationSlug
                          - type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - harness
                                description: Node records a coding-harness tool call.
                              toolId:
                                type: string
                                description: Id of the harness tool that ran.
                            required:
                              - kind
                              - toolId
                          - type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - mcpServer
                                description: Node records an external MCP tool call.
                              toolId:
                                type: string
                                description: Id of the MCP tool that ran.
                            required:
                              - kind
                              - toolId
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Node calls a connector integration.
                                enum:
                                  - connector
                              connectorUuid:
                                description: Connector to call, if bound.
                                type: string
                              integrationSlug:
                                type: string
                                description: Integration that defines this action.
                              actionSlug:
                                type: string
                                description: Slug of the connector action to run.
                            required:
                              - kind
                              - integrationSlug
                              - actionSlug
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Node invokes a workspace tool.
                                enum:
                                  - tool
                              toolUuid:
                                description: Tool to invoke, if bound.
                                type: string
                              templateSlug:
                                description: Template this tool was created from, if any.
                                type: string
                              releaseUuid:
                                description: Specific tool release to run, if pinned.
                                type: string
                              waitUntilFinished:
                                description: >-
                                  Whether the parent waits for the tool to
                                  finish.
                                type: boolean
                            required:
                              - kind
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Node invokes an agent.
                                enum:
                                  - agent
                              agentUuid:
                                description: Agent to invoke, if bound.
                                type: string
                              templateSlug:
                                description: Template this agent was created from, if any.
                                type: string
                              releaseUuid:
                                description: Specific agent release to run, if pinned.
                                type: string
                              waitUntilFinished:
                                description: >-
                                  Whether the parent waits for the agent to
                                  finish.
                                type: boolean
                            required:
                              - kind
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Node calls a hosted worker.
                                enum:
                                  - worker
                              workerUuid:
                                type: string
                                description: Worker that handles this request.
                              method:
                                type: string
                                enum:
                                  - GET
                                  - POST
                                  - PUT
                                  - PATCH
                                  - DELETE
                                description: HTTP method used to call the worker.
                              path:
                                type: string
                                description: Path on the worker to call.
                              headers:
                                description: HTTP headers sent to the worker, if any.
                                type: object
                                propertyNames:
                                  type: string
                                additionalProperties:
                                  type: string
                            required:
                              - kind
                              - workerUuid
                              - method
                              - path
                data:
                  anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - segment
                          title: Kind
                          description: Data kind.
                        segmentUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Segment UUID
                          description: Segment identifier.
                      required:
                        - kind
                        - segmentUuid
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - change
                          title: Kind
                          description: Data kind.
                        changeUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Change UUID
                          description: Change identifier.
                        changeKinds:
                          type: array
                          items:
                            type: string
                            enum:
                              - added
                              - updated
                              - removed
                              - unchanged
                          title: Change kinds
                          description: Change kinds to include.
                      required:
                        - kind
                        - changeUuid
                        - changeKinds
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - filter
                          title: Kind
                          description: Data kind.
                        modelUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Model UUID
                          description: Model identifier.
                        filter:
                          title: Filter
                          description: Filter criteria.
                          type: object
                          properties:
                            conjonction:
                              type: string
                              enum:
                                - or
                                - and
                              description: How the groups in this filter are combined.
                            groups:
                              type: array
                              items:
                                type: object
                                properties:
                                  conjonction:
                                    type: string
                                    enum:
                                      - or
                                      - and
                                    description: >-
                                      How the conditions in this group are
                                      combined.
                                  conditions:
                                    type: array
                                    items:
                                      anyOf:
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: Match rows with a raw SQL clause.
                                              enum:
                                                - sql
                                            name:
                                              type: string
                                              description: Display name of this SQL condition.
                                            clause:
                                              type: string
                                              description: >-
                                                SQL WHERE clause evaluated against the
                                                model.
                                          required:
                                            - kind
                                            - name
                                            - clause
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Compare a string column.
                                                  enum:
                                                    - string
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: String column this condition compares.
                                              required:
                                                - kind
                                                - columnSlug
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - is
                                                        - isNot
                                                        - contains
                                                        - doesNotContain
                                                        - startsWith
                                                        - endsWith
                                                      description: >-
                                                        How the string column is compared to the
                                                        provided values.
                                                    values:
                                                      anyOf:
                                                        - type: string
                                                        - type: array
                                                          items:
                                                            type: string
                                                      description: >-
                                                        String value or values to compare
                                                        against.
                                                  required:
                                                    - operator
                                                    - values
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - isNull
                                                        - isNotNull
                                                        - isEmpty
                                                        - isNotEmpty
                                                      description: >-
                                                        Whether the string column is null,
                                                        empty, or populated.
                                                  required:
                                                    - operator
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Compare a number column.
                                                  enum:
                                                    - number
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: Number column this condition compares.
                                              required:
                                                - kind
                                                - columnSlug
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - is
                                                        - isNot
                                                        - greaterThan
                                                        - lowerThan
                                                      description: >-
                                                        How the number column is compared to the
                                                        provided value.
                                                    value:
                                                      type: number
                                                      description: Number to compare the column against.
                                                  required:
                                                    - operator
                                                    - value
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match when the number column falls in an
                                                        inclusive range.
                                                      enum:
                                                        - between
                                                    firstValue:
                                                      type: number
                                                      description: Lower bound of the inclusive range.
                                                    lastValue:
                                                      type: number
                                                      description: Upper bound of the inclusive range.
                                                  required:
                                                    - operator
                                                    - firstValue
                                                    - lastValue
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - isNull
                                                        - isNotNull
                                                      description: Whether the number column is null.
                                                  required:
                                                    - operator
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: >-
                                                    Compare a property inside an object
                                                    column.
                                                  enum:
                                                    - objectProperty
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: >-
                                                    Object column that contains the compared
                                                    property.
                                                propertyName:
                                                  type: string
                                                  description: Property name inside the object column.
                                              required:
                                                - kind
                                                - columnSlug
                                                - propertyName
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - is
                                                        - isNot
                                                        - contains
                                                        - greaterThan
                                                        - lowerThan
                                                        - doesNotContain
                                                        - startsWith
                                                        - endsWith
                                                      description: >-
                                                        How the object property is compared to
                                                        the provided value.
                                                    value:
                                                      type: string
                                                      description: >-
                                                        Value to compare the object property
                                                        against.
                                                  required:
                                                    - operator
                                                    - value
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - isNull
                                                        - isNotNull
                                                        - isEmpty
                                                        - isNotEmpty
                                                      description: >-
                                                        Whether the object property is null,
                                                        empty, or populated.
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match when the object property falls in
                                                        an inclusive range.
                                                      enum:
                                                        - between
                                                    value:
                                                      type: string
                                                      description: Lower bound of the inclusive range.
                                                    otherValue:
                                                      type: string
                                                      description: Upper bound of the inclusive range.
                                                  required:
                                                    - operator
                                                    - value
                                                    - otherValue
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Compare an object column.
                                                  enum:
                                                    - object
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: Object column this condition compares.
                                              required:
                                                - kind
                                                - columnSlug
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: Match when the object column is null.
                                                      enum:
                                                        - isNull
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match when the object column is not
                                                        null.
                                                      enum:
                                                        - isNotNull
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match nested property conditions on this
                                                        object column.
                                                      enum:
                                                        - matchConditions
                                                    conjonction:
                                                      type: string
                                                      enum:
                                                        - or
                                                        - and
                                                      description: >-
                                                        How the property conditions are
                                                        combined.
                                                    propertyConditions:
                                                      type: array
                                                      items:
                                                        allOf:
                                                          - type: object
                                                            properties:
                                                              kind:
                                                                type: string
                                                                description: >-
                                                                  Compare a property inside an object
                                                                  column.
                                                                enum:
                                                                  - objectProperty
                                                              relatedModelUuid:
                                                                description: >-
                                                                  Related model this column is read from,
                                                                  if the condition crosses a relationship.
                                                                type: string
                                                              columnSlug:
                                                                type: string
                                                                description: >-
                                                                  Object column that contains the compared
                                                                  property.
                                                              propertyName:
                                                                type: string
                                                                description: Property name inside the object column.
                                                            required:
                                                              - kind
                                                              - columnSlug
                                                              - propertyName
                                                          - anyOf:
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    enum:
                                                                      - is
                                                                      - isNot
                                                                      - contains
                                                                      - greaterThan
                                                                      - lowerThan
                                                                      - doesNotContain
                                                                      - startsWith
                                                                      - endsWith
                                                                    description: >-
                                                                      How the object property is compared to
                                                                      the provided value.
                                                                  value:
                                                                    type: string
                                                                    description: >-
                                                                      Value to compare the object property
                                                                      against.
                                                                required:
                                                                  - operator
                                                                  - value
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    enum:
                                                                      - isNull
                                                                      - isNotNull
                                                                      - isEmpty
                                                                      - isNotEmpty
                                                                    description: >-
                                                                      Whether the object property is null,
                                                                      empty, or populated.
                                                                required:
                                                                  - operator
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    description: >-
                                                                      Match when the object property falls in
                                                                      an inclusive range.
                                                                    enum:
                                                                      - between
                                                                  value:
                                                                    type: string
                                                                    description: Lower bound of the inclusive range.
                                                                  otherValue:
                                                                    type: string
                                                                    description: Upper bound of the inclusive range.
                                                                required:
                                                                  - operator
                                                                  - value
                                                                  - otherValue
                                                      description: >-
                                                        Property conditions evaluated against
                                                        the object column.
                                                  required:
                                                    - operator
                                                    - conjonction
                                                    - propertyConditions
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Compare an array column.
                                                  enum:
                                                    - array
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: Array column this condition compares.
                                              required:
                                                - kind
                                                - columnSlug
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: Match when the array column is null.
                                                      enum:
                                                        - isNull
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: Match when the array column is not null.
                                                      enum:
                                                        - isNotNull
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match nested property conditions on
                                                        items in this array.
                                                      enum:
                                                        - matchConditions
                                                    conjonction:
                                                      type: string
                                                      enum:
                                                        - or
                                                        - and
                                                      description: >-
                                                        How the property conditions are
                                                        combined.
                                                    propertyConditions:
                                                      type: array
                                                      items:
                                                        allOf:
                                                          - type: object
                                                            properties:
                                                              kind:
                                                                type: string
                                                                description: >-
                                                                  Compare a property inside an object
                                                                  column.
                                                                enum:
                                                                  - objectProperty
                                                              relatedModelUuid:
                                                                description: >-
                                                                  Related model this column is read from,
                                                                  if the condition crosses a relationship.
                                                                type: string
                                                              columnSlug:
                                                                type: string
                                                                description: >-
                                                                  Object column that contains the compared
                                                                  property.
                                                              propertyName:
                                                                type: string
                                                                description: Property name inside the object column.
                                                            required:
                                                              - kind
                                                              - columnSlug
                                                              - propertyName
                                                          - anyOf:
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    enum:
                                                                      - is
                                                                      - isNot
                                                                      - contains
                                                                      - greaterThan
                                                                      - lowerThan
                                                                      - doesNotContain
                                                                      - startsWith
                                                                      - endsWith
                                                                    description: >-
                                                                      How the object property is compared to
                                                                      the provided value.
                                                                  value:
                                                                    type: string
                                                                    description: >-
                                                                      Value to compare the object property
                                                                      against.
                                                                required:
                                                                  - operator
                                                                  - value
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    enum:
                                                                      - isNull
                                                                      - isNotNull
                                                                      - isEmpty
                                                                      - isNotEmpty
                                                                    description: >-
                                                                      Whether the object property is null,
                                                                      empty, or populated.
                                                                required:
                                                                  - operator
                                                              - type: object
                                                                properties:
                                                                  operator:
                                                                    type: string
                                                                    description: >-
                                                                      Match when the object property falls in
                                                                      an inclusive range.
                                                                    enum:
                                                                      - between
                                                                  value:
                                                                    type: string
                                                                    description: Lower bound of the inclusive range.
                                                                  otherValue:
                                                                    type: string
                                                                    description: Upper bound of the inclusive range.
                                                                required:
                                                                  - operator
                                                                  - value
                                                                  - otherValue
                                                      description: >-
                                                        Property conditions evaluated against
                                                        array items.
                                                  required:
                                                    - operator
                                                    - conjonction
                                                    - propertyConditions
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: Compare a column of unknown type.
                                              enum:
                                                - any
                                            relatedModelUuid:
                                              description: >-
                                                Related model this column is read from,
                                                if the condition crosses a relationship.
                                              type: string
                                            columnSlug:
                                              type: string
                                              description: Column this condition compares.
                                            operator:
                                              type: string
                                              enum:
                                                - isNull
                                                - isNotNull
                                              description: Whether the column is null.
                                          required:
                                            - kind
                                            - columnSlug
                                            - operator
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: Compare a vector column.
                                              enum:
                                                - vector
                                            relatedModelUuid:
                                              description: >-
                                                Related model this column is read from,
                                                if the condition crosses a relationship.
                                              type: string
                                            columnSlug:
                                              type: string
                                              description: Vector column this condition compares.
                                            operator:
                                              type: string
                                              enum:
                                                - isNull
                                                - isNotNull
                                              description: Whether the vector column is null.
                                          required:
                                            - kind
                                            - columnSlug
                                            - operator
                                        - allOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Compare a date column.
                                                  enum:
                                                    - date
                                                relatedModelUuid:
                                                  description: >-
                                                    Related model this column is read from,
                                                    if the condition crosses a relationship.
                                                  type: string
                                                columnSlug:
                                                  type: string
                                                  description: Date column this condition compares.
                                              required:
                                                - kind
                                                - columnSlug
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - is
                                                        - isNot
                                                        - greaterThan
                                                        - lowerThan
                                                      description: >-
                                                        How the date column is compared to the
                                                        provided value.
                                                    value:
                                                      type: string
                                                      description: Date to compare the column against.
                                                  required:
                                                    - operator
                                                    - value
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Match when the date column falls in an
                                                        inclusive range.
                                                      enum:
                                                        - between
                                                    firstValue:
                                                      type: string
                                                      description: Lower bound of the inclusive range.
                                                    lastValue:
                                                      type: string
                                                      description: Upper bound of the inclusive range.
                                                  required:
                                                    - operator
                                                    - firstValue
                                                    - lastValue
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - isNull
                                                        - isNotNull
                                                      description: Whether the date column is null.
                                                  required:
                                                    - operator
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: Compare a boolean column.
                                              enum:
                                                - boolean
                                            relatedModelUuid:
                                              description: >-
                                                Related model this column is read from,
                                                if the condition crosses a relationship.
                                              type: string
                                            columnSlug:
                                              type: string
                                              description: Boolean column this condition compares.
                                            operator:
                                              type: string
                                              enum:
                                                - isTrue
                                                - isFalse
                                                - isNull
                                                - isNotNull
                                              description: How the boolean column is compared.
                                          required:
                                            - kind
                                            - columnSlug
                                            - operator
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: >-
                                                Match rows by how often related records
                                                occur.
                                              enum:
                                                - occurrence
                                            relatedModelUuid:
                                              type: string
                                              description: >-
                                                Related model whose matching records are
                                                counted.
                                            frequency:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Require that no matching related records
                                                        exist.
                                                      enum:
                                                        - not
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - moreThan
                                                        - lessThan
                                                        - exactly
                                                      description: >-
                                                        How many matching related records are
                                                        required.
                                                    value:
                                                      type: number
                                                      description: Occurrence count to compare against.
                                                  required:
                                                    - operator
                                                    - value
                                              description: >-
                                                How many matching related records are
                                                required.
                                            period:
                                              type: object
                                              properties:
                                                operator:
                                                  type: string
                                                  enum:
                                                    - lessThan
                                                    - moreThan
                                                    - exactly
                                                  description: How the lookback window is compared.
                                                value:
                                                  type: number
                                                  description: Length of the lookback window.
                                                unit:
                                                  type: string
                                                  description: Unit of the lookback window.
                                                  enum:
                                                    - day
                                              required:
                                                - operator
                                                - value
                                                - unit
                                              description: >-
                                                Lookback window those related records
                                                must fall in.
                                            conjonction:
                                              type: string
                                              enum:
                                                - or
                                                - and
                                              description: >-
                                                How the nested occurrence conditions are
                                                combined.
                                            conditions:
                                              type: array
                                              items:
                                                anyOf:
                                                  - allOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            description: Compare a string column.
                                                            enum:
                                                              - string
                                                          relatedModelUuid:
                                                            description: >-
                                                              Related model this column is read from,
                                                              if the condition crosses a relationship.
                                                            type: string
                                                          columnSlug:
                                                            type: string
                                                            description: String column this condition compares.
                                                        required:
                                                          - kind
                                                          - columnSlug
                                                      - anyOf:
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - is
                                                                  - isNot
                                                                  - contains
                                                                  - doesNotContain
                                                                  - startsWith
                                                                  - endsWith
                                                                description: >-
                                                                  How the string column is compared to the
                                                                  provided values.
                                                              values:
                                                                anyOf:
                                                                  - type: string
                                                                  - type: array
                                                                    items:
                                                                      type: {}
                                                                description: >-
                                                                  String value or values to compare
                                                                  against.
                                                            required:
                                                              - operator
                                                              - values
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - isNull
                                                                  - isNotNull
                                                                  - isEmpty
                                                                  - isNotEmpty
                                                                description: >-
                                                                  Whether the string column is null,
                                                                  empty, or populated.
                                                            required:
                                                              - operator
                                                  - allOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            description: Compare a number column.
                                                            enum:
                                                              - number
                                                          relatedModelUuid:
                                                            description: >-
                                                              Related model this column is read from,
                                                              if the condition crosses a relationship.
                                                            type: string
                                                          columnSlug:
                                                            type: string
                                                            description: Number column this condition compares.
                                                        required:
                                                          - kind
                                                          - columnSlug
                                                      - anyOf:
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - is
                                                                  - isNot
                                                                  - greaterThan
                                                                  - lowerThan
                                                                description: >-
                                                                  How the number column is compared to the
                                                                  provided value.
                                                              value:
                                                                type: number
                                                                description: Number to compare the column against.
                                                            required:
                                                              - operator
                                                              - value
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: >-
                                                                  Match when the number column falls in an
                                                                  inclusive range.
                                                                enum:
                                                                  - between
                                                              firstValue:
                                                                type: number
                                                                description: Lower bound of the inclusive range.
                                                              lastValue:
                                                                type: number
                                                                description: Upper bound of the inclusive range.
                                                            required:
                                                              - operator
                                                              - firstValue
                                                              - lastValue
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - isNull
                                                                  - isNotNull
                                                                description: Whether the number column is null.
                                                            required:
                                                              - operator
                                                  - allOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            description: Compare an object column.
                                                            enum:
                                                              - object
                                                          relatedModelUuid:
                                                            description: >-
                                                              Related model this column is read from,
                                                              if the condition crosses a relationship.
                                                            type: string
                                                          columnSlug:
                                                            type: string
                                                            description: Object column this condition compares.
                                                        required:
                                                          - kind
                                                          - columnSlug
                                                      - anyOf:
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: Match when the object column is null.
                                                                enum:
                                                                  - isNull
                                                            required:
                                                              - operator
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: >-
                                                                  Match when the object column is not
                                                                  null.
                                                                enum:
                                                                  - isNotNull
                                                            required:
                                                              - operator
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: >-
                                                                  Match nested property conditions on this
                                                                  object column.
                                                                enum:
                                                                  - matchConditions
                                                              conjonction:
                                                                type: string
                                                                enum:
                                                                  - or
                                                                  - and
                                                                description: >-
                                                                  How the property conditions are
                                                                  combined.
                                                              propertyConditions:
                                                                type: array
                                                                items:
                                                                  allOf:
                                                                    - type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                    - anyOf: {}
                                                                description: >-
                                                                  Property conditions evaluated against
                                                                  the object column.
                                                            required:
                                                              - operator
                                                              - conjonction
                                                              - propertyConditions
                                                  - allOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            description: Compare an array column.
                                                            enum:
                                                              - array
                                                          relatedModelUuid:
                                                            description: >-
                                                              Related model this column is read from,
                                                              if the condition crosses a relationship.
                                                            type: string
                                                          columnSlug:
                                                            type: string
                                                            description: Array column this condition compares.
                                                        required:
                                                          - kind
                                                          - columnSlug
                                                      - anyOf:
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: Match when the array column is null.
                                                                enum:
                                                                  - isNull
                                                            required:
                                                              - operator
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: Match when the array column is not null.
                                                                enum:
                                                                  - isNotNull
                                                            required:
                                                              - operator
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: >-
                                                                  Match nested property conditions on
                                                                  items in this array.
                                                                enum:
                                                                  - matchConditions
                                                              conjonction:
                                                                type: string
                                                                enum:
                                                                  - or
                                                                  - and
                                                                description: >-
                                                                  How the property conditions are
                                                                  combined.
                                                              propertyConditions:
                                                                type: array
                                                                items:
                                                                  allOf:
                                                                    - type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                    - anyOf: {}
                                                                description: >-
                                                                  Property conditions evaluated against
                                                                  array items.
                                                            required:
                                                              - operator
                                                              - conjonction
                                                              - propertyConditions
                                                  - type: object
                                                    properties:
                                                      kind:
                                                        type: string
                                                        description: Compare a column of unknown type.
                                                        enum:
                                                          - any
                                                      relatedModelUuid:
                                                        description: >-
                                                          Related model this column is read from,
                                                          if the condition crosses a relationship.
                                                        type: string
                                                      columnSlug:
                                                        type: string
                                                        description: Column this condition compares.
                                                      operator:
                                                        type: string
                                                        enum:
                                                          - isNull
                                                          - isNotNull
                                                        description: Whether the column is null.
                                                    required:
                                                      - kind
                                                      - columnSlug
                                                      - operator
                                                  - type: object
                                                    properties:
                                                      kind:
                                                        type: string
                                                        description: Compare a vector column.
                                                        enum:
                                                          - vector
                                                      relatedModelUuid:
                                                        description: >-
                                                          Related model this column is read from,
                                                          if the condition crosses a relationship.
                                                        type: string
                                                      columnSlug:
                                                        type: string
                                                        description: Vector column this condition compares.
                                                      operator:
                                                        type: string
                                                        enum:
                                                          - isNull
                                                          - isNotNull
                                                        description: Whether the vector column is null.
                                                    required:
                                                      - kind
                                                      - columnSlug
                                                      - operator
                                                  - allOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            description: Compare a date column.
                                                            enum:
                                                              - date
                                                          relatedModelUuid:
                                                            description: >-
                                                              Related model this column is read from,
                                                              if the condition crosses a relationship.
                                                            type: string
                                                          columnSlug:
                                                            type: string
                                                            description: Date column this condition compares.
                                                        required:
                                                          - kind
                                                          - columnSlug
                                                      - anyOf:
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - is
                                                                  - isNot
                                                                  - greaterThan
                                                                  - lowerThan
                                                                description: >-
                                                                  How the date column is compared to the
                                                                  provided value.
                                                              value:
                                                                type: string
                                                                description: Date to compare the column against.
                                                            required:
                                                              - operator
                                                              - value
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                description: >-
                                                                  Match when the date column falls in an
                                                                  inclusive range.
                                                                enum:
                                                                  - between
                                                              firstValue:
                                                                type: string
                                                                description: Lower bound of the inclusive range.
                                                              lastValue:
                                                                type: string
                                                                description: Upper bound of the inclusive range.
                                                            required:
                                                              - operator
                                                              - firstValue
                                                              - lastValue
                                                          - type: object
                                                            properties:
                                                              operator:
                                                                type: string
                                                                enum:
                                                                  - isNull
                                                                  - isNotNull
                                                                description: Whether the date column is null.
                                                            required:
                                                              - operator
                                                  - type: object
                                                    properties:
                                                      kind:
                                                        type: string
                                                        description: Compare a boolean column.
                                                        enum:
                                                          - boolean
                                                      relatedModelUuid:
                                                        description: >-
                                                          Related model this column is read from,
                                                          if the condition crosses a relationship.
                                                        type: string
                                                      columnSlug:
                                                        type: string
                                                        description: Boolean column this condition compares.
                                                      operator:
                                                        type: string
                                                        enum:
                                                          - isTrue
                                                          - isFalse
                                                          - isNull
                                                          - isNotNull
                                                        description: How the boolean column is compared.
                                                    required:
                                                      - kind
                                                      - columnSlug
                                                      - operator
                                              description: >-
                                                Conditions the counted related records
                                                must match.
                                          required:
                                            - kind
                                            - relatedModelUuid
                                            - frequency
                                            - period
                                            - conjonction
                                            - conditions
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: Match rows by play enrollment activity.
                                              enum:
                                                - enrollment
                                            workflowUuid:
                                              type: string
                                              description: >-
                                                Play whose enrollment activity is
                                                counted.
                                            activityKind:
                                              type: string
                                              enum:
                                                - workflowEntered
                                                - workflowNodeExecuted
                                                - workflowLeft
                                              description: Enrollment event that is counted.
                                            nodeSlug:
                                              description: >-
                                                Play node whose execution is counted, if
                                                activity is node-scoped.
                                              type: string
                                            frequency:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      description: >-
                                                        Require that no matching enrollment
                                                        activity exists.
                                                      enum:
                                                        - not
                                                  required:
                                                    - operator
                                                - type: object
                                                  properties:
                                                    operator:
                                                      type: string
                                                      enum:
                                                        - moreThan
                                                        - lessThan
                                                        - exactly
                                                      description: >-
                                                        How many matching enrollment events are
                                                        required.
                                                    value:
                                                      type: number
                                                      description: >-
                                                        Enrollment event count to compare
                                                        against.
                                                  required:
                                                    - operator
                                                    - value
                                              description: >-
                                                How many matching enrollment events are
                                                required.
                                            period:
                                              type: object
                                              properties:
                                                operator:
                                                  type: string
                                                  enum:
                                                    - lessThan
                                                    - moreThan
                                                    - exactly
                                                  description: How the lookback window is compared.
                                                value:
                                                  type: number
                                                  description: Length of the lookback window.
                                                unit:
                                                  type: string
                                                  description: Unit of the lookback window.
                                                  enum:
                                                    - day
                                              required:
                                                - operator
                                                - value
                                                - unit
                                              description: >-
                                                Lookback window those enrollment events
                                                must fall in.
                                          required:
                                            - kind
                                            - workflowUuid
                                            - activityKind
                                            - frequency
                                            - period
                                        - type: object
                                          properties:
                                            kind:
                                              type: string
                                              description: >-
                                                Match rows by membership in another
                                                segment.
                                              enum:
                                                - segment
                                            segmentUuid:
                                              type: string
                                              description: Segment whose membership is checked.
                                            operator:
                                              type: string
                                              enum:
                                                - in
                                                - notIn
                                              description: >-
                                                Whether the row must be in or not in the
                                                segment.
                                          required:
                                            - kind
                                            - segmentUuid
                                            - operator
                                    description: Conditions evaluated in this group.
                                required:
                                  - conjonction
                                  - conditions
                              description: Groups of conditions that make up this filter.
                          required:
                            - conjonction
                            - groups
                        sort:
                          title: Sort
                          description: Sort criteria.
                          type: array
                          items:
                            type: object
                            properties:
                              columnSlug:
                                type: string
                                description: Column to order by.
                              kind:
                                type: string
                                enum:
                                  - asc
                                  - desc
                                description: Sort direction for this column.
                            required:
                              - columnSlug
                              - kind
                        limit:
                          title: Limit
                          description: Maximum number of records.
                          type: number
                      required:
                        - kind
                        - modelUuid
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - file
                          title: Kind
                          description: Data kind.
                        s3Filename:
                          type: string
                          title: S3 filename
                          description: S3 file identifier.
                        mappings:
                          title: Mappings
                          description: Field mappings for file data.
                          type: object
                          propertyNames:
                            type: string
                          additionalProperties:
                            type: string
                      required:
                        - kind
                        - s3Filename
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - runs
                          title: Kind
                          description: Data kind.
                        filter:
                          allOf:
                            - type: object
                              properties:
                                batchUuid:
                                  title: Batch UUID
                                  description: Batch identifier to filter by.
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                releaseUuid:
                                  title: Release UUID
                                  description: Release identifier to filter by.
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                parentBatchUuid:
                                  title: Parent batch UUID
                                  description: Parent batch identifier.
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                parentRunUuid:
                                  title: Parent run UUID
                                  description: Parent run identifier.
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                parentNodeUuid:
                                  title: Parent node UUID
                                  description: Parent node identifier.
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                isGroupParent:
                                  title: Is group parent
                                  description: Whether the run is a group parent.
                                  type: boolean
                                executionsFilter:
                                  title: Executions filter
                                  description: Executions filter criteria.
                                  type: object
                                  properties:
                                    conjonction:
                                      type: string
                                      enum:
                                        - or
                                        - and
                                      description: How groups in this filter are combined.
                                    groups:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          conjonction:
                                            type: string
                                            enum:
                                              - or
                                              - and
                                            description: >-
                                              How conditions in this group are
                                              combined.
                                          conditions:
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  description: Condition matches a node's execution.
                                                  enum:
                                                    - node
                                                nodeSlug:
                                                  type: string
                                                  description: Node this condition inspects.
                                                status:
                                                  type: string
                                                  enum:
                                                    - absent
                                                    - pending
                                                    - success
                                                    - error
                                                  description: >-
                                                    Required status of that node's
                                                    execution.
                                                value:
                                                  description: >-
                                                    Optional value to match on the node
                                                    output.
                                                  type: string
                                              required:
                                                - kind
                                                - nodeSlug
                                                - status
                                            description: Node conditions in this group.
                                        required:
                                          - conjonction
                                          - conditions
                                      description: Groups of node conditions.
                                  required:
                                    - conjonction
                                    - groups
                                createdAfter:
                                  title: Created after
                                  description: Include runs created after this timestamp.
                                  type: string
                                createdBefore:
                                  title: Created before
                                  description: Include runs created before this timestamp.
                                  type: string
                            - anyOf:
                                - type: object
                                  properties:
                                    kind:
                                      type: string
                                      title: Kind
                                      description: Filter kind.
                                      enum:
                                        - runs
                                    uuids:
                                      title: UUIDs
                                      description: Run identifiers to include.
                                      type: array
                                      items:
                                        type: string
                                    recordTitle:
                                      title: Record title
                                      description: Record title to filter by.
                                      type: string
                                    statuses:
                                      title: Statuses
                                      description: Run statuses to include.
                                      type: array
                                      items:
                                        type: string
                                        enum:
                                          - idle
                                          - pending
                                          - running
                                          - success
                                          - error
                                          - cancelling
                                          - cancelled
                                          - skipped
                                  required:
                                    - kind
                                - type: object
                                  properties:
                                    kind:
                                      type: string
                                      title: Kind
                                      description: Filter kind.
                                      enum:
                                        - records
                                    ids:
                                      title: IDs
                                      description: Record identifiers to include.
                                      type: array
                                      items:
                                        type: string
                                    title:
                                      title: Title
                                      description: Record title to filter by.
                                      type: string
                                    statuses:
                                      title: Statuses
                                      description: Record statuses to include.
                                      type: array
                                      items:
                                        type: string
                                        enum:
                                          - pending
                                          - running
                                          - success
                                          - error
                                          - cancelling
                                          - cancelled
                                  required:
                                    - kind
                          title: Filter
                          description: Runs filter criteria.
                        reset:
                          anyOf:
                            - type: object
                              properties:
                                from:
                                  type: string
                                  title: From
                                  description: Reset from the last node.
                                  enum:
                                    - lastNode
                              required:
                                - from
                            - type: object
                              properties:
                                from:
                                  type: string
                                  title: From
                                  description: Reset from the first node.
                                  enum:
                                    - firstNode
                              required:
                                - from
                            - type: object
                              properties:
                                from:
                                  type: string
                                  title: From
                                  description: Reset from the next node.
                                  enum:
                                    - nextNode
                              required:
                                - from
                            - type: object
                              properties:
                                from:
                                  type: string
                                  title: From
                                  description: Reset from a specific node.
                                  enum:
                                    - node
                                nodeUuid:
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  title: Node UUID
                                  description: Node identifier to reset from.
                              required:
                                - from
                                - nodeUuid
                          title: Reset
                          description: Reset options.
                      required:
                        - kind
                        - filter
                        - reset
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - recordIds
                          title: Kind
                          description: Data kind.
                        modelUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Model UUID
                          description: Model identifier.
                        ids:
                          type: array
                          items:
                            type: string
                          title: IDs
                          description: Record identifiers.
                      required:
                        - kind
                        - modelUuid
                        - ids
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - records
                          title: Kind
                          description: Data kind.
                        records:
                          type: array
                          items:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                          title: Records
                          description: Inline records.
                      required:
                        - kind
                        - records
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - schedule
                          title: Kind
                          description: Data kind.
                        modelUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Model UUID
                          description: Model identifier.
                        segmentUuid:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          title: Segment UUID
                          description: Segment identifier.
                        changeKinds:
                          type: array
                          items:
                            type: string
                            enum:
                              - added
                              - updated
                              - removed
                              - unchanged
                          title: Change kinds
                          description: Change kinds to include.
                        skip:
                          title: Skip
                          description: Whether to skip scheduling.
                          type: boolean
                      required:
                        - kind
                        - modelUuid
                        - segmentUuid
                        - changeKinds
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - form
                          title: Kind
                          description: Data kind.
                        records:
                          type: array
                          items:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                          title: Records
                          description: Form records.
                        webhookUrl:
                          title: Webhook URL
                          description: URL to call when the batch completes.
                          type: string
                          format: uri
                        webhookSecret:
                          title: Webhook secret
                          description: >-
                            Secret used to sign webhook deliveries. When
                            provided, Cargo includes an X-Cargo-Signature header
                            (sha256=<hex-hmac>) so you can verify the payload.
                          type: string
                        parentRunUuid:
                          title: Parent run UUID
                          description: Parent run identifier.
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        parentNodeUuid:
                          title: Parent node UUID
                          description: Parent node identifier.
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      required:
                        - kind
                        - records
                  title: Data
                  description: Batch input data.
              required:
                - data
              additionalProperties: false
              title: Request body
              description: Request body schema.
      responses:
        '202':
          description: >-
            Batch accepted. Poll the Location header until the batch reaches a
            terminal status.
          headers:
            RateLimit:
              description: >-
                Current quota under the workspace policy, as
                `"workspace";r=<remaining>;t=<window seconds>`.
              schema:
                type: string
                example: '"workspace";r=999;t=60'
            RateLimit-Limit:
              description: Maximum requests allowed in the current window.
              schema:
                type: integer
                example: 1000
            RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
                example: 999
            RateLimit-Reset:
              description: Seconds until the current window resets.
              schema:
                type: integer
                example: 60
            RateLimit-Policy:
              description: Declared policy as `<limit>;w=<window seconds>`.
              schema:
                type: string
                example: 1000;w=60
            X-RateLimit-Limit:
              description: Legacy spelling of RateLimit-Limit.
              schema:
                type: integer
                example: 1000
            X-RateLimit-Remaining:
              description: Legacy spelling of RateLimit-Remaining.
              schema:
                type: integer
                example: 999
            X-RateLimit-Reset:
              description: Legacy spelling of RateLimit-Reset.
              schema:
                type: integer
                example: 60
            Deprecation:
              description: >-
                RFC 9745. Present only when this operation is deprecated.
                HTTP-date of when deprecation began. See
                https://docs.getcargo.ai/api-reference/versioning.
              schema:
                type: string
                example: Sat, 01 Aug 2026 00:00:00 GMT
            Sunset:
              description: >-
                RFC 8594. Present once a removal date is fixed. HTTP-date of
                when the operation will stop being served. At least 180 days
                after Deprecation. See
                https://docs.getcargo.ai/api-reference/versioning.
              schema:
                type: string
                example: Thu, 28 Jan 2027 00:00:00 GMT
            Location:
              description: >-
                Path of the status resource to poll until the job reaches a
                terminal status.
              schema:
                type: string
                example: /v1/orchestration/batches/550e8400-e29b-41d4-a716-446655440000
          content:
            application/json:
              schema:
                type: object
                properties:
                  batch:
                    type: object
                    properties:
                      uuid:
                        type: string
                        description: Batch identifier.
                      workspaceUuid:
                        type: string
                        description: Workspace this batch belongs to.
                      workflowUuid:
                        type: string
                        description: Workflow this batch executed.
                      userUuid:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: User who started this batch, if any.
                      releaseUuid:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Release this batch executed, if any.
                      nodes:
                        anyOf:
                          - type: array
                            items:
                              allOf:
                                - type: object
                                  properties:
                                    uuid:
                                      type: string
                                      format: uuid
                                      pattern: >-
                                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
                                      description: Node identifier.
                                    slug:
                                      type: string
                                      pattern: ^\w+$
                                      description: Stable slug for this node.
                                    name:
                                      description: Node display name, if set.
                                      type: string
                                    config:
                                      type: object
                                      propertyNames:
                                        type: string
                                      additionalProperties: {}
                                      description: Node-specific configuration.
                                    description:
                                      description: What this node does, if set.
                                      type: string
                                    retry:
                                      description: Retry policy for this node, if any.
                                      type: object
                                      properties:
                                        maximumAttempts:
                                          description: >-
                                            Maximum number of attempts before giving
                                            up.
                                          type: number
                                        initialInterval:
                                          description: >-
                                            Initial delay in seconds before the
                                            first retry.
                                          type: number
                                        backoffCoefficient:
                                          description: >-
                                            Multiplier applied to the delay after
                                            each retry.
                                          type: number
                                      additionalProperties: false
                                    childrenUuids:
                                      type: array
                                      items:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                      description: >-
                                        Child node identifiers, including null
                                        slots.
                                    fallbackChildUuid:
                                      description: >-
                                        Child to run when this node fails, if
                                        set.
                                      type: string
                                    fallbackOnFailure:
                                      type: boolean
                                      description: >-
                                        Whether to follow the fallback child on
                                        failure.
                                    position:
                                      type: object
                                      properties:
                                        x:
                                          type: number
                                          description: Horizontal canvas position.
                                        'y':
                                          type: number
                                          description: Vertical canvas position.
                                      required:
                                        - x
                                        - 'y'
                                      additionalProperties: false
                                      description: Canvas position of this node.
                                  required:
                                    - uuid
                                    - slug
                                    - config
                                    - childrenUuids
                                    - fallbackOnFailure
                                    - position
                                  additionalProperties: false
                                - anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          description: Node runs a built-in Cargo action.
                                          enum:
                                            - native
                                        actionSlug:
                                          type: string
                                          description: Slug of the native action to run.
                                      required:
                                        - kind
                                        - actionSlug
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          enum:
                                            - capability
                                          description: Node records an agent capability call.
                                        capabilitySlug:
                                          type: string
                                          description: Slug of the capability that ran.
                                      required:
                                        - kind
                                        - capabilitySlug
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          enum:
                                            - autocomplete
                                          description: >-
                                            Node records a connector autocomplete
                                            call.
                                        autocompleteSlug:
                                          type: string
                                          description: Slug of the autocomplete that ran.
                                        integrationSlug:
                                          type: string
                                          description: >-
                                            Integration that defines this
                                            autocomplete.
                                      required:
                                        - kind
                                        - autocompleteSlug
                                        - integrationSlug
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          enum:
                                            - harness
                                          description: Node records a coding-harness tool call.
                                        toolId:
                                          type: string
                                          description: Id of the harness tool that ran.
                                      required:
                                        - kind
                                        - toolId
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          enum:
                                            - mcpServer
                                          description: Node records an external MCP tool call.
                                        toolId:
                                          type: string
                                          description: Id of the MCP tool that ran.
                                      required:
                                        - kind
                                        - toolId
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          description: Node calls a connector integration.
                                          enum:
                                            - connector
                                        connectorUuid:
                                          description: Connector to call, if bound.
                                          type: string
                                        integrationSlug:
                                          type: string
                                          description: Integration that defines this action.
                                        actionSlug:
                                          type: string
                                          description: Slug of the connector action to run.
                                      required:
                                        - kind
                                        - integrationSlug
                                        - actionSlug
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          description: Node invokes a workspace tool.
                                          enum:
                                            - tool
                                        toolUuid:
                                          description: Tool to invoke, if bound.
                                          type: string
                                        templateSlug:
                                          description: >-
                                            Template this tool was created from, if
                                            any.
                                          type: string
                                        releaseUuid:
                                          description: Specific tool release to run, if pinned.
                                          type: string
                                        waitUntilFinished:
                                          description: >-
                                            Whether the parent waits for the tool to
                                            finish.
                                          type: boolean
                                      required:
                                        - kind
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          description: Node invokes an agent.
                                          enum:
                                            - agent
                                        agentUuid:
                                          description: Agent to invoke, if bound.
                                          type: string
                                        templateSlug:
                                          description: >-
                                            Template this agent was created from, if
                                            any.
                                          type: string
                                        releaseUuid:
                                          description: >-
                                            Specific agent release to run, if
                                            pinned.
                                          type: string
                                        waitUntilFinished:
                                          description: >-
                                            Whether the parent waits for the agent
                                            to finish.
                                          type: boolean
                                      required:
                                        - kind
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          description: Node calls a hosted worker.
                                          enum:
                                            - worker
                                        workerUuid:
                                          type: string
                                          description: Worker that handles this request.
                                        method:
                                          type: string
                                          enum:
                                            - GET
                                            - POST
                                            - PUT
                                            - PATCH
                                            - DELETE
                                          description: HTTP method used to call the worker.
                                        path:
                                          type: string
                                          description: Path on the worker to call.
                                        headers:
                                          description: HTTP headers sent to the worker, if any.
                                          type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties:
                                            type: string
                                      required:
                                        - kind
                                        - workerUuid
                                        - method
                                        - path
                                      additionalProperties: false
                          - type: 'null'
                        description: Node graph as it was when this batch started.
                      temporalWorkflowId:
                        type: string
                        description: Temporal workflow executing this batch.
                      traceUuid:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Trace that records this batch, if any.
                      data:
                        anyOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from a segment.
                                enum:
                                  - segment
                              segmentUuid:
                                type: string
                                description: Segment whose records are processed.
                            required:
                              - kind
                              - segmentUuid
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from a model change.
                                enum:
                                  - change
                              changeUuid:
                                type: string
                                description: Change that produced this batch.
                              changeKinds:
                                type: array
                                items:
                                  type: string
                                description: Record change kinds included in this batch.
                              segmentUuid:
                                type: string
                                description: Segment whose records are processed.
                            required:
                              - kind
                              - changeUuid
                              - changeKinds
                              - segmentUuid
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from a filtered model query.
                                enum:
                                  - filter
                              modelUuid:
                                type: string
                                description: Model to query records from.
                              filter:
                                description: Filter applied to the model, if any.
                              sort:
                                description: Sort applied to the model, if any.
                              limit:
                                description: Maximum number of records to include, if set.
                                type: number
                            required:
                              - kind
                              - modelUuid
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: >-
                                  Batch is sourced from an explicit list of
                                  record identifiers.
                                enum:
                                  - recordIds
                              modelUuid:
                                type: string
                                description: Model these records belong to.
                              ids:
                                type: array
                                items:
                                  type: string
                                description: Record identifiers to process.
                            required:
                              - kind
                              - modelUuid
                              - ids
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from watched record changes.
                                enum:
                                  - watchedRecords
                              modelUuid:
                                type: string
                                description: Model being watched.
                              filter:
                                description: Filter applied to watched records, if any.
                              changeKinds:
                                type: array
                                items:
                                  type: string
                                description: Record change kinds included in this batch.
                              s3Filename:
                                type: string
                                description: S3 key for the watched-record payload.
                              meta:
                                description: >-
                                  Additional metadata for this watch batch, if
                                  any.
                                type: object
                                propertyNames:
                                  type: string
                                additionalProperties: {}
                            required:
                              - kind
                              - modelUuid
                              - changeKinds
                              - s3Filename
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from uploaded records.
                                enum:
                                  - records
                              s3Filename:
                                type: string
                                description: S3 key for the uploaded records.
                            required:
                              - kind
                              - s3Filename
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from an uploaded file.
                                enum:
                                  - file
                              s3Filename:
                                type: string
                                description: S3 key for the uploaded file.
                              mappings:
                                description: >-
                                  Column mappings from the file to model fields,
                                  if any.
                                type: object
                                propertyNames:
                                  type: string
                                additionalProperties:
                                  type: string
                            required:
                              - kind
                              - s3Filename
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from existing runs.
                                enum:
                                  - runs
                              filter:
                                description: Filter that selects which runs to include.
                              reset:
                                description: >-
                                  Reset instructions applied to the selected
                                  runs.
                            required:
                              - kind
                              - filter
                              - reset
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch groups child runs under a parent.
                                enum:
                                  - group
                              s3Filename:
                                type: string
                                description: S3 key for the grouped-run payload.
                              parentBatchUuid:
                                description: Parent batch this group belongs to, if any.
                                type: string
                              parentRunUuid:
                                type: string
                                description: Parent run this group belongs to.
                              parentNodeUuid:
                                type: string
                                description: Parent node that created this group.
                            required:
                              - kind
                              - s3Filename
                              - parentRunUuid
                              - parentNodeUuid
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from a scheduled play.
                                enum:
                                  - schedule
                              modelUuid:
                                type: string
                                description: Model this schedule watches.
                              segmentUuid:
                                type: string
                                description: Segment whose records are processed.
                              changeKinds:
                                type: array
                                items:
                                  type: string
                                description: Record change kinds included in this batch.
                              changeUuid:
                                description: >-
                                  Change that produced this scheduled batch, if
                                  any.
                                type: string
                              skip:
                                description: Whether this scheduled tick was skipped.
                                type: boolean
                              totalRecordsCount:
                                description: >-
                                  Total records considered by this tick, if
                                  known.
                                type: number
                              updatedRecordsCount:
                                description: Records updated since the last tick, if known.
                                type: number
                              removedRecordsCount:
                                description: Records removed since the last tick, if known.
                                type: number
                              addedRecordsCount:
                                description: Records added since the last tick, if known.
                                type: number
                              unchangedRecordsCount:
                                description: >-
                                  Records unchanged since the last tick, if
                                  known.
                                type: number
                            required:
                              - kind
                              - modelUuid
                              - segmentUuid
                              - changeKinds
                            additionalProperties: false
                          - type: object
                            properties:
                              kind:
                                type: string
                                description: Batch is sourced from a public form.
                                enum:
                                  - form
                              s3Filename:
                                type: string
                                description: S3 key for the submitted form data.
                              webhookUrl:
                                description: >-
                                  Webhook to notify when the batch finishes, if
                                  set.
                                type: string
                              parentRunUuid:
                                description: >-
                                  Parent run that created this form batch, if
                                  any.
                                type: string
                              parentNodeUuid:
                                description: >-
                                  Parent node that created this form batch, if
                                  any.
                                type: string
                              parentBatchUuid:
                                description: >-
                                  Parent batch that created this form batch, if
                                  any.
                                type: string
                              parentAgentUuid:
                                description: >-
                                  Parent agent that created this form batch, if
                                  any.
                                type: string
                              parentChatUuid:
                                description: >-
                                  Parent chat that created this form batch, if
                                  any.
                                type: string
                              parentMessageUuid:
                                description: >-
                                  Parent message that created this form batch,
                                  if any.
                                type: string
                            required:
                              - kind
                              - s3Filename
                            additionalProperties: false
                        description: Source of the records in this batch.
                      errorMessage:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Error message if this batch failed.
                      status:
                        type: string
                        enum:
                          - pending
                          - syncing
                          - skipped
                          - querying
                          - running
                          - success
                          - error
                          - cancelling
                          - cancelled
                        description: Current status of this batch.
                      runsStatus:
                        anyOf:
                          - type: string
                            enum:
                              - healthy
                              - unhealthy
                          - type: 'null'
                        description: Whether the runs in this batch are healthy, if known.
                      runsCount:
                        type: number
                        description: Total number of runs in this batch.
                      executedRunsCount:
                        type: number
                        description: Runs that have finished executing.
                      failedRunsCount:
                        type: number
                        description: Runs that failed.
                      creditsUsedCount:
                        type: number
                        description: Credits consumed by this batch.
                      createdAt:
                        description: Time this batch was created.
                        type: string
                      updatedAt:
                        description: Time this batch was last updated.
                        type: string
                      finishedAt:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: Time this batch finished, if it has.
                    required:
                      - uuid
                      - workspaceUuid
                      - workflowUuid
                      - userUuid
                      - releaseUuid
                      - nodes
                      - temporalWorkflowId
                      - traceUuid
                      - data
                      - errorMessage
                      - status
                      - runsStatus
                      - runsCount
                      - executedRunsCount
                      - failedRunsCount
                      - creditsUsedCount
                      - createdAt
                      - updatedAt
                      - finishedAt
                    additionalProperties: false
                    title: Batch
                    description: Created batch details.
                required:
                  - batch
                additionalProperties: false
        '400':
          $ref: '#/components/responses/BadRequest'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          $ref: '#/components/responses/Conflict'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/TooManyRequests'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalServerError'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      schema:
        description: >-
          Client-generated key that makes this write safe to retry. Reusing the
          same key with the same request returns the original response instead
          of creating a second record. Reusing it with a different request
          returns 422. A concurrent retry while the first request is still
          running returns 409. Keys expire after 24 hours. Not accepted on
          multipart file uploads. Optional: a request without one is processed
          as it always was.
        example: 8e03978e-40d5-43e8-bc93-6894a57f9324
        type: string
        maxLength: 255
      description: >-
        Client-generated key that makes this write safe to retry. Reusing the
        same key with the same request returns the original response instead of
        creating a second record. Reusing it with a different request returns
        422. A concurrent retry while the first request is still running returns
        409. Keys expire after 24 hours. Not accepted on multipart file uploads.
        Optional: a request without one is processed as it always was.
  responses:
    BadRequest:
      description: Bad request
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: A request with this Idempotency-Key is already in progress.
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: Idempotency-Key was reused with a different request.
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: >-
        Too many requests. Retry after the number of seconds in the Retry-After
        header.
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            example: 60
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error
      headers:
        RateLimit:
          description: >-
            Current quota under the workspace policy, as
            `"workspace";r=<remaining>;t=<window seconds>`.
          schema:
            type: string
            example: '"workspace";r=999;t=60'
        RateLimit-Limit:
          description: Maximum requests allowed in the current window.
          schema:
            type: integer
            example: 1000
        RateLimit-Remaining:
          description: Requests remaining in the current window.
          schema:
            type: integer
            example: 999
        RateLimit-Reset:
          description: Seconds until the current window resets.
          schema:
            type: integer
            example: 60
        RateLimit-Policy:
          description: Declared policy as `<limit>;w=<window seconds>`.
          schema:
            type: string
            example: 1000;w=60
        X-RateLimit-Limit:
          description: Legacy spelling of RateLimit-Limit.
          schema:
            type: integer
            example: 1000
        X-RateLimit-Remaining:
          description: Legacy spelling of RateLimit-Remaining.
          schema:
            type: integer
            example: 999
        X-RateLimit-Reset:
          description: Legacy spelling of RateLimit-Reset.
          schema:
            type: integer
            example: 60
        Deprecation:
          description: >-
            RFC 9745. Present only when this operation is deprecated. HTTP-date
            of when deprecation began. See
            https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Sat, 01 Aug 2026 00:00:00 GMT
        Sunset:
          description: >-
            RFC 8594. Present once a removal date is fixed. HTTP-date of when
            the operation will stop being served. At least 180 days after
            Deprecation. See https://docs.getcargo.ai/api-reference/versioning.
          schema:
            type: string
            example: Thu, 28 Jan 2027 00:00:00 GMT
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        errorMessage:
          description: Human-readable description of what went wrong.
          type: string
        reason:
          description: >-
            Machine-readable cause, used where a route distinguishes failure
            modes.
          type: string
      additionalProperties: {}
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from `cargo-ai login`. Send as `Authorization: Bearer
        <token>`.
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.0 authorization code with PKCE (S256). Discover endpoints from
        https://getcargo.eu.auth0.com/.well-known/oauth-authorization-server.
        Include `audience=https://api.getcargo.io` in the authorization request
        to obtain a JWT valid for this API.
      flows:
        authorizationCode:
          authorizationUrl: https://getcargo.eu.auth0.com/authorize
          tokenUrl: https://getcargo.eu.auth0.com/oauth/token
          scopes:
            openid: OpenID Connect identity.
            profile: Name and profile claims.
            email: Email address.
            offline_access: Refresh token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.