Describe an authorization request for the consent screen (dashboard session).
GET
/v1/oauth/authorization
const url = 'https://api.replifier.com/v1/oauth/authorization?query=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/v1/oauth/authorization?query=example'query is the query string that reached app.replifier.com/oauth/authorize. Returns the client (with its kind: known or “unverified”), its redirect domain, the requested scopes and the organizations and brands the user can grant.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”query
required
string
Responses
Section titled “Responses”Request
Media typeapplication/json
object
valid
required
boolean
description
required
string
redirectTo
required
string
client
required
object
id
required
string
name
required
string
kind
required
string
verified
required
boolean
redirectHost
required
string
redirectIsLoopback
required
boolean
resource
required
string
scopes
required
Array<string>
organizations
required
Array<object>
object
id
required
string
name
required
string
brands
required
Array<object>
object
id
required
string
name
required
string
allowed
required
boolean
Example
{ "client": { "kind": "known" }}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}