{
  "info": {
    "name": "Cakto — mcp.ai",
    "description": "REST API for the Cakto MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/cakto",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "cakto_customers_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            "get"
          ]
        },
        "description": "Leitura de clientes na Cakto (para análise/CRM).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customer_id\": \"\",\n  \"search\": \"\",\n  \"page\": 0,\n  \"account\": \"\",\n  \"customer_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_customers_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/customers/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "customers",
            "list"
          ]
        },
        "description": "Leitura de clientes na Cakto (para análise/CRM).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customer_id\": \"\",\n  \"search\": \"\",\n  \"page\": 0,\n  \"account\": \"\",\n  \"customer_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_list_accounts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/accounts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "accounts"
          ]
        },
        "description": "Lista contas Cakto (apps do painel) vinculadas a este install — id, label e apelido.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_orders_analytics",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/analytics",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            "analytics"
          ]
        },
        "description": "Analytics de vendas na Cakto: métricas financeiras agregadas por canal/campanha.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"group_by\": \"\",\n  \"start_date\": \"\",\n  \"end_date\": \"\",\n  \"product\": \"\",\n  \"offer\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_orders_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            "get"
          ]
        },
        "description": "Leitura de pedidos na Cakto.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"order_id\": \"\",\n  \"status\": \"\",\n  \"type\": \"\",\n  \"offer_type\": \"\",\n  \"payment_method\": \"\",\n  \"customer\": \"\",\n  \"product\": \"\",\n  \"paid_at_gte\": \"\",\n  \"paid_at_lt\": \"\",\n  \"page\": 0,\n  \"account\": \"\",\n  \"order_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_orders_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/orders/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "orders",
            "list"
          ]
        },
        "description": "Leitura de pedidos na Cakto.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"order_id\": \"\",\n  \"status\": \"\",\n  \"type\": \"\",\n  \"offer_type\": \"\",\n  \"payment_method\": \"\",\n  \"customer\": \"\",\n  \"product\": \"\",\n  \"paid_at_gte\": \"\",\n  \"paid_at_lt\": \"\",\n  \"page\": 0,\n  \"account\": \"\",\n  \"order_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_products",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/products",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "products"
          ]
        },
        "description": "Lista produtos da conta na Cakto (filtros opcionais: search, page).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"search\": \"\",\n  \"page\": 0,\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_subscription_churn",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/subscription/churn",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subscription",
            "churn"
          ]
        },
        "description": "Assinaturas perdidas: lista canceladas/inativas do negócio + métricas agregadas (valor em risco, nº de clientes afetados). Filtros de período opcionais.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"start_date\": \"\",\n  \"end_date\": \"\",\n  \"page\": 0,\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_subscriptions_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/subscriptions/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subscriptions",
            "get"
          ]
        },
        "description": "Leitura de assinaturas na Cakto.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"subscription_id\": \"\",\n  \"status\": \"\",\n  \"payment_method\": \"\",\n  \"current_situation\": \"\",\n  \"search\": \"\",\n  \"ordering\": \"\",\n  \"limit\": 0,\n  \"page\": 0,\n  \"account\": \"\",\n  \"subscription_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "cakto_subscriptions_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/subscriptions/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "subscriptions",
            "list"
          ]
        },
        "description": "Leitura de assinaturas na Cakto.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"subscription_id\": \"\",\n  \"status\": \"\",\n  \"payment_method\": \"\",\n  \"current_situation\": \"\",\n  \"search\": \"\",\n  \"ordering\": \"\",\n  \"limit\": 0,\n  \"page\": 0,\n  \"account\": \"\",\n  \"subscription_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}