Skip to main content
POST
/
v1
/
my
/
segments
/
count
Count contacts matching filters
curl --request POST \
  --url https://api.nitrosend.com/v1/my/segments/count \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filters": [
    {
      "name": "<string>",
      "predicate": "<string>",
      "value": "<unknown>"
    }
  ]
}
'
{
  "count": 123
}

Authorizations

Authorization
string
header
required

API key (nskey_live_...) or JWT token. API key is checked first; if not found, falls back to Devise JWT authentication.

Body

application/json
filters
object[]

Response

200 - application/json

Contact count

count
integer