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

# Get Pods History



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/pods/history
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/pods/history:
    get:
      tags:
        - Pods
      summary: Get Pods History
      operationId: get_pods_history_api_v1_pods_history_get
      parameters:
        - name: sort_by
          in: query
          required: false
          schema:
            enum:
              - terminatedAt
              - createdAt
            type: string
            default: terminatedAt
            title: Sort By
        - name: sort_order
          in: query
          required: false
          schema:
            enum:
              - asc
              - desc
            type: string
            default: desc
            title: Sort Order
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Offset
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 100
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GenericPaginationResponse_List_HistoryObj__
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    GenericPaginationResponse_List_HistoryObj__:
      properties:
        total_count:
          type: integer
          title: Total Count
          description: Total number of items available in the dataset
          default: 0
        offset:
          type: integer
          minimum: 0
          title: Offset
          description: Number of items to skip before starting to collect the result set
          default: 0
        limit:
          type: integer
          minimum: 0
          title: Limit
          description: Maximum number of items to return
          default: 100
        data:
          items:
            $ref: '#/components/schemas/HistoryObj'
          type: array
          title: Data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Response status
      type: object
      required:
        - data
      title: GenericPaginationResponse[List[HistoryObj]]
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    HistoryObj:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the record.
        name:
          type: string
          title: Name
          description: Name assigned to the resource.
        providerType:
          $ref: '#/components/schemas/ProviderTypeEnum'
          description: ID of the provider.
        provisionedBy:
          anyOf:
            - type: string
            - type: 'null'
          title: Provisionedby
          description: Name of the user who provisioned the resource.
        type:
          $ref: '#/components/schemas/ResourceType'
          description: Type of the resource.
        createdAt:
          type: string
          format: date-time
          title: Createdat
          description: Timestamp when the resource was created.
        terminatedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Terminatedat
          description: Timestamp when the resource was terminated.
        gpuName:
          type: string
          title: Gpuname
          description: Model of the GPU used in the resource.
        gpuCount:
          type: integer
          title: Gpucount
          description: Number of GPUs allocated to the resource.
          examples:
            - 1
        socket:
          anyOf:
            - type: string
            - type: 'null'
          title: Socket
          description: Type of socket used by the GPU, if applicable.
        priceHr:
          type: number
          title: Pricehr
          description: Price per hour for using the resource (average).
          examples:
            - 1.23
        userId:
          type: string
          title: Userid
          description: ID of the user who owns the resource.
        teamId:
          anyOf:
            - type: string
            - type: 'null'
          title: Teamid
          description: ID of the team to which the resource is assigned, if applicable.
        totalBilledPrice:
          type: number
          title: Totalbilledprice
          description: Total amount billed for this resource.
          examples:
            - 123.45
      type: object
      required:
        - id
        - name
        - providerType
        - type
        - createdAt
        - gpuName
        - gpuCount
        - priceHr
        - userId
        - totalBilledPrice
      title: HistoryObj
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
    ProviderTypeEnum:
      type: string
      enum:
        - runpod
        - fluidstack
        - lambdalabs
        - hyperstack
        - oblivus
        - cudocompute
        - scaleway
        - tensordock
        - datacrunch
        - latitude
        - crusoecloud
        - massedcompute
        - akash
        - primeintellect
        - primecompute
        - dc_impala
        - dc_kudu
        - dc_roan
        - nebius
        - dc_eland
        - dc_wildebeest
        - vultr
        - dc_gnu
        - denvr
      title: ProviderTypeEnum
    ResourceType:
      type: string
      enum:
        - Instance
        - Cluster
        - Disk
        - Sandbox
        - Inference
        - Image
        - Training
      title: ResourceType
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````