{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alpaca/json-schema/alpaca-authorize-oauth-token-response-schema.json",
  "title": "AuthorizeOAuthTokenResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alpaca-oauth-api-openapi.yml#/components/schemas/AuthorizeOAuthTokenResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "minLength": 1,
      "description": "OAuth code to exchange with token"
    },
    "client_id": {
      "type": "string",
      "minLength": 1,
      "description": "OAuth `client_id`"
    },
    "redirect_uri": {
      "type": "string",
      "minLength": 1,
      "description": "Redirect URI of OAuth flow"
    },
    "scope": {
      "type": "string",
      "description": "Granted scopes"
    }
  },
  "required": [
    "code",
    "client_id",
    "redirect_uri",
    "scope"
  ]
}