Check an OAuth authorization request and describe it for the consent screen.
POST
/oauth/authorize/start
const url = 'https://api.siteqwality.com/oauth/authorize/start';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"client_id":"example","redirect_uri":"example","response_type":"example","scopes":["example"],"prompt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/oauth/authorize/start \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "client_id": "example", "redirect_uri": "example", "response_type": "example", "scopes": [ "example" ], "prompt": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
The OAuth request the consent page received, passed through for checking.
object
client_id
required
string
redirect_uri
required
string
response_type
required
string
scopes
The requested scopes, split from the space-separated scope param.
Array<string>
prompt
string | null
Example generated
{ "client_id": "example", "redirect_uri": "example", "response_type": "example", "scopes": [ "example" ], "prompt": "example"}Responses
Section titled “ Responses ”The app and scopes to show on the consent screen
Media type application/json
object
client
required
The app asking for access, as the consent screen shows it.
object
client_id
required
string
name
required
string
description
string | null
logo_url
string | null
client_type
string | null
consent_required
required
False when the member already approved this app for these scopes; the page can then continue without asking again.
boolean
scopes
required
Array<object>
One requested scope, and whether this member can grant it.
object
scope
required
string
description
string | null
is_grantable
required
boolean
Example generated
{ "client": { "client_id": "example", "name": "example", "description": "example", "logo_url": "example", "client_type": "example" }, "consent_required": true, "scopes": [ { "scope": "example", "description": "example", "is_grantable": true } ]}The app, redirect or scopes were refused
Missing or invalid authentication
Not a dashboard session