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

# List executions for a batch

> List a batch's per-record executions, newest first, with opaque cursor pagination (data family — D-04/D-06). Filter by `status`; page forward by passing the previous response's `next_cursor`. `total` is always null (D-01). Cross-tenant access returns 404.



## OpenAPI

````yaml /openapi.json get /batches/{batch_id}/executions
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
security: []
paths:
  /batches/{batch_id}/executions:
    get:
      tags:
        - executions
      summary: List executions for a batch
      description: >-
        List a batch's per-record executions, newest first, with opaque cursor
        pagination (data family — D-04/D-06). Filter by `status`; page forward
        by passing the previous response's `next_cursor`. `total` is always null
        (D-01). Cross-tenant access returns 404.
      operationId: list_executions_batches__batch_id__executions_get
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
            title: Batch Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - pending
                  - running
                  - completed
                  - failed
                  - cancelled
                type: string
              - type: 'null'
            title: Status
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_ExecutionResponse_'
        '400':
          description: >-
            The `cursor` query param is malformed (bad base64/JSON, wrong shape,
            or non-ISO timestamp) — rejected by the shared hardened codec before
            the query runs
          content:
            application/json:
              example:
                detail: Invalid cursor
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '404':
          description: No such batch for this organization
          content:
            application/json:
              example:
                detail: Batch not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded — retry after the Retry-After header
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
          content:
            application/json:
              example:
                detail: 'Rate limit exceeded: 100 per 1 minute'
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    Page_ExecutionResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ExecutionResponse'
          type: array
          title: Items
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
        limit:
          type: integer
          title: Limit
        skip:
          type: integer
          title: Skip
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
      type: object
      required:
        - items
        - limit
        - skip
      title: Page[ExecutionResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecutionResponse:
      properties:
        id:
          type: string
          title: Id
        batch_id:
          type: string
          title: Batch Id
        trigger_id:
          type: string
          title: Trigger Id
        trigger_type:
          type: string
          title: Trigger Type
        trigger_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Trigger Source
        definition_id:
          type: string
          title: Definition Id
        org_id:
          type: string
          title: Org Id
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - cancelled
          title: Status
        input_data:
          additionalProperties: true
          type: object
          title: Input Data
        workflow_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Id
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        steps:
          anyOf:
            - items:
                $ref: '#/components/schemas/StepDetail'
              type: array
            - type: 'null'
          title: Steps
        steps_source:
          anyOf:
            - $ref: '#/components/schemas/StepsSource'
            - type: 'null'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - batch_id
        - trigger_id
        - trigger_type
        - definition_id
        - org_id
        - status
        - input_data
        - workflow_id
        - started_at
        - completed_at
        - result
        - error
        - created_at
        - updated_at
      title: ExecutionResponse
      example:
        batch_id: batch_55667788
        completed_at: '2026-07-09T18:00:03Z'
        created_at: '2026-07-09T17:59:59Z'
        definition_id: def_a1b2c3d4
        id: exec_99aabbcc
        input_data:
          phone: '+15555550100'
        org_id: org_a1b2c3d4
        result:
          records_loaded: 1
        started_at: '2026-07-09T18:00:00Z'
        status: completed
        trigger_id: trigger_44556677
        trigger_type: api_call
        updated_at: '2026-07-09T18:00:03Z'
        workflow_id: acme/exec-exec_99aabbcc
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    StepDetail:
      properties:
        step_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Step Name
        step_index:
          anyOf:
            - type: integer
            - type: 'null'
          title: Step Index
        status:
          type: string
          title: Status
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        error_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Type
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
      type: object
      required:
        - status
      title: StepDetail
      description: >-
        A single per-step run-detail row on the execution response (D-07).


        Mirrors the durable `StepSnapshot` — timing + structured error only,
        never

        an I/O payload body.
    StepsSource:
      type: string
      enum:
        - live
        - snapshot
        - unavailable
      title: StepsSource
      description: >-
        Indicates where the `steps` array on an execution detail comes from.


        Always present on `GET /executions/{id}` so a client can distinguish a
        run

        that genuinely has no steps from one whose step detail is unavailable.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````