Approve a device-pairing request
POST/connect/device-code/:userCode/approve
Dashboard-only. Exactly one of instanceId (rotates that instance's API key — this app supports only one active key per instance at a time) or createInstance must be given; the latter is subject to the same free-trial 1-instance cap as POST /instances.
Request
Responses
- 200
- 400
- 401
- 402
- 404
- 409
OK — the apiKey itself is never returned here, only ever to the polling app via POST /connect/token
Neither or both of instanceId/createInstance were given
Missing or invalid token/key
Free trial is limited to 1 instance (createInstance path only)
Unknown connect code, or instanceId not owned by this account
This connect request is no longer pending (already approved, denied, or expired)