Start the spending-delegation ceremony and return one URL for a human to open. Use it when pay_service returns { "error": "no_delegation" }. It sets up a stablecoin (crypto) delegation that spends from the human’s personal wallet — it does not enroll a card. The human sets the currency, cap, duration, and transaction limit in the browser; the agent cannot set them and must not ask the human to pass them back. Needs a credential.
Auth: key / grant · Charges: nothing
Arguments
Returns
A URL to open, or confirmation a budget already exists:
already_active means a usable budget is in place (for an OAuth caller, the grant approved on the consent screen) — relay message as it stands, then call pay_service.
budget carries only the figures the API reported, and is omitted when none did. source (oauth_grant or account) is omitted when unknown. message and instructions are always present.
The url embeds a short-lived session token bound to the human’s account. Treat it as a credential — give it only to the account owner, never share it.
Other outcomes (no URL): delegation_setup_unavailable (this deployment can’t run the ceremony), delegation_setup_failed (the session couldn’t start), return_url_not_allowed (drop or fix returnUrl), and a human_action_required answer with delegationCheck: "failed" (an existing budget couldn’t be ruled out — follow its instructions and try pay_service first).
Try it
Ask your assistant:
Set up a spending budget so I can pay for Nevermined services.
Call it directly (charges nothing — returns a URL for a human to approve a cap):