{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-created-access-token-schema.json",
  "title": "CreatedAccessToken",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-oauth-api-openapi.yml#/components/schemas/CreatedAccessToken",
  "type": "object",
  "properties": {
    "grant_type": {
      "enum": [
        "password",
        "client_credentials",
        "refresh_token",
        "authorization_code"
      ],
      "description": "authorization_code, client_credentials, password or refresh_token"
    },
    "client_id": {
      "type": "string",
      "description": "Client ID"
    },
    "client_secret": {
      "type": "string",
      "description": "Client Secret Key"
    },
    "username": {
      "type": [
        "string",
        "null"
      ],
      "description": "User name"
    },
    "phonenumber": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number"
    },
    "scope": {
      "type": [
        "string",
        "null"
      ],
      "description": "account-owner, extension-user and/or methods:ALL, separated by space"
    },
    "redirect_uri": {
      "type": [
        "string",
        "null"
      ],
      "description": "The redirect URI where user enters authentication information"
    },
    "code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Authorization Code created via the /oauth/authorization API"
    },
    "refresh_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "Refresh token"
    }
  },
  "required": [
    "grant_type",
    "client_id",
    "client_secret"
  ]
}