Skip to content

OAuth consent context

GET
/oauth/consent/context
curl --request GET \
--url 'https://example.com/api/oauth/consent/context?authorization_id=example' \
--cookie sb-access-token=<sb-access-token>

Facts the consent screen needs before a human decides: client label, redirect target, requested scopes, and whether the client is first-party — true only when every redirect URI the client registered is a trusted CUSTOM-SCHEME native-app callback (the only case the portal may auto-approve). Vendor-hosted https callbacks are never first-party: they relay the code into whichever vendor session began the flow. Requires a first-party portal session JWT in the Authorization header (a delegated OAuth access token is refused with 401); read-only. Unknown or expired authorizations return a generic 404 so the endpoint cannot be used to enumerate authorization ids.

authorization_id
required
string
>= 1 characters <= 255 characters

Consent context

Media type application/json
object
client_name
required
string | null
redirect_uri
required
string | null
scopes
required
Array<string>
first_party
required
boolean

Invalid request

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean

Not found

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Rate limited

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
retryAfter

Seconds until the rate limit resets

number
Retry-After
string