Skip to content

Read a pending CLI authorization for the approval screen

GET
/v1/cli/authorizations/{authorizationId}
curl --request GET \
--url https://api.aetherpush.com/v1/cli/authorizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Session-only; API keys and named access keys receive a plain 403. Answers 404 for anything that is not currently pending — unknown, expired, already approved, denied or consumed — so the endpoint cannot be used to probe past requests.

authorizationId
required
string format: uuid

Request metadata.

Media typeapplication/json

Everything the approval screen needs and nothing more. Codes, challenges, state and the redirect target are never returned.

object
authorizationId
required
string format: uuid
mode
required
string
Allowed values: pkce device
deviceName
string | null
clientName
string | null
clientVersion
string | null
clientPlatform
string | null
requestIp

Address the ceremony was started from, so the user can tell whether it was them.

string | null
expiresAt
required
integer format: int64
stepUpRequired
required

True when the account has MFA and the current dashboard session is too old to authorize a new device. The page should send the user back through sign-in before offering the approve action.

boolean
mfaSetupOverdue

True when the account passed its two-factor setup deadline without enrolling. Approving is refused in that state, so the page should offer enrollment instead of the approve action.

boolean
Example
{
"mode": "pkce"
}

The bearer token is missing, invalid, or expired.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

API keys and named access keys receive a plain 403. A login session that is not a dashboard login session receives code dashboard_session_required.

Media typeapplication/json
One of:
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

No pending request with that id.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

Internal server error.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}