> ## 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 jobs for a definition

> List jobs produced by a definition. Filter by `status` and paginate with `limit`/`skip`. Cross-tenant access returns 404.



## OpenAPI

````yaml /openapi.json get /definitions/{definition_id}/jobs
openapi: 3.1.0
info:
  title: GetDialed Flows API
  version: 0.1.0
servers:
  - url: https://api.getdialed.ai/flows
    description: Production
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /definitions/{definition_id}/jobs:
    get:
      tags:
        - jobs
      summary: List jobs for a definition
      description: >-
        List jobs produced by a definition. Filter by `status` and paginate with
        `limit`/`skip`. Cross-tenant access returns 404.
      operationId: list_jobs_definitions__definition_id__jobs_get
      parameters:
        - name: definition_id
          in: path
          required: true
          schema:
            type: string
            title: Definition Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - pending
                  - scheduled
                  - running
                  - completed
                  - partially_failed
                  - failed
                  - cancelled
                type: string
              - type: 'null'
            title: Status
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 50000
            minimum: 1
            default: 50
            title: Limit
        - name: skip
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Skip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/JobResponse'
                title: Response List Jobs Definitions  Definition Id  Jobs Get
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '404':
          description: >-
            No such job for this organization (cross-tenant access also returns
            404)
          content:
            application/json:
              example:
                detail: Job 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:
    JobResponse:
      properties:
        id:
          type: string
          title: Id
        definition_id:
          type: string
          title: Definition Id
        org_id:
          type: string
          title: Org Id
        source:
          type: string
          title: Source
        scheduled_job_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Scheduled Job Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        status:
          type: string
          enum:
            - pending
            - scheduled
            - running
            - completed
            - partially_failed
            - failed
            - cancelled
          title: Status
        record_count:
          type: integer
          title: Record Count
        input_data:
          additionalProperties: true
          type: object
          title: Input Data
        records:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Records
        scheduled_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Scheduled At
        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
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - definition_id
        - org_id
        - source
        - metadata
        - status
        - record_count
        - input_data
        - records
        - scheduled_at
        - started_at
        - completed_at
        - created_at
        - updated_at
      title: JobResponse
      example:
        completed_at: '2026-07-09T18:00:05Z'
        created_at: '2026-07-09T17:59:59Z'
        definition_id: def_a1b2c3d4
        id: job_55667788
        input_data:
          list_name: callbacks
        metadata:
          campaign: spring-2026
        org_id: org_a1b2c3d4
        record_count: 2
        records:
          - phone: '+15555550100'
          - phone: '+15555550101'
        source: api
        started_at: '2026-07-09T18:00:00Z'
        status: completed
        updated_at: '2026-07-09T18:00:05Z'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````