Skip to content

Deny a CLI authorization

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

Marks the request denied. The device flow learns it on its next poll; the loopback flow is told through the redirect URI in the response, since it does not poll.

authorizationId
required
string format: uuid

Denied.

Media typeapplication/json
object
status
required
string
Allowed values: denied
mode
required
string
Allowed values: pkce device
redirectUri

Present for pkce only. The browser navigates here so the waiting CLI learns it was denied instead of sitting until its request expires. Carries error=access_denied and the state, never a code.

string
Example
{
"status": "denied",
"mode": "pkce",
"redirectUri": "http://127.0.0.1:49152/callback?error=access_denied&state=u8Kq3rN1sVx2"
}

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"
}