Retrieve a list of all Customer-Profiles for an account.
Retrieve a list of all Customer-Profiles for an account.
Query parameters
-
The verification status of the Customer-Profile resource.
Values are
draft
,pending-review
,in-review
,twilio-rejected
, ortwilio-approved
. -
The string that you assigned to describe the resource.
-
The unique string of a policy that is associated to the Customer-Profile resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RN[0-9a-fA-F]{32}$
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
GET
/v1/CustomerProfiles
curl \
--request GET 'https://trusthub.twilio.com/v1/CustomerProfiles' \
--user "username:password"
Response examples (200)
Read empty
{
"meta": {
"key": "results",
"url": "https://trusthub.twilio.com/v1/CustomerProfiles?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://trusthub.twilio.com/v1/CustomerProfiles?PageSize=50&Page=0",
"previous_page_url": null
},
"results": []
}
{
"meta": {
"key": "results",
"url": "https://trusthub.twilio.com/v1/CustomerProfiles?Status=draft&FriendlyName=friendly_name&PolicySid=RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://trusthub.twilio.com/v1/CustomerProfiles?Status=draft&FriendlyName=friendly_name&PolicySid=RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
"previous_page_url": null
},
"results": [
{
"sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "email",
"links": {
"customer_profiles_evaluations": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Evaluations",
"customer_profiles_entity_assignments": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/EntityAssignments",
"customer_profiles_channel_endpoint_assignment": "https://trusthub.twilio.com/v1/CustomerProfiles/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments"
},
"errors": [
{
"code": 18601
}
],
"status": "twilio-approved",
"policy_sid": "RNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"valid_until": "2020-07-31T01:00:00Z",
"date_created": "2019-07-30T22:29:24Z",
"date_updated": "2019-07-31T01:09:00Z",
"friendly_name": "friendly_name",
"status_callback": "http://www.example.com"
}
]
}