POST
/
api
/
segments
/
count
Get Count of Users in Include and Exclude Segment
curl --request POST \
  --url https://api.embedreach.com/api/segments/count \
  --header 'Content-Type: application/json' \
  --data '{
  "includeSegments": [
    "<string>"
  ],
  "excludeSegments": [
    "<string>"
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "count": 123,
    "recipients": [
      {
        "firstName": "<string>",
        "lastName": "<string>",
        "email": "<string>",
        "phone": "<string>",
        "id": "<string>",
        "externalId": "<string>"
      }
    ]
  }
}

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Body

application/json

Response

200
application/json

Status 200 response

The response is of type object.