Retrieve a list of Contents belonging to the account used to make the request
A Content resource represents rich messaging content.
Retrieve a list of Contents belonging to the account used to make the request
Query parameters
-
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.
-
Whether to sort by ascending or descending date updated
-
Whether to sort by ascending or descending content name
-
Filter by >=[date-time]
-
Filter by <=[date-time]
-
Filter by Regex Pattern in content name
-
Filter by Regex Pattern in template content
-
Filter by array of valid language(s)
-
Filter by array of contentType(s)
-
Filter by array of ChannelEligibility(s), where ChannelEligibility=
:
curl \
--request GET 'https://content.twilio.com/v2/Content' \
--user "username:password"
{
"meta": {
"key": "contents",
"url": "https://content.twilio.com/v2/Content?PageSize=10&Page=0",
"page": 0,
"page_size": 10,
"next_page_url": null,
"first_page_url": "https://content.twilio.com/v2/Content?PageSize=10&Page=0",
"previous_page_url": null
},
"contents": []
}
{
"meta": {
"key": "contents",
"url": "https://content.twilio.com/v2/Content?PageSize=20&Page=0",
"page": 0,
"page_size": 20,
"next_page_url": null,
"first_page_url": "https://content.twilio.com/v2/Content?PageSize=20&Page=0",
"previous_page_url": null
},
"contents": [
{
"sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests",
"approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp"
},
"types": {
"twilio/text": {
"body": "Foo Bar Co is located at 39.7392, 104.9903"
},
"twilio/location": {
"label": "Foo Bar Co",
"latitude": 39.7392,
"longitude": 104.9903
}
},
"language": "en",
"variables": {
"name": "foo"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T19:00:00Z",
"date_updated": "2015-07-30T19:00:00Z",
"friendly_name": "Some content"
},
{
"sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests",
"approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp"
},
"types": {
"twilio/text": {
"body": "Foo Bar Co is located at 39.7392, 104.9903"
},
"twilio/location": {
"label": "Foo Bar Co",
"latitude": 39.7392,
"longitude": 104.9903
}
},
"language": "en",
"variables": {
"name": "foo"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T19:00:00Z",
"date_updated": "2015-07-30T19:00:00Z",
"friendly_name": "Anotha content"
},
{
"sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests",
"approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp"
},
"types": {
"twilio/text": {
"body": "Foo Bar Co is located at 39.7392, 104.9903"
},
"twilio/location": {
"label": "Foo Bar Co",
"latitude": 39.7392,
"longitude": 104.9903
}
},
"language": "en",
"variables": {
"name": "foo"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T19:00:00Z",
"date_updated": "2015-07-30T19:00:00Z",
"friendly_name": "Third content"
}
]
}