API ReferenceSegments
Recalculate which contacts match a segment's rules
POST
Recalculate which contacts match a segment's rules. Runs in the background.
Requires the segments:write scope — Create, edit, and delete your segments.
header
AuthorizationBearer <API Key>API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.
id*stringAccepted
application/json- response
The recompute was accepted and runs as a background job.
success*trueValue in
truedata*curl -X POST 'https://api.sendly.now/api/segments/string/compute'Example Response
{ "success": true, "data": { "status": "queued" }}