Skip to contentSkip to navigationSkip to topbar
Rate this Page:

Segment Resource (Deprecated)


(error)

Danger

The Segment resource is deprecated and has been replaced by the tags property of the Binding resource.

A Segment is a group of Users.

Because the Segment resource is deprecated, use the tags property of the Binding resource to identify groups of users that you would like to notify with a single request.


Segment properties

segment-properties page anchor

The Segment resource is deprecated.


Read multiple Segment resources

read-multiple-segment-resources page anchor

Read multiple Segment resources

read-multiple-segment-resources-1 page anchor
curl

_10
curl -X GET "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=20" \
_10
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Output

_12
{
_12
"meta": {
_12
"first_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",
_12
"key": "segments",
_12
"next_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=1",
_12
"page": 0,
_12
"page_size": 50,
_12
"previous_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",
_12
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0"
_12
},
_12
"segments": []
_12
}


Rate this Page: