OAuth 2.1

Device Code Approve

Approve a pending device_code authorization.

The user must already be authenticated (session cookie / Bearer). Only the scopes in scopes_approved (a subset of the requested ones) are granted; if omitted, all requested scopes are granted.

post/api/oauth2/device/approve

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/oauth2/device/approve
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

user_codestring nullable

User code shown in the device UI

link_idstring nullable

Bot link ticket id

link_codestring nullable

Bot link ticket secret

scopes_approvedstring[] nullable

Subset of requested scopes to actually grant

project_idinteger nullable

Project to bind the issued token to

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.