# Cakto — how to use (mcp.ai)

Cakto payment gateway and checkout for course/infoproduct sellers, read orders, sales analytics, subscriptions, churn and customers, plus build the catalog through the official API: create and edit products, offers and checkout order bumps. Generate your credentials (Client ID + Client Secret) under API in the Cakto dashboard, ticking the read scopes and, to create or edit, the write ones too.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_cakto?ms=1796396520000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `cakto_customers_get`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/cakto`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://new.mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/cakto/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/cakto/customers/get` — Leitura de clientes na Cakto (para análise/CRM).
  - body: { customer_id?: string, search?: string, page?: integer, account?: string, customer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/customers/list` — Leitura de clientes na Cakto (para análise/CRM).
  - body: { customer_id?: string, search?: string, page?: integer, account?: string, customer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/list/accounts` — Lista contas Cakto (apps do painel) vinculadas a este install — id, label e apelido.
  - body: { account?: string }
- `POST https://api.mcp.ai/api/cakto/offers/create` — Cria uma oferta (preço alternativo) para um produto existente na Cakto.
  - body: { name: string, price: number, product: string, image?: string, units?: integer, status?: string, type?: string, interval_type?: string, interval?: integer, recurrence_period?: integer, quantity_recurrences?: integer, trial_days?: integer, max_retries?: integer, retry_interval?: integer, account?: string }
- `POST https://api.mcp.ai/api/cakto/offers/get` — Leitura de ofertas na Cakto. A oferta é a unidade de PREÇO de um produto
  - body: { offer_id?: string, product?: string, status?: string, type?: string, search?: string, ordering?: string, limit?: integer, page?: integer, account?: string, offer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/offers/list` — Leitura de ofertas na Cakto. A oferta é a unidade de PREÇO de um produto
  - body: { offer_id?: string, product?: string, status?: string, type?: string, search?: string, ordering?: string, limit?: integer, page?: integer, account?: string, offer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/offers/update` — Atualiza uma oferta existente na Cakto (parcial: envie só o que muda).
  - body: { offer_id: string, name?: string, price?: number, image?: string, units?: integer, status?: string, type?: string, interval_type?: string, interval?: integer, recurrence_period?: integer, quantity_recurrences?: integer, trial_days?: integer, max_retries?: integer, retry_interval?: integer, account?: string, offer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/order/bumps/create` — Cria um order bump: pendura uma OFERTA como oferta complementar no
  - body: { product_id: string, offer_id: string, title?: string, description?: string, cta?: string, reference_price?: number, position?: integer, show_image?: boolean, account?: string, product_ids?: string[], offer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/order/bumps/get` — Leitura de order bumps (ofertas complementares exibidas no checkout).
  - body: { product_id?: string, order_bump_id?: string, account?: string, product_ids?: string[], order_bump_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/order/bumps/list` — Leitura de order bumps (ofertas complementares exibidas no checkout).
  - body: { product_id?: string, order_bump_id?: string, account?: string, product_ids?: string[], order_bump_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/order/bumps/reorder` — Reordena os order bumps de um produto numa chamada só: passe a lista
  - body: { product_id: string, items: object[], account?: string, product_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/order/bumps/update` — Atualiza um order bump existente (parcial: envie só o que muda) — troca
  - body: { order_bump_id: string, offer_id?: string, title?: string, description?: string, cta?: string, reference_price?: number, position?: integer, show_image?: boolean, account?: string, order_bump_ids?: string[], offer_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/orders/analytics` — Analytics de vendas na Cakto: métricas financeiras agregadas por canal/campanha.
  - body: { group_by?: string, start_date?: string, end_date?: string, product?: string, offer?: string, account?: string }
- `POST https://api.mcp.ai/api/cakto/orders/get` — Leitura de pedidos na Cakto.
  - body: { order_id?: string, status?: string, type?: string, offer_type?: string, payment_method?: string, customer?: string, product?: string, paid_at_gte?: string, paid_at_lt?: string, page?: integer, account?: string, order_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/orders/list` — Leitura de pedidos na Cakto.
  - body: { order_id?: string, status?: string, type?: string, offer_type?: string, payment_method?: string, customer?: string, product?: string, paid_at_gte?: string, paid_at_lt?: string, page?: integer, account?: string, order_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/products` — Lista produtos da conta na Cakto (paginado: count/next/previous/results).
  - body: { search?: string, product_id?: string, status?: string, type?: string, ordering?: string, limit?: integer, page?: integer, account?: string, product_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/products/create` — Cria um produto na Cakto. A criação já gera automaticamente a oferta
  - body: { name: string, description: string, price?: string, type?: string, category?: string, guarantee?: integer, sales_page?: string, account?: string }
- `POST https://api.mcp.ai/api/cakto/products/update` — Atualiza um produto existente na Cakto. A atualização é PARCIAL: envie
  - body: { product_id: string, name?: string, description?: string, price?: string, status?: string, type?: string, category?: string, guarantee?: integer, sales_page?: string, image?: string, support_email?: string, support_whatsapp?: string, payment_methods?: string[], default_payment_method?: string, installments?: integer, affiliate?: boolean, affiliate_commission?: number, producer_name?: string, invoice_description?: string, account?: string, product_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/subscription/churn` — Assinaturas perdidas: lista canceladas/inativas do negócio + métricas agregadas (valor em risco, nº de clientes afetados). Filtros de período opcionais.
  - body: { start_date?: string, end_date?: string, page?: integer, account?: string }
- `POST https://api.mcp.ai/api/cakto/subscriptions/get` — Leitura de assinaturas na Cakto.
  - body: { subscription_id?: string, status?: string, payment_method?: string, current_situation?: string, search?: string, ordering?: string, limit?: integer, page?: integer, account?: string, subscription_ids?: string[] }
- `POST https://api.mcp.ai/api/cakto/subscriptions/list` — Leitura de assinaturas na Cakto.
  - body: { subscription_id?: string, status?: string, payment_method?: string, current_situation?: string, search?: string, ordering?: string, limit?: integer, page?: integer, account?: string, subscription_ids?: string[] }

## Example prompts
- "How much did I sell on Cakto in the last 30 days?"
- "Create a $97 product with a 7-day guarantee and give me the checkout link"
- "Add my bonus offer as an order bump on the main course checkout"

## More
- Page: https://new.mcp.ai/cakto
- Agent spec (llms.txt): https://new.mcp.ai/cakto/llms.txt
- Postman collection: https://new.mcp.ai/cakto/postman.json
