Skip to contentSkip to navigationSkip to topbar
Rate this page:
On 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

_21
{
_21
"segments": [
_21
{
_21
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"date_created": "2017-02-14T14:36:41Z",
_21
"date_updated": "2017-02-14T14:36:41Z",
_21
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"sid": "GSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_21
"unique_name": "segment"
_21
}
_21
],
_21
"meta": {
_21
"first_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",
_21
"key": "segments",
_21
"next_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=1",
_21
"page": 0,
_21
"page_size": 50,
_21
"previous_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0",
_21
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Segments?PageSize=50&Page=0"
_21
}
_21
}


Rate this page: