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

# Get job information

> Retrieve detailed information about a specific job including status, instance type, exit code, and public message. Requires user or organization ownership of the job.

**Job Lifecycle States:**
- **pending**: Job admitted and launch in progress. Remote execution may already exist, but only the job daemon may promote it to running.
- **running**: Job commands executing on cluster
- **completed**: Job finished successfully (exit code 0)
- **error**: Job failed due to user code (non-zero exit code)
- **failed**: Job failed due to infrastructure issue (TensorPool responsibility)
- **canceling**: Job cancellation in progress
- **canceled**: Job successfully canceled

**Terminal States**: completed, error, failed, canceled



## OpenAPI

````yaml https://engine.tensorpool.dev/openapi.json get /job/info/{job_id}
openapi: 3.1.0
info:
  title: TensorPool API
  description: >
    TensorPool API


    All API endpoints (except `/healthz`) require authentication using your
    TensorPool API key.


    ### For REST Endpoints


    Include your API key in the `Authorization` header as a Bearer token:


    ```bash

    Authorization: Bearer YOUR_TENSORPOOL_KEY

    ```

    ### For WebSocket Endpoints


    Send your API key as the first message in JSON format:


    ```json

    {"TENSORPOOL_KEY": "YOUR_TENSORPOOL_KEY"}

    ```
  version: 0.1.0
servers: []
security: []
tags:
  - name: job
    description: >-
      GPU job execution and management. Run workloads on ephemeral clusters with
      automatic cleanup.
  - name: cluster
    description: >-
      GPU cluster provisioning and lifecycle management. Create persistent
      compute resources.
  - name: storage
    description: >-
      Shared storage volume management. Persistent storage that can be attached
      to eligible clusters.
  - name: object-storage
    description: S3-compatible object storage management.
  - name: ssh
    description: SSH key management for secure cluster access.
  - name: user
    description: >-
      User account management including balance, billing, and organization
      operations.
  - name: requests
    description: Cloud resource provisioning request tracking and status monitoring.
paths:
  /job/info/{job_id}:
    get:
      tags:
        - job
      summary: Get job information
      description: >-
        Retrieve detailed information about a specific job including status,
        instance type, exit code, and public message. Requires user or
        organization ownership of the job.


        **Job Lifecycle States:**

        - **pending**: Job admitted and launch in progress. Remote execution may
        already exist, but only the job daemon may promote it to running.

        - **running**: Job commands executing on cluster

        - **completed**: Job finished successfully (exit code 0)

        - **error**: Job failed due to user code (non-zero exit code)

        - **failed**: Job failed due to infrastructure issue (TensorPool
        responsibility)

        - **canceling**: Job cancellation in progress

        - **canceled**: Job successfully canceled


        **Terminal States**: completed, error, failed, canceled
      operationId: job_info_job_info__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobInfoResponse'
        '403':
          description: Access denied - job not owned by user or organization
        '404':
          description: Job not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Failed to retrieve job information
      security:
        - HTTPBearer: []
components:
  schemas:
    JobInfoResponse:
      properties:
        message:
          type: string
          title: Message
          description: Formatted TSV table with job details
        job_info:
          additionalProperties: true
          type: object
          title: Job Info
          description: Complete job information object
      type: object
      required:
        - message
        - job_info
      title: JobInfoResponse
      description: Response model for GET /job/info/{job_id} endpoint.
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````