# VehicleOnboardingJsonResponse

Schema: #/components/schemas/VehicleOnboardingJsonResponse

Method: SCHEMA
Version: 2.0
Security: oauth2

## Schema fields:

  - `authorization_request_id` (string, required)
    UUID identifying the in-flight onboarding request. Echo it back to `POST /vehicle_onboarding/complete` (as `authorization_request_uid`) to finish onboarding.

  - `url` (string, required)
    The integration provider's authorization URL the client should navigate to (or pass to the native SDK).
    Example: https://connect.smartcar.com/oauth/authorize?response_type=code&client_id=...

  - `auth_method` (string, required)
    Whether the client should open `url` in a WebView (`api`) or launch the provider's native SDK with the supplied scopes (`native`). `native` is currently used for Smartcar BMW/MINI when the `smartcar_native_sdk` waffle flag is enabled.
    Enum: "api", "native"

  - `scopes` (array | null)
    OAuth scopes that the SDK should request when `auth_method=native`. Null when the field does not apply (for example for `auth_method=api` providers that do not surface scopes here).
    Example: ["read_vehicle_info","read_charge","control_charge"]

  - `single_select` (boolean | null)
    Whether the SDK should restrict the user to picking a single vehicle. Null when the field does not apply.

