Devices API
Manage device pairing for your agent. Devices can be self-paired (auto-approved) or created via a pairing code flow where they start in apending state and can be approved, denied, or revoked.
All device endpoints require an authenticated session. Unauthenticated requests receive a
401 response.List devices
Response
Device object
Errors
Generate a pairing code
pending status and returns a pairing code. Use this when you want another device to complete the pairing flow via a code or URL.
Query parameters
Response
Example
Errors
Self-pair a device
Request body
Response
Example
Errors
Manage a device
approve— only valid when the device ispendingdeny— only valid when the device ispendingrevoke— only valid when the device isapproved
Request body
Response
Errors
Example: approve a device
Example: revoke a device
OpenClaw devices proxy (deprecated)
The following endpoints previously proxied device management requests to the agent’s OpenClaw runtime. They have been replaced by the local device pairing API.List paired devices (runtime)
GET /api/devices endpoint.
Errors
Manage paired devices (runtime)
action field determines the behavior.