{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/vonage/main/json-schema/vonage-account-response-schema.json",
  "title": "AccountResponse",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vonage-external-accounts-openapi.yml#/components/schemas/AccountResponse",
  "type": "object",
  "required": [
    "external_id",
    "api_key",
    "provider"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "The account name"
    },
    "applications": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The array of associated application ids"
    },
    "external_id": {
      "type": "string",
      "description": "The external identifier for this account"
    },
    "api_key": {
      "type": "string",
      "description": "The external api key for this account"
    },
    "provider": {
      "type": "string",
      "enum": [
        "messenger",
        "viber_service_msg",
        "whatsapp",
        "rcs"
      ],
      "description": "The provider (will be one of `messenger, viber_service_msg, whatsapp, rcs`)."
    },
    "access_token": {
      "type": "string",
      "description": "The provider access token (only for `messenger`)"
    }
  }
}