For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
200

Available segments

application/json
pkintegerRequired
namestringRequired
priorityintegerRequired
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
200

Segment assigned

application/json
pkintegerRequired
namestringRequired
priorityintegerRequired
price_listinteger · nullableOptional
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
200

Segment recalculated

application/json
messagestringOptionalExample: Segment successfully assigned. segment:employee
post/users/segments/recalculate_segment/
200

Segment recalculated

Last updated

Was this helpful?