Agents
Approve an agent and mint its authorization code
Called by the console's server after a person signs in and approves, with that member's tenant API key (a widget token is refused, because it lives in browsers). The key's member needs agent:manage (owners and admins), and member_id must belong to the workspace. The approved scopes are a subset of what was requested. The grant is bound to one application_id of the workspace. domains:purchase also needs a spend_cap_cents and a saved card. Persistent access is the default; persist: false ends it after expires_days. The authorization code is single use and is exchanged at POST /oauth/agent/token.
post/agent/consent
Request
- Base URL: https://api.customdomain.ai/v1
- URL: https://api.customdomain.ai/v1/agent/consent
- Auth: HTTP bearer
Request body
Response
The redirect for the agent, with its code
Changes
No recorded changes to this operation across all 1 revision of this API.