cli

Decide CLI device login

Changed on

Approves or denies a device login using the signed-in dashboard user's session. Approval requires permissions. Denial must not include permissions and prevents token issuance. Every permission must fit inside the caller's role. Any member can approve, not only admins. The CLI session is created later, when the CLI polls, with this set or a narrower one if the member's role changed.

post/v2/cli.decideDeviceLogin

Request

  • Base URL
    https://api.unkey.com
  • URL
    https://api.unkey.com/v2/cli.decideDeviceLogin
  • Auth
    HTTP bearer

Request body

OR

Response

Decision recorded.

dataEmptyResponse required

Empty response object by design. A successful response indicates this operation was successfully executed.

Example response

{
  "meta": {
    "requestId": "req_123"
  }
}

Changes