> ## 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.

# Get a scheduled job

> Fetches one scheduled job with a read-time `next_fire_at`. Cross-tenant access returns 404, never 403.



## OpenAPI

````yaml /openapi.json get /scheduled-jobs/{sched_id}
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:
  /scheduled-jobs/{sched_id}:
    get:
      tags:
        - scheduled-jobs
      summary: Get a scheduled job
      description: >-
        Fetches one scheduled job with a read-time `next_fire_at`. Cross-tenant
        access returns 404, never 403.
      operationId: get_scheduled_job_scheduled_jobs__sched_id__get
      parameters:
        - name: sched_id
          in: path
          required: true
          schema:
            type: string
            title: Sched Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledJobResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/json:
              example:
                detail: Authentication required
        '404':
          description: Not found — also returned on cross-tenant access (never 403)
          content:
            application/json:
              example:
                detail: Scheduled job not found
        '422':
          description: Validation error (see body for field details)
          content:
            application/json:
              example:
                detail: Validation error
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    ScheduledJobResponse:
      properties:
        id:
          type: string
          title: Id
        definition_id:
          type: string
          title: Definition Id
        org_id:
          type: string
          title: Org Id
        description:
          type: string
          title: Description
        cron_expression:
          type: string
          title: Cron Expression
        enabled:
          type: boolean
          title: Enabled
        input_data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Data
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        next_fire_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Fire At
        last_fired_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Fired At
        last_fire_status:
          anyOf:
            - type: string
              enum:
                - success
                - failure
                - running
            - type: 'null'
          title: Last Fire Status
      type: object
      required:
        - id
        - definition_id
        - org_id
        - description
        - cron_expression
        - enabled
        - input_data
        - metadata
        - created_at
        - updated_at
        - next_fire_at
        - last_fired_at
        - last_fire_status
      title: ScheduledJobResponse
      description: >-
        GET response — `next_fire_at` is injected by the router via croniter
        (D-14).


        `next_fire_at` is None only for legacy rows whose stored cron cannot

        produce a next fire (CR-02 defense in depth) — the write gate rejects

        such expressions for all new/updated records.
      example:
        created_at: '2026-07-09T09:00:00Z'
        cron_expression: 0 9 * * 1-5
        definition_id: def_a1b2c3d4
        description: Nightly Five9 report sync
        enabled: true
        id: sched_1a2b3c4d
        input_data:
          report: daily_calls
        metadata:
          owner: ops
        next_fire_at: '2026-07-10T09:00:00Z'
        org_id: org_e5f6g7h8
        updated_at: '2026-07-09T09:00:00Z'
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````