List organization accounts

GET /Organizations/{OrganizationSid}/Accounts

Path parameters

  • OrganizationSid string(OrganizationSid) Required

    Format should match the following pattern: OR[0-9a-f]{32}.

Query parameters

  • PageSize integer(int32)

    Minimum value is 1, maximum value is 100. Default value is 50.

  • PageToken string

    Minimum length is 1, maximum length is 4096.

Responses

  • 200 application/json

    Organization account list

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • content array[object]

      Page content

      Page content

      Hide content attributes Show content attributes object
      • account_sid string(AccountSid)

        Twilio account sid

        Format should match the following pattern: AC[0-9a-f]{32}.

      • friendly_name string

        Account friendly name

      • status string

        Account status

        Values are active, suspended, pending_closure, or closed.

      • owner_sid string(UserSid)

        Twilio account sid

        Format should match the following pattern: US[0-9a-f]{32}.

      • date_created string(date-time)

        The date and time when the account was created in the system

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
  • 403 application/json

    Unauthorized

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • code integer(int32)

      Twilio-specific error code

    • message string

      Error message

    • moreInfo string

      Link to Error Code References

    • status integer(int32)

      HTTP response status code

  • 404 application/json

    Account not found

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • code integer(int32)

      Twilio-specific error code

    • message string

      Error message

    • moreInfo string

      Link to Error Code References

    • status integer(int32)

      HTTP response status code

GET /Organizations/{OrganizationSid}/Accounts
curl \
 --request GET 'https://preview-iam.twilio.com/Organizations/ORa36de9717566c7eb6363671f54b87ba9/Accounts' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "content": [
    {
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "friendly_name": "string",
      "status": "active",
      "owner_sid": "US9a6d63d00bdbb50aa1c1889b3066bd30",
      "date_created": "2025-05-04T09:42:00Z"
    }
  ],
  "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"
  }
}
Response examples (403)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "code": 42,
  "message": "string",
  "moreInfo": "string",
  "status": 42
}
Response examples (404)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "code": 42,
  "message": "string",
  "moreInfo": "string",
  "status": 42
}