Provision a complete agent identity in one call
Gives an AI agent a complete internet identity in a single request: buys the domain (if not already owned), sets up email DNS, creates a mailbox, and optionally registers an authenticated webhook for inbound email and domain events. webhook_headers accepts only Authorization and X-API-Key; values are encrypted at rest and never returned. Repeating the same domain, mailbox slug, and webhook URL reuses those resources.
Every webhook input is validated before a domain purchase or charge. The domain purchase is the only step that can charge and the only hard prerequisite - if it fails, the whole call fails (402 for payment, 409 if taken by another account). Email setup, mailbox creation, and webhook registration are best-effort: transient issues (e.g. DNS still propagating) are returned in warnings rather than failing the call, so the agent always gets its domain.
Payment works exactly like POST /api/domains/buy (card, marketplace balance, or USDC via the PAYMENT-SIGNATURE header / two-step flow).
Request
- Base URL: https://domani.run
- URL: https://domani.run/api/agents/provision
- Auth: HTTP bearer
Headers
Base64-encoded x402 payment payload (USDC on Base) to pay for the domain with USDC.
Request body
Example request
{
"domain": "myagent.run",
"slug": "hi",
"max_price": 20
}Response
Agent provisioned (domain already owned)
Changes
No recorded changes to this operation across all 2 revisions of this API.