Retrieves a collection of Accounts belonging to the account used to make the request
Twilio accounts (aka Project) or subaccounts
Retrieves a collection of Accounts belonging to the account used to make the request
Query parameters
-
FriendlyName string
Only return the Account resources with friendly names that exactly match this name.
-
Status string
Only return Account resources with the given status. Can be
closed
,suspended
oractive
.Values are
active
,suspended
, orclosed
. -
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
.
GET /2010-04-01/Accounts.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts.json \
--user "username:password"
Response examples (200)
{
"accounts": [
{
"auth_token": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"owner_account_sid": "string",
"sid": "string",
"status": "active",
"subresource_uris": {},
"type": "Trial",
"uri": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}
Response examples (200)
{
"accounts": [
{
"auth_token": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"owner_account_sid": "string",
"sid": "string",
"status": "active",
"subresource_uris": {},
"type": "Trial",
"uri": "https://example.com"
}
],
"end": 42,
"first_page_uri": "https://example.com",
"next_page_uri": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_uri": "https://example.com",
"start": 42,
"uri": "https://example.com"
}