---
title: "Request OAuth2 device authorization"
method: POST
path: "/oauth/device/code"
tags: ["oauth"]
---

# Request OAuth2 device authorization

`POST /oauth/device/code`

Issues a device code and user code for the device authorization flow per RFC 8628.

## Response `200`

OK

- OauthDeviceCodeResponse
  - `device_code` string
  - `expires_in` integer
  - `interval` integer
  - `user_code` string
  - `verification_uri` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[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)
