Skip to contentSkip to navigationSkip to topbar
Rate 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

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


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: