OAuth

Generate O Auth Code Query

Changed on
get/api/oauth/state

Request

  • Base URL
    https://api.unorouter.com (the document declares no server; this is the origin it was published from)
  • Auth
    none required

Query parameters

turnstile, string

Cloudflare Turnstile verification token

provider, string

OAuth provider name

intent, string

OAuth flow intent: login, bind or verify

aff, string

Affiliate code

redirect_uri, string

URL to redirect to after OAuth login (must match allowed origins)

action, string

Set to 'bind' to link OAuth provider to existing account (requires Authorization header)

customer_type, string

Declared customer type for an account created by this login: consumer or business

scope, string

Step-up scope a verify intent proves (requires Authorization header)

context, string

JSON object with the step-up context, for scopes that bind one

terms_version, string

Terms of use version the signup page showed (YYYY-MM-DD), recorded as accepted on an account this login creates

terms_locale, string

Locale of the terms notice shown

terms_text, string

The terms notice exactly as shown

Response

OK

ResponseString required

Response_string schema

data, string required
message, string required
success, boolean required

Changes

    • info

      added the new optional query request parameter terms_locale

    • info

      added the new optional query request parameter terms_text

    • info

      added the new optional query request parameter terms_version