{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/syntheticbrew-ai/json-schema/syntheticbrew-ai-post-oauth-token-request-schema.json",
  "title": "PostOauthTokenRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/syntheticbrew-ai-getting-started-openapi-generated.yml#/components/schemas/PostOauthTokenRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "Specifies the type of token request (authorization_code or refresh_token)."
    },
    "code": {
      "type": "string",
      "description": "Authorization code when grant_type is authorization_code."
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token when grant_type is refresh_token."
    },
    "redirect_uri": {
      "type": "string",
      "description": "Redirect URI must match the one used in registration."
    }
  },
  "required": [
    "grant_type"
  ]
}