---
title: "Search Counterparties"
method: POST
path: "/api/counterparties/search"
tags: ["Counterparties"]
---

# Search Counterparties

`POST /api/counterparties/search`

Search and retrieve counterparties for the organization.

## Query parameters

- `limit` number
- `nextId` string, uuid

## Headers

- `on-behalf-of` string

## Request body

- SearchCounterpartiesRequestInfo
  - `filter` CounterpartyEmailFilter — Filter counterparties by exact email address (case-insensitive).
    - `email` string, email, required — The email address to match.
    - `type` 'email', required

## Response `200`

Paginated list of counterparties

- CounterpartyPaginatedResponse
  - `nextId` string, uuid — Cursor for fetching the next page of results
  - `results` union[], required — List of counterparties
    - union
      - IndividualCounterparty
        - `createdAt` string, required
        - `email` string, email
        - `firstName` string, required — The first name of the individual
        - `id` string, uuid, required
        - `lastName` string, required — The last name of the individual
        - `physicalAddress` PhysicalAddressInput, required
          - `address1` string, required
          - `address2` string
          - `city` string, required
          - `country` string, required — ISO 3166-1 alpha-2 country code. See: GET /utilities/countries/{fiatRailCode}
          - `state` string, required — State or province. ISO 3166-2 subdivision code (minus the country prefix) for the state. See: GET /utilities/countries/{fiatRailCode}
          - `zip` string, required
        - `type` 'individual', required
        - `updatedAt` string, required
      - BusinessCounterparty
        - `createdAt` string, required
        - `email` string, email
        - `id` string, uuid, required
        - `name` string, required
        - `physicalAddress` PhysicalAddressInput, required
          - `address1` string, required
          - `address2` string
          - `city` string, required
          - `country` string, required — ISO 3166-1 alpha-2 country code. See: GET /utilities/countries/{fiatRailCode}
          - `state` string, required — State or province. ISO 3166-2 subdivision code (minus the country prefix) for the state. See: GET /utilities/countries/{fiatRailCode}
          - `zip` string, required
        - `type` 'business', required
        - `updatedAt` string, required
  - `total` number, required — Total number of counterparties matching the filter

## Other responses

- `401` — Unauthorized
- `403` — SignedAgreementRequiredException

---

[API](https://skmtc.net/muralpay/apis/mural-api.md) · [All operations](https://skmtc.net/muralpay/apis/mural-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/muralpay/mural-api/revisions/437d277f5948/schema)
