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

Approve a device login

Approves a pending device login, giving the CLI a 30-day session as you in the chosen org with your membership role. Needs a signed-in user session. The session has the same permissions your dashboard session has in that org, including session-only actions an API key can never perform.

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}/approve

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

Request Body

application/json
  1. body
orgId*string

Response Body

Approved

Example Request
curl -X POST 'https://api.openrelay.inc/v1/cli-auth/device/string/approve' \  -H 'Content-Type: application/json' \  -d '{  "orgId": "string"}'
Example Response
Empty