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

# Get Counterparty

> Returns the details of a single Counterparty by ID.



## OpenAPI

````yaml GET /counterparties/{id}
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/{id}:
    get:
      tags: []
      summary: Get Counterparty
      description: Returns the details of a single Counterparty by ID.
      operationId: getCounterparty
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The ID of the Counterparty.
      responses:
        '200':
          description: Counterparty details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Counterparty'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Counterparty not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    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'
    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.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key prefixed with `sk_`.

````