Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Notify User Resource (Deprecated)


(error)

Danger

The User resource is deprecated and has been replaced by the identity property of the Binding resource.

The User resource represents a user in your application.

Because the User resource is deprecated, use the identity property of the Binding resource to identify a specific user.

(error)

Danger

Do not use Personally Identifiable Information for Identity.

The systems that process this parameter assume it does not contain PII.

You should use a GUID or other pseudonymized identifier for identity instead of PII such as a person's name, home address, email or phone number. If you identify your users with PII, we recommend creating a pseudonymized identifier from their PII, for example by hashing or encrypting it, before you use it for identity.

You can read more about how we process your data in our privacy policy.


User properties

user-properties page anchor

The User resource is deprecated.


Create a User resource

create-a-user-resource page anchor
curl

_10
curl -X POST "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users" \
_10
--data-urlencode "Identity=identity" \
_10
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Output

_16
{
_16
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"date_created": "2017-02-17T07:17:02Z",
_16
"date_updated": "2017-02-17T07:17:02Z",
_16
"identity": "identity",
_16
"links": {
_16
"bindings": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/Bindings",
_16
"segment_memberships": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/SegmentMemberships"
_16
},
_16
"segments": [
_16
"segment1"
_16
],
_16
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"sid": "NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity"
_16
}


curl

_10
curl -X GET "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Output

_16
{
_16
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"sid": "NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"date_created": "2017-02-17T07:17:02Z",
_16
"date_updated": "2017-02-17T07:17:02Z",
_16
"identity": "identity",
_16
"links": {
_16
"bindings": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/Bindings",
_16
"segment_memberships": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/SegmentMemberships"
_16
},
_16
"segments": [
_16
"segment1"
_16
],
_16
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_16
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity"
_16
}


Read multiple User resources

read-multiple-user-resources page anchor

Read multiple User resources

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

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

Output

_29
{
_29
"users": [
_29
{
_29
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_29
"date_created": "2017-02-17T07:17:02Z",
_29
"date_updated": "2017-02-17T07:17:02Z",
_29
"identity": "identity",
_29
"links": {
_29
"bindings": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/Bindings",
_29
"segment_memberships": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity/SegmentMemberships"
_29
},
_29
"segments": [
_29
"segment1"
_29
],
_29
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_29
"sid": "NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_29
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/identity"
_29
}
_29
],
_29
"meta": {
_29
"first_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users?Segment=segment1&Identity=identity&PageSize=50&Page=0",
_29
"key": "users",
_29
"next_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users?Segment=segment1&Identity=identity&PageSize=50&Page=1",
_29
"page": 0,
_29
"page_size": 50,
_29
"previous_page_url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users?Segment=segment1&Identity=identity&PageSize=50&Page=0",
_29
"url": "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users?Segment=segment1&Identity=identity&PageSize=50&Page=0"
_29
}
_29
}


curl

_10
curl -X DELETE "https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
_10
-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN


Rate this page: