Skip to content

Read an approval request

GET
/api/v1/account/authorization
curl --request GET \
--url 'http://127.0.0.1:8080/api/v1/account/authorization?code=example' \
--header 'Authorization: Bearer <token>'

Requires the user_code returned by device authorization or the code in the browser approval URL. The code identifies a pending request, not an access credential. Uses the persisted local-mode user when authentication is disabled. Otherwise an authenticated browser session is required, except for the current account and sign-in. Modifying authenticated requests require the current X-CSRF-Token. Credentials and responses must not be cached.

code
required
string

Operation completed.

Media typeapplication/json
object
client_name
required
string
client_origin
required
string
reauth_required
required
boolean
remember_days
required
integer format: int64
scope
required
string
user_code
required
string
verification_required
required
boolean
key
additional properties
any

Example generated

{
"client_name": "example",
"client_origin": "example",
"reauth_required": true,
"remember_days": 1,
"scope": "example",
"user_code": "example",
"verification_required": true
}

No valid session or API token (authentication-required), or the credential sent is invalid (invalid-credentials).

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer format: int64
title
required
string
type
required
string
key
additional properties
any

Example generated

{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Stable account problem code; authentication, authority, validation or lifecycle conflict.

Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer format: int64
title
required
string
type
required
string
key
additional properties
any

Example generated

{
"code": "example",
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}