Segments

Customer segmentation utilities

List available segments for user

get

Returns segments available to the authenticated user based on segmentation rules.

Authorizations
CookiestringRequired

Session cookie (e.g., sessionid=abc123)

Header parameters
CookiestringRequired

Session cookie header (e.g. sessionid=abc123)

Responses
chevron-right
200

Available segments

application/json
get
/users/segments/

Assign segment

post
Authorizations
CookiestringRequired

Session cookie (e.g., sessionid=abc123)

Path parameters
segment_idintegerRequired
Header parameters
CookiestringRequired

Session cookie header (e.g. sessionid=abc123)

X-CSRFTokenstringRequired

CSRF token header for unsafe methods (POST/PUT/PATCH/DELETE)

Responses
chevron-right
200

Segment assigned

application/json
post
/users/segments/{segment_id}/set/

Recalculate segment (idempotent)

post

Re-evaluates segmentation rules and assigns the best matching segment. This action is available without authentication.

Responses
chevron-right
200

Segment recalculated

application/json
post
/users/segments/recalculate_segment/
200

Segment recalculated

Last updated

Was this helpful?