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

# Device Authorization

`POST /v1/oauth/device/code`

## Request

- Base URL: `https://api.rmfg.com`
- URL: `https://api.rmfg.com/v1/oauth/device/code`
- Auth: none required

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.

## Request body `application/x-www-form-urlencoded`

- object
  - `client_id` string, required
  - `scope` string
  - `resource` string: Optional; must equal the API origin.

## 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

[Operation history](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/changes/v1/oauth/device/code/post.md)

---

[API](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api.md) - [All operations](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/revisions/078f984358b9?raw)
