Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceAccount and accessAccount

Deny a pending device login (session only)

Marks the code denied; the polling CLI gets access_denied and stops. Irreversible for that code (a fresh `orl auth login` starts a new one).

Required permission

Requires the self.update permission. See Permissions for the roles and API key permissions that include it.

POST
/v1/cli-auth/device/{userCode}/deny

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

userCode*string
Match^[0-9]{6}$

Response Body

Denied

Example Request
curl -X POST 'https://api.openrelay.inc/v1/cli-auth/device/string/deny'
Example Response
Empty