> ## 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 request info

> Poll this endpoint to track asynchronous operations until a terminal state is reached. Non-terminal responses include a Retry-After header.



## OpenAPI

````yaml https://engine.tensorpool.dev/openapi.json get /request/info/{request_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:
  /request/info/{request_id}:
    get:
      tags:
        - requests
      summary: Get request info
      description: >-
        Poll this endpoint to track asynchronous operations until a terminal
        state is reached. Non-terminal responses include a Retry-After header.
      operationId: get_request_info_request_info__request_id__get
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
            title: Request Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestInfoResponse'
          headers:
            Retry-After:
              description: >-
                Seconds to wait before polling again. Present only for
                non-terminal statuses.
              schema:
                type: integer
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RequestInfoResponse:
      properties:
        request_id:
          type: string
          title: Request Id
          description: Unique request identifier
        request_type:
          $ref: '#/components/schemas/RequestType'
          description: Type of operation
        status:
          $ref: '#/components/schemas/RequestStatus'
          description: Current request status
        created_at:
          type: string
          title: Created At
          description: Request creation timestamp (ISO format)
        object_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Object Id
          description: TensorPool object ID (cluster/storage)
        external_message:
          anyOf:
            - type: string
            - type: 'null'
          title: External Message
          description: User-facing message about request status
      type: object
      required:
        - request_id
        - request_type
        - status
        - created_at
      title: RequestInfoResponse
      description: Response model for individual request info endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RequestType:
      type: string
      enum:
        - CLUSTER_CLAIM
        - CLUSTER_RELEASE
        - CLUSTER_EDIT
        - STORAGE_CREATE
        - STORAGE_DESTROY
        - STORAGE_ATTACH
        - STORAGE_DETACH
        - STORAGE_EDIT
      title: RequestType
      description: Request type enum representing all supported operation types.
    RequestStatus:
      type: string
      enum:
        - PENDING
        - PROCESSING
        - COMPLETED
        - FAILED
        - RETRYING
      title: RequestStatus
      description: |-
        Request status enum.

        Terminal states: COMPLETED, FAILED
        Non-terminal states: PENDING, PROCESSING, RETRYING
    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

````