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

# List Counterparties

> Returns a paginated list of Counterparties on your Platform.



## OpenAPI

````yaml GET /counterparties
openapi: 3.1.0
info:
  title: Otim Platform API
  version: v0
  description: >-
    API for managing accounts, entities, transfers, counterparties, and IBANs on
    the Otim platform.
servers:
  - url: https://api.otim.com/v0
security:
  - bearerAuth: []
paths:
  /counterparties:
    get:
      tags: []
      summary: List Counterparties
      description: Returns a paginated list of Counterparties on your Platform.
      operationId: listCounterparties
      parameters:
        - name: entityId
          in: query
          schema:
            type: string
          description: Filter Counterparties by Entity ID.
        - name: cursor
          in: query
          schema:
            type: string
          description: Pagination cursor from a previous response.
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
          description: Number of items to return.
      responses:
        '200':
          description: A paginated list of Counterparties.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCounterparties'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PaginatedCounterparties:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Counterparty'
        hasMore:
          type: boolean
        nextCursor:
          type: string
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: A machine-readable error code.
        details:
          type: object
          nullable: true
          description: Additional context about the error.
    Counterparty:
      type: object
      properties:
        id:
          type: string
          example: cpty_01JA1B2C3D4E5F6G7H8J9K0L
        entityId:
          type: string
          example: ent_01JA1B2C3D4E5F6G7H8J9K0L
        name:
          type: string
          example: Acme Corp
        type:
          type: string
          enum:
            - wallet
            - bank_account
          example: bank_account
        bankName:
          type: string
          nullable: true
          example: Chase
        accountNumber:
          type: string
          nullable: true
          example: '****6789'
        routingNumber:
          type: string
          nullable: true
          example: '021000021'
        walletAddress:
          type: string
          nullable: true
          example: '0x1234567890abcdef1234567890abcdef12345678'
        chain:
          type: string
          nullable: true
          example: base
        createdAt:
          type: string
          format: date-time
          example: '2025-01-15T12:00:00Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key prefixed with `sk_`.

````