List segments
Manage customer segments with CEL-based conditions.
query Parameters
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
edition_idorderingOrdering
created- Created-created- Created (descending)modified- Modified-modified- Modified (descending)name- Name-name- Name (descending)user_count- User count-user_count- User count (descending)last_calculated- Last calculated-last_calculated- Last calculated (descending)
organization_idpageA page number within the paginated result set.
page_sizeNumber of results to return per page (default: 100).
searchSearch by segment name
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
List segments › Responses
countnextpreviousCreate segment
Manage customer segments with CEL-based conditions.
Create segment › Request Body
organization_idnameHuman-readable segment name
edition_idconsent_iddescriptionOptional description of the segment
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
conditionCEL expression to evaluate segment membership
Create segment › Responses
idorganization_idedition_idconsent_idnameHuman-readable segment name
createdmodifieddescriptionOptional description of the segment
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
user_countCached count of users in segment for performance
last_calculatedWhen segment was last calculated
conditionCEL expression to evaluate segment membership
calculation_durationHow long the last calculation took
error_messageError details if calculation failed
Retrieve segment
Manage customer segments with CEL-based conditions.
path Parameters
idA unique value identifying this Customer Segment.
Retrieve segment › Responses
idorganization_idedition_idconsent_idnameHuman-readable segment name
createdmodifieddescriptionOptional description of the segment
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
user_countCached count of users in segment for performance
last_calculatedWhen segment was last calculated
conditionCEL expression to evaluate segment membership
calculation_durationHow long the last calculation took
error_messageError details if calculation failed
Update segment
Manage customer segments with CEL-based conditions.
path Parameters
idA unique value identifying this Customer Segment.
Update segment › Request Body
nameHuman-readable segment name
descriptionOptional description of the segment
edition_idconsent_idcommunication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
conditionCEL expression to evaluate segment membership
Update segment › Responses
idorganization_idedition_idconsent_idnameHuman-readable segment name
createdmodifieddescriptionOptional description of the segment
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
user_countCached count of users in segment for performance
last_calculatedWhen segment was last calculated
conditionCEL expression to evaluate segment membership
calculation_durationHow long the last calculation took
error_messageError details if calculation failed
Recalculate segment
Manage customer segments with CEL-based conditions.
path Parameters
idA unique value identifying this Customer Segment.
Recalculate segment › Responses
idorganization_idedition_idconsent_idnameHuman-readable segment name
createdmodifieddescriptionOptional description of the segment
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
user_countCached count of users in segment for performance
last_calculatedWhen segment was last calculated
conditionCEL expression to evaluate segment membership
calculation_durationHow long the last calculation took
error_messageError details if calculation failed
Reset stuck segment to draft
Manage customer segments with CEL-based conditions.
path Parameters
idA unique value identifying this Customer Segment.
Reset stuck segment to draft › Responses
idorganization_idedition_idconsent_idnameHuman-readable segment name
createdmodifieddescriptionOptional description of the segment
statusCurrent calculation status
draft- Draftpending- Pending Calculationprocessing- Processingcompleted- Completedfailed- Failed
communication_typeType of communication - determines user eligibility for compliance
transactional- Transactional (service updates, receipts, etc.)marketing- Marketing (promotions, campaigns - requires consent)
communication_channelCommunication channel - filters users by delivery capability
any- Any available channelemail- Email (users with valid email addresses)sms- SMS (users with valid phone numbers)pass_push- Pass Push (users with active wallet passes)
user_countCached count of users in segment for performance
last_calculatedWhen segment was last calculated
conditionCEL expression to evaluate segment membership
calculation_durationHow long the last calculation took
error_messageError details if calculation failed

