---
title: "Authorize a device code"
method: POST
path: "/oauth/device/authorize"
tags: ["oauth"]
---

# Authorize a device code

`POST /oauth/device/authorize`

Marks a device code as authorized for the authenticated user. Called by the /activate page when the user enters their user code. Requires authentication.

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
