Path parameters
-
The SID of the Sync Service with the List Item resources to read.
-
The SID of the Sync List with the List Items to read. Can be the Sync List resource's
sid
or itsunique_name
.
Query parameters
-
Order string
How to order the List Items returned by their
index
value. Can be:asc
(ascending) ordesc
(descending) and the default is ascending.Values are
asc
ordesc
. -
From string
The
index
of the first Sync List Item resource to read. See alsobounds
. -
Bounds string
Whether to include the List Item referenced by the
from
parameter. Can be:inclusive
to include the List Item referenced by thefrom
parameter orexclusive
to start with the next List Item. The default value isinclusive
.Values are
inclusive
orexclusive
. -
PageSize integer
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
.
curl \
-X GET https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Items \
--user "username:password"
{
"items": [
{
"account_sid": "string",
"created_by": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_expires": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"index": 42,
"list_sid": "string",
"revision": "string",
"service_sid": "string",
"url": "https://example.com"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}
{
"items": [
{
"account_sid": "string",
"created_by": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_expires": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"index": 42,
"list_sid": "string",
"revision": "string",
"service_sid": "string",
"url": "https://example.com"
}
],
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
}
}