{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recall-ai/json-schema/recall-ai-zoom-oauth-credential-request-schema.json",
  "title": "ZoomOAuthCredentialRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recall-ai-zoom-oauth-credentials-api-openapi.yml#/components/schemas/ZoomOAuthCredentialRequest",
  "type": "object",
  "properties": {
    "oauth_app": {
      "type": "string",
      "format": "uuid"
    },
    "authorization_code": {
      "allOf": [
        {
          "$ref": "#/$defs/ZoomAuthorizationCodeRequest"
        }
      ],
      "writeOnly": true,
      "description": "Data received from Zoom after the user has authorized the app. Applicable for **Recall Managed OAuth** flow."
    },
    "access_token_callback_url": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The url to retrieve access token from. Applicable for **Customer Managed OAuth** flow.",
      "maxLength": 200
    }
  },
  "required": [
    "oauth_app"
  ],
  "$defs": {
    "ZoomAuthorizationCodeRequest": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1
        },
        "redirect_uri": {
          "type": "string",
          "format": "uri",
          "minLength": 1
        },
        "code_verifier": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "code",
        "redirect_uri"
      ]
    }
  }
}