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

# Bulk reconciled job statuses

> Reconcile + return statuses for the given job IDs.

Decoupled from ``GET /train/jobs``, a pure DB read, so the listing can
render immediately and refresh live status independently. Declare this
route before ``/train/jobs/{job_id}`` so ``status`` isn't parsed as a
job ID.



## OpenAPI

````yaml get /api/automl/train/jobs/status
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/automl/train/jobs/status:
    get:
      tags:
        - AutoML Training
      summary: Bulk reconciled job statuses
      description: |-
        Reconcile + return statuses for the given job IDs.

        Decoupled from ``GET /train/jobs``, a pure DB read, so the listing can
        render immediately and refresh live status independently. Declare this
        route before ``/train/jobs/{job_id}`` so ``status`` isn't parsed as a
        job ID.
      operationId: get_training_job_statuses_api_automl_train_jobs_status_get
      parameters:
        - name: ids
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
            title: Ids
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoMLTrainingJobStatuses'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    AutoMLTrainingJobStatuses:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AutoMLTrainingJobStatusItem'
          type: array
          title: Items
      type: object
      required:
        - items
      title: AutoMLTrainingJobStatuses
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AutoMLTrainingJobStatusItem:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
        status:
          $ref: '#/components/schemas/AutoMLTrainingJobStatus'
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - job_id
        - status
        - updated_at
      title: AutoMLTrainingJobStatusItem
      description: |-
        Lightweight per-job status, reconciled against Airflow.

        Returned by the bulk status endpoint so the listing can render from the
        DB immediately and refresh statuses independently.
    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
    AutoMLTrainingJobStatus:
      type: string
      enum:
        - ready
        - queued
        - running
        - complete
        - failed
      title: AutoMLTrainingJobStatus
      description: |-
        Lifecycle of an AutoML training job.

        - `READY`: DAG uploaded but not yet triggered. The user opted out of
          auto-trigger at create time. Manual trigger flips it to `QUEUED`.
        - `QUEUED`: DAG triggered, waiting for Airflow to pick it up.
        - `RUNNING`: Airflow has the run going.
        - `COMPLETE`/`FAILED`: terminal.
  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

````