---
title: "Request a device authorization code"
method: POST
path: "/v1/auth/device/code"
tags: ["Authentication"]
---

# Request a device authorization code

`POST /v1/auth/device/code`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/auth/device/code`
- Auth: none required

## Request body

- DeviceCodeRequest
  - `client_id` string, required
  - `email` string, email, required: Account email; only that user may approve the code in the dashboard.

## Response `200`

Device code issued

- DeviceCodeResponse
  - `device_code` string
  - `user_code` string
  - `verification_uri` string, uri
  - `expires_in` integer
  - `interval` integer

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/ae109b496830?raw)
