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

# Fetch job status

> Returns the current state of an async job previously accepted by the gateway.



## OpenAPI

````yaml /openapi/gateway-v1.yaml get /v1/jobs/{jobId}
openapi: 3.1.0
info:
  title: Atlas Gateway Contract v1
  version: 1.0.0
  description: >
    The customer-owned gateway contract used by hosted Atlas to discover
    actions,

    invoke work, and monitor async jobs.
servers:
  - url: https://gateway.example.com
    description: Example customer gateway
security:
  - bearerAuth: []
tags:
  - name: Gateway
    description: Discovery and execution endpoints exposed by a customer gateway.
paths:
  /v1/jobs/{jobId}:
    get:
      tags:
        - Gateway
      summary: Fetch job status
      description: >-
        Returns the current state of an async job previously accepted by the
        gateway.
      operationId: getJob
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Job resource returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayJobResource'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayErrorEnvelope'
components:
  schemas:
    GatewayJobResource:
      type: object
      additionalProperties: false
      required:
        - jobId
        - invocationId
        - status
        - createdAt
        - updatedAt
      properties:
        jobId:
          type: string
        invocationId:
          type: string
        actionId:
          type: string
        actionName:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
        outputText:
          type: string
        machineSummary:
          type: string
        dataSchemaVersion:
          type: string
        data:
          type: object
          additionalProperties: true
        error:
          $ref: '#/components/schemas/GatewayError'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    GatewayErrorEnvelope:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/GatewayError'
    GatewayError:
      type: object
      additionalProperties: false
      required:
        - code
        - message
        - retryable
      properties:
        code:
          type: string
        message:
          type: string
        retryable:
          type: boolean
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token

````