Skip to content
Sign in Create account

Start consumer social sign-in

GET /api/v1/consumer-auth/social/{provider}/redirect

Starts the Google or Apple browser OAuth round-trip. Browser requests are redirected to the provider; callers requesting JSON receive authorize_url instead. Missing provider configuration returns 501 rather than fabricating credentials.

This operation needs no authentication.

Parameters

  • provider string path required
    One of: "google", "apple"
  • return_to string (uri) query

    Allowlisted builder return URL used after the browser round-trip.

    Length: at most 2048 characters
  • json boolean query

    Return JSON containing authorize_url instead of a browser redirect.

Responses

200 JSON caller response

application/json object

  • authorize_url string (uri)

Generated sample

{
  "authorize_url": "https://example.com"
}

302 Redirect to the configured provider authorization endpoint

404 unknown_provider

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Rate limit exceeded

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

501 social_not_configured

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

503 consumer_auth_disabled

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.