Authorize OAuth client

GET/api/oauth/authorize

Start the OAuth authorization-code flow

Validates the client and exact redirect URI, then redirects the browser to login or the company session picker. PKCE plain and S256 are supported; code_challenge_method defaults to plain when a challenge is supplied without a method.

Permission

No credentials needed.

Parameters

Not sure what to enter? Here’s where to find IDs.

client_idquery · stringrequired
The Client ID of your OAuth client. Find it in QuoteCloud under Settings → API dashboard → Manage Integrations → OAuth Clients.Length at least 1.
redirect_uriquery · string (uri)required
Where to send the person after they allow access. It must exactly match a redirect URI saved on your OAuth client.
response_typequery · stringrequired
Always code.Always code.
statequery · string
Any random value you choose. It comes back unchanged with the redirect, so you can check the response belongs to the request you started.
scopequery · string
The scopes to ask for, separated by spaces.
code_challengequery · string
The PKCE challenge you generated. Required for public clients, which have no client secret.
code_challenge_methodquery · string
How the challenge was made. Defaults to plain. Public clients must use S256.One of plain, S256.

Responses

307Redirect to QuoteCloud login or the company session picker.
Locationheader · string (uri-reference)

No response body.

400Invalid OAuth request, grant, code, redirect URI, or grant type.
errorstringrequired
error_descriptionstring
401Invalid OAuth client credentials or access token.
errorstringrequired
error_descriptionstring
500OAuth server error.
errorstringrequired
error_descriptionstring