REST API
The primary production path. Use API keys, direct requests, and webhooks for authenticated control-plane operations and execution flow.
Default production integration path
Agent integration
Pivota is the builder surface for the merchant gateway that sits on top of existing storefront, checkout, and payment systems.
Some merchants start with discovery, feeds, or link-out. When a merchant is ready for deeper flows, builders use the REST path, SDK, or MCP to work with checkout, orders, events, and webhooks.
Why this matters
Merchant onboarding and rollout choice come first. This page describes the builder surface that sits on top of that merchant path, whether the merchant is starting with lighter discovery flows or deeper merchant-native checkout.
Start in 4 steps
Create a developer account and get a production or test API key.
Send a first authenticated request against the branded API domain.
Create the first order or checkout flow and confirm response shape.
Configure webhook delivery and validate execution updates before promoting traffic.
Public quickstart
Use the public API base and the X-API-Key header to validate access before building deeper order or checkout flows.
curl https://api.pivota.cc/agent/v1/merchants \
-H "X-API-Key: YOUR_API_KEY"Choose your integration mode
The primary production path. Use API keys, direct requests, and webhooks for authenticated control-plane operations and execution flow.
Default production integration path
A convenience wrapper over the same production REST API. Published package name: pivota-agent.
Use when your runtime benefits from a client library
A local orchestration and discovery surface for search and routing workflows. Published package name: pivota-mcp-server.
Not a hosted replacement for the production REST API
What can be called today
Not every merchant uses every request family on day one. Search, recommendation, and lighter handoff paths may come before deeper checkout and order flows.
Merchant-native checkout does not mean every agent surface completes checkout fully inside chat. Depending on merchant readiness and the surface, execution may continue through link-out or another merchant-controlled handoff while staying in merchant-controlled systems.
Query merchant data, resolve products and offers, and support downstream shopping workflows without crawling fragmented sites.
Validate item paths and create merchant-native checkout flows that carry execution forward.
Create, inspect, and manage order flows while keeping merchant systems in control.
Observe order lifecycle events and operational state instead of guessing from front-end surfaces alone.
Configure destination URLs, subscribe to events, verify signatures, and inspect or retry delivery history.
Route execution into payment-aware flows with write-back and sync rather than isolated checkout fragments.
Example request and response
Public docs should make the request contract visible before login so a builder can understand the next action, the merchant-native path, and the event model without guessing.
Request example
curl -X POST "https://api.pivota.cc/agent/v1/checkouts/intent" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"merchant_id": "merch_...",
"items": [
{
"product_id": "prod_...",
"variant_id": "var_...",
"quantity": 1
}
],
"currency": "USD"
}'Response example
{
"status": "ready_for_checkout",
"merchant_native_path": {
"checkout_url": "https://checkout.pivota.cc/...",
"rollout_stage": "merchant_native_checkout"
},
"next_action": "redirect_to_checkout",
"events": ["order.created", "order.payment_attempted"]
}Execution boundaries
What stays public vs what is in the console
Builders should be able to understand the contract, auth, and execution model without login. Account-specific controls and telemetry stay in the developer console.
Visible without login
Inside the developer console
Trust and proof
The developer portal already validated the public API domain, published SDK packages, MCP runtime, and managed webhook receiver pattern in production.
Start with API access and the first call, then move into request types, auth, webhooks, and protocol positioning as the integration deepens.