Search + K

Command Palette

Search for a command to run...

Sign In

Retrieves a collection of Accounts belonging to the account used to make the request

GET /2010-04-01/Accounts.json
Copy endpoint
https://api.twilio.com

Retrieves a collection of Accounts belonging to the account used to make the request

Parameters

query Query Parameters

Name Type
FriendlyName

Only return the Account resources with friendly names that exactly match this name.

string
Status

Only return Account resources with the given status. Can be closed, suspended or active.

type AccountEnumStatus = "active" | "suspended" | "closed"
PageSize

How many resources to return in each list page. The default is 50, and the maximum is 1000.

number
Page

The page index. This value is simply for client state.

number
PageToken

The page token. This is provided by the API.

string

Responses

200 application/json

OK

{
accounts?: ApiV2010Account
interface ApiV2010Account {
auth_token?: string | null;
date_created?: string | null;
date_updated?: string | null;
friendly_name?: string | null;
owner_account_sid?: `AC${string}` | null;
sid?: `AC${string}` | null;
status?: AccountEnumStatus;
subresource_uris?: {} | null;
type?: AccountEnumType;
uri?: string | null;
}
[]
;
end?: number;
first_page_uri?: string;
next_page_uri?: string | null;
page?: number;
page_size?: number;
previous_page_uri?: string | null;
start?: number;
uri?: string;
}