Approve agent login
Approves a pending agent login request for the signed-in customer and selected workspace.
/api/v1/agent/auth/requests/{userCode}/approveApproves a pending agent login request for the signed-in customer and selected workspace.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
Start agent login POST
Starts the agent approval flow and returns a short customer code plus a browser verification URL. Agents should send verificationUriComplete to the customer, wait for approval, then poll POST /api/v1/agent/auth/exchange with deviceCode. A successful exchange returns a reusable workspace API key secret in apiKey.key for the HTTP API, not an OAuth token. Effective access is the union of role permissions and explicit permissions. If neither is provided, role defaults to admin.
Deny agent login POST
Denies a pending agent login request so the agent stops polling and the device code cannot be exchanged.