SaaSFlow
DevelopersAPIReferencecounterparties

Search

Search customers and vendors together by name or domain, returning a light record (id, name, type, domains, logo, default categorization) rather than the full entity. Built for pickers and autocomplete. `q` matches names and domains case-insensitively and may be omitted to get the first `limit` counterparties alphabetically. Narrow the result with `types=customer` or `types=vendor`; the caller still only sees types their permissions allow, so a grant with `customers:read` alone never returns vendors.

Authentication

You're not signed in. Either sign in at app.saasflow.com and reload (then pick sessionCookie), or paste a SaaSFlow sf_… API key in the bearerAuth field below.
GET
/companies/{companyId}/counterparties/search

Authorization

Authorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

In: header

Path Parameters

companyId*string
Length1 <= length

Query Parameters

q?string
limit?integer
Range1 <= value <= 5000
Default20
types?string

Response Body

application/json

curl -X GET "https://example.com/companies/string/counterparties/search"
null