Search segment contacts
POST
https://api.flownally.com/v1/segments/{segmentId}/contacts:searchReturns contacts that match both the segment's saved filter and the supplied query. Send
an empty conditions array to list every member of the segment.Unless the saved filter has an archiveStatus condition, archived contacts are excluded.
An archiveStatus condition in query can only narrow the result further. totalSize may
be cached for up to five minutes; evaluatedAt reports when it was calculated.
Authorization
Required scopes
- contact:list
- segment:read
Allowed roles
- owner
- admin
- agent
Search contacts matching a saved segment in the caller's contact scope.
Parameters
- Name
segmentId- Type
- path · string
- required
Segment ID.
Body parameters
Send a application/json body. The body is required.
- Name
query- Type
- ContactFilter
- required
- Name
orderBy- Type
- enum
One of: createdAt, createdAt desc, updatedAt, updatedAt desc, name, name desc- Name
pageSize- Type
- integer
Values above 100 are reduced to 100; 0 or omitted uses the default (50).- Name
pageToken- Type
- string
ThenextPageTokenfrom the previous page.
Responses
- 200Current segment membersapplication/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- ContactSearchRequest
- ContactFilter
- ContactCondition
- SearchTextCondition
- ArchiveStatusCondition
- ArchiveStatus
- CreatedAtCondition
- FirstSeenCondition
- LastInteractionCondition
- ChatCountCondition
- EngagementWindow
- CustomFieldTextCondition
- CustomFieldDateCondition
- HasAnyTagCondition
- HasAnyChannelCondition
- ContactChannel
- ContactSearchResponse
- ContactSummary
- ContactSummaryTag
Generated from the API spec.