Skip to main content
POST
/
v1
/
contacts
/
search
curl --request POST \
  --url https://brew.new/api/v1/contacts/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filters": [
    {
      "field": "plan",
      "operator": "equals",
      "value": "enterprise"
    }
  ],
  "sort": "createdAt",
  "order": "desc",
  "limit": 50
}
'
{
  "data": [
    {
      "email": "jane@example.com",
      "firstName": "Jane",
      "lastName": "Doe",
      "subscribed": true,
      "verificationStatus": "valid",
      "suppressed": false,
      "suppressedReason": null,
      "createdAt": "2026-04-08T12:00:00.000Z",
      "updatedAt": "2026-04-08T12:05:00.000Z",
      "importId": null,
      "customFields": {
        "plan": "enterprise",
        "revenue": 4200
      }
    },
    {
      "email": "john@example.com",
      "firstName": "John",
      "lastName": "Smith",
      "subscribed": true,
      "verificationStatus": "valid",
      "suppressed": false,
      "suppressedReason": null,
      "createdAt": "2026-04-08T12:00:00.000Z",
      "updatedAt": "2026-04-08T12:05:00.000Z",
      "importId": null,
      "customFields": {
        "plan": "starter"
      }
    }
  ],
  "pagination": {
    "limit": 50,
    "cursor": "eyJsYXN0SWQiOiIxMjMiLCJsYXN0U29ydCI6MTcxMjU5MjAwMDAwMH0=",
    "hasMore": true
  }
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Body

application/json
Minimum string length: 1
filters
object[]
audienceId
string
Minimum string length: 1
logic
enum<string>
default:and
Available options:
and,
or,
none
sort
string
default:createdAt
Minimum string length: 1
order
enum<string>
default:desc
Available options:
asc,
desc
count
boolean
default:false
limit
integer
default:50
Required range: 1 <= x <= 100
cursor
string
Minimum string length: 1

Response

A page of matching contacts — or { count } when count: true.

data
object[]
required
pagination
object
required