Quickstart
Rako integrations revolve around a five-step attribution lifecycle:search_offers -> get_checkout_requirements -> get_checkout_link.
- Search — an agent asks Rako for eligible offers matching user intent.
- Recommend — the agent presents an offer and records the attribution event.
- Checkout — the agent requests a hosted checkout URL or handoff for the recorded recommendation.
- Convert — Rako reconciles later platform-side outcome evidence, such as a payment event, merchant report, or milestone, into the conversion ledger. The hosted payment-verification path is currently beta and should not be described as trustless until the full event authentication and AAP Code verification gate is deployed.
- Settle — Rako validates the conversion, handles disputes or clawbacks, and calculates merchant commission, network fee, and builder payout.
Minimal API sequence
checkoutUrl when hosted checkout is available. That URL is a checkout handoff, not conversion proof. Rako attaches AAP context server-side so later platform-side outcome evidence can be joined back to the recommendation. In production, that join must be backed by authenticated outcome evidence and reconciliation checks before it is treated as verified.
Fastest path: MCP
Add the Rako MCP server to an MCP-compatible client:mcp-config.json
search_offersto find eligible offers.get_checkout_requirementsto inspect what is needed before checkout-link creation.get_checkout_linkto request the hosted checkout handoff.
Run locally first
Runnable local examples
Use the mock AAP server and SDK hello-world examples with fake data before wiring a non-mock API key.
MCP flow tutorial
Follow the canonical
search_offers -> get_checkout_requirements -> get_checkout_link flow.PORT=3456 is already in use, start it on another port and set the clients to the same URL:
SDK paths
JavaScript SDK
Use
@rakohq/sdk from Node.js, Deno, or Bun.Python SDK
Use
agent-attribution-protocol from Python agents and services.