cURL
curl --request GET \ --url https://api.sandbox.asapp.com/configuration/v1/segments \ --header 'asapp-api-id: <api-key>' \ --header 'asapp-api-secret: <api-key>'
{ "segments": [ { "id": "USER_SUPPORT", "name": "Support", "query": { "type": "raw", "raw": "TRUE" } } ], "nextCursor": "CHAT", "prevCursor": "" }
Retrieves a list of all segments.
The cursor pointing to the current position
The maximum amount of objects to retrieve
1 <= x <= 100
Get all segments.
Response for get segments.
Segments list
Show child attributes
The id of the segment
The name of the segment
A query that defines which conversations belong to this segment based on their metadata.
Query type (only raw supported)
raw
An SQL-like query string expression to match conversations based on their metadata.
The ids of the structured data fields that will be used to generate the structured data for the conversation.
The next cursor to fetch
"6b29fc40-ca47-1067-b31d-00dd010662da"
The previous cursor to fetch
"04719ebd-13e1-40e9-8b92-0941cd16a19c"
Was this page helpful?