cURL
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>" } ] } }
Get count of users in an include and exclude segment
If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.
Status 200 response
The response is of type object.
object