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

GET /2010-04-01/Accounts.json

Twilio accounts (aka Project) or subaccounts

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

Query parameters

  • 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 or active.

    Values are active, suspended, or closed.

  • 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 is 1000.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • accounts array[object]
      Hide accounts attributes Show accounts attributes
      • auth_token string | null

        The authorization token for this account

      • date_created string(date-time-rfc-2822) | null

        The date this account was created

      • date_updated string(date-time-rfc-2822) | null

        The date this account was last updated

      • friendly_name string | null

        A human readable description of this account

      • owner_account_sid string | null

        The unique 34 character id representing the parent of this account

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • sid string | null

        A 34 character string that uniquely identifies this resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • status string | null

        The status of this account

        Values are active, suspended, or closed.

      • subresource_uris object(uri-map) | null

        Account Instance Subresources

      • type string | null

        The type of this account

        Values are Trial or Full.

      • uri string(uri) | null

        The URI for this resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
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"
}