---
title: "Device Authorization"
method: POST
path: "/v1/oauth/device/code"
tags: ["agent-auth"]
---

# Device Authorization

`POST /v1/oauth/device/code`

Get a browser approval link. Form: client_id=rmfg-agent and optional scope.

Poll the token endpoint at the returned interval using the device_code grant.

## Response `200`

Show the approval link and code; poll the token endpoint at interval seconds.

- object
  - `device_code` string
  - `user_code` string
  - `verification_uri` string
  - `verification_uri_complete` string
  - `expires_in` integer
  - `interval` integer

## Changes

- **2026-09-07** `35a1cd3bea64` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rmfg/apis/fastapi/changes/v1/oauth/device/code/post.md)

---

[API](https://skmtc.dev/rmfg/apis/fastapi.md) · [All operations](https://skmtc.dev/rmfg/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/rmfg/apis/fastapi/revisions/737527fc081e?raw)
