{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/twilio/main/json-schema/twilio-account-list-schema.json",
  "title": "AccountList",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twilio-accounts-api-openapi.yml#/components/schemas/AccountList",
  "type": "object",
  "properties": {
    "accounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Account"
      }
    },
    "first_page_uri": {
      "type": "string"
    },
    "next_page_uri": {
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "page_size": {
      "type": "integer"
    }
  },
  "$defs": {
    "Account": {
      "type": "object",
      "properties": {
        "sid": {
          "type": "string",
          "pattern": "^AC[0-9a-fA-F]{32}$",
          "description": "Unique identifier for the account"
        },
        "friendly_name": {
          "type": "string",
          "description": "Human-readable account name"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "suspended",
            "closed"
          ],
          "description": "Current account status"
        },
        "type": {
          "type": "string",
          "enum": [
            "Trial",
            "Full"
          ],
          "description": "Account type"
        },
        "auth_token": {
          "type": "string",
          "description": "Primary authentication token"
        },
        "owner_account_sid": {
          "type": "string",
          "description": "SID of the parent account"
        },
        "date_created": {
          "type": "string",
          "format": "date-time"
        },
        "date_updated": {
          "type": "string",
          "format": "date-time"
        },
        "uri": {
          "type": "string"
        },
        "subresource_uris": {
          "type": "object",
          "properties": {
            "calls": {
              "type": "string"
            },
            "messages": {
              "type": "string"
            },
            "recordings": {
              "type": "string"
            },
            "keys": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}