---
title: "Device Authorize"
method: POST
path: "/auth/cli/authorize"
tags: ["authentication"]
---

# Device Authorize

`POST /auth/cli/authorize`

Authorize a device code (called from web dashboard after SSO login).

Requires an authenticated user session.

## Request body

- DeviceAuthorizeRequest — Body for POST /auth/cli/authorize - authorize a device code.
  - `user_code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Invalid or expired user code
- `401` — Authentication required
- `404` — SSO authentication is not configured on this server
- `422` — Validation Error

## Changes

> 15 revisions in range; 7 could not be searched.

- **2026-07-26** `86f514b4e920` — 2 info
  - added the non-success response with the status `404`
  - removed the non-success response with the status `503`

[Change history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/auth/cli/authorize/post.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/7f4871ff054a/schema)
