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

# Get live job statuses

> Reads each job's status from its Airflow DAG's latest run, falling back to the stored status when Airflow can't answer.



## OpenAPI

````yaml get /api/jobs/statuses
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/jobs/statuses:
    get:
      tags:
        - Jobs
      summary: Get live job statuses
      description: >-
        Reads each job's status from its Airflow DAG's latest run, falling back
        to the stored status when Airflow can't answer.
      operationId: get_job_statuses_api_jobs_statuses_get
      parameters:
        - name: ids
          in: query
          required: true
          schema:
            type: array
            items:
              type: string
              format: uuid
            maxItems: 100
            description: Jobs to report on (up to 100). Jobs you can't see are skipped.
            title: Ids
          description: Jobs to report on (up to 100). Jobs you can't see are skipped.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/JobLiveStatus'
                title: Response Get Job Statuses Api Jobs Statuses Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    JobLiveStatus:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
        status:
          $ref: '#/components/schemas/JobStatusEnum'
        status_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Message
        last_started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Started At
        last_completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Completed At
        last_failed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Failed At
      type: object
      required:
        - job_id
        - status
      title: JobLiveStatus
      description: A job's status as Airflow reports it right now.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JobStatusEnum:
      type: string
      enum:
        - new
        - running
        - completed
        - failed
      title: JobStatusEnum
    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:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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