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

# List Contracts

> List vendor contracts.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/admin/inventory/contracts
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/admin/inventory/contracts:
    get:
      tags:
        - admin-inventory
      summary: List Contracts
      description: List vendor contracts.
      operationId: list_contracts_api_admin_inventory_contracts_get
      parameters:
        - name: vendorId
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Vendorid
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: DRAFT, ACTIVE, ENDED or CANCELLED.
            title: Status
          description: DRAFT, ACTIVE, ENDED or CANCELLED.
        - name: type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: ONE_OFF, RECURRING or RENEWABLE.
            title: Type
          description: ONE_OFF, RECURRING or RENEWABLE.
        - name: activeOn
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: ISO date; keep only contracts whose window covers it.
            title: Activeon
          description: ISO date; keep only contracts whose window covers it.
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Case-insensitive match against name, reference, or id.
            title: Search
          description: Case-insensitive match against name, reference, or id.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of items to skip.
            default: 0
            title: Offset
          description: Number of items to skip.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Max items to return (1-100).
            default: 20
            title: Limit
          description: Max items to return (1-100).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GenericPaginationResponse_list_InventoryContractSummary__
        '401':
          description: Authorization failed
        '403':
          description: Insufficient permissions
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    GenericPaginationResponse_list_InventoryContractSummary__:
      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/InventoryContractSummary'
          type: array
          title: Data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Response status
      type: object
      required:
        - data
      title: GenericPaginationResponse[list[InventoryContractSummary]]
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    InventoryContractSummary:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        reference:
          anyOf:
            - type: string
            - type: 'null'
          title: Reference
        vendorId:
          type: string
          title: Vendorid
        vendorName:
          anyOf:
            - type: string
            - type: 'null'
          title: Vendorname
        type:
          type: string
          title: Type
        status:
          type: string
          title: Status
        startDate:
          type: string
          format: date-time
          title: Startdate
        endDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Enddate
        billingPeriod:
          type: string
          title: Billingperiod
        paymentTiming:
          type: string
          title: Paymenttiming
        autoRenew:
          type: boolean
          title: Autorenew
        currency:
          type: string
          title: Currency
        continuesFromId:
          anyOf:
            - type: string
            - type: 'null'
          title: Continuesfromid
        nodeCount:
          type: integer
          title: Nodecount
          default: 0
        committedNodeCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Committednodecount
      type: object
      required:
        - id
        - name
        - vendorId
        - type
        - status
        - startDate
        - billingPeriod
        - paymentTiming
        - autoRenew
        - currency
      title: InventoryContractSummary
      description: Contract read model for the pak_* admin CLI.
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````