Agent API
CLI&Open CLOUD agent checkout workflow
Agents can discover products, quote deterministic pricing, create a pending payment order from customer billing data, submit post-payment service install configuration, and fetch ready handoff credentials through signed API URLs.
Workflow
Recommended sequence
- Discover products with
GET /api/productsorGET /api/products/{product_id}. - Quote with
POST /api/checkout/quote. Checkconfiguration_normalizedandconfiguration_warnings; invalid limits are defaulted down instead of clamped up. - If the customer agrees and billing fields are known, create an order with
POST /api/orderand anIdempotency-Key. Public agents usepayment_method=card. - Poll the returned
status_url. Treat signed status like a bearer token and do not publish it; signed status is sensitive but does not include a raw bearer token. - Authenticated customer-agent orders require a logged-in customer session, an explicitly issued customer-agent bearer token, or
agent_auth.token_exchangemetadata when available. UseAuthorization: Bearer <token>only with a token issued through those flows. - Authenticated customer agents may use
payment_method=creditwhen existing account credit covers the total. Email-only public agents cannot spend customer credit. - When payment is confirmed asynchronously, the status changes from
PendingtoSuccess. If a service returnsrequires_install_configuration=true, POST{"config": {...}}to its signedinstall_action.url. - During
processing, readprovisioning_estimate. Provisioning usually takes 3-20 minutes; poll every 60 seconds and do not retry aggressively. - Continue polling
status_url. Whencredentials_available=true, fetch secrets from the signedcredentials_action.urland treat the response as sensitive handoff material.
Required order fields
Billing is required before order creation
If the agent only has an email address, it should ask the customer for billing details before creating the order. The API intentionally returns validation errors instead of guessing billing data.
{
"customer_email": "customer@example.com",
"billing_name": "Customer Name",
"billing_street": "Cloud Street 1",
"billing_city": "Prague",
"billing_postal_code": "11000",
"billing_country": "CZ",
"items": [
{"product_id": "kubernetes-hosting-universal", "quantity": 1}
]
}
Machine docs
Discovery endpoints
OpenAPI · Agent policy · AI map · llms.txt · MCP-style tools