{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/bot.incrivel.tech"
        }
    ],
    "info": {
        "name": "API IncrivelBot",
        "_postman_id": "f7f21f61-1f34-4e3f-911c-7fd7742f81de",
        "description": "Integre seu sistema aos bots de venda de acesso a grupos do Telegram.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Conta",
            "description": "Dados da criadora dona do token, limites do plano e configura\u00e7\u00f5es de recebimento e integra\u00e7\u00e3o.",
            "item": [
                {
                    "name": "Minha conta",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/me"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retorna a criadora, o plano da plataforma, o uso atual e as configura\u00e7\u00f5es. Funciona mesmo com a assinatura suspensa."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"9f1c...\",\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"status\":\"active\",\"can_operate\":true,\"payout_mode\":\"own\",\"usage\":{\"bots\":1,\"active_groups\":1,\"active_members\":42}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar configura\u00e7\u00f5es",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/me"
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"payout_mode\":\"own\",\"default_gateway\":\"asaas\",\"asaas_wallet_id\":\"0c4f1e8a-1f0b-4b8e-9c0e-2f3d4a5b6c7d\",\"support_contact\":\"@meusuporte\",\"integration_webhook_url\":\"https:\\\/\\\/meusistema.com.br\\\/webhooks\\\/incrivelbot\"}"
                        },
                        "description": "Modo de recebimento, gateway padr\u00e3o, Wallet ID do Asaas, contato de suporte e URL de webhooks de integra\u00e7\u00e3o."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"payout_mode\":\"own\",\"default_gateway\":\"asaas\",\"integration_webhook_url\":\"https:\\\/\\\/meusistema.com.br\\\/webhooks\\\/incrivelbot\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Gerar novo segredo de webhook",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/me\/webhook-secret",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/me\/webhook-secret"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Gera (ou rotaciona) o segredo usado para assinar os webhooks de integra\u00e7\u00e3o. O valor \u00e9 exibido somente nesta resposta.\nVerifique cada evento com: `sha256=` + HMAC-SHA256(`{X-IncrivelBot-Timestamp}.{corpo}`, segredo) == `X-IncrivelBot-Signature`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"secret\":\"whsec_6Jx...\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Bots",
            "description": "Bots do Telegram conectados \u00e0 conta (token do @BotFather). O webhook \u00e9 registrado automaticamente.",
            "item": [
                {
                    "name": "Listar bots",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"name\":\"Bot VIP\",\"username\":\"meu_vip_bot\",\"status\":\"active\",\"link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Conectar bot",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"token\":\"123456789:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsawQ\",\"name\":\"Bot VIP\",\"welcome_message\":\"Oi! Aqui voc\u00ea assina meu grupo VIP \ud83d\udc96\"}"
                        },
                        "description": "Valida o token no Telegram, registra o webhook com segredo pr\u00f3prio e os comandos do bot.\nRespeita o limite de bots do plano."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":1,\"name\":\"Bot VIP\",\"username\":\"meu_vip_bot\",\"status\":\"active\"}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"message\":\"Seu plano atingiu o limite de bots.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver bot",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the bot."
                                },
                                {
                                    "id": "bot",
                                    "key": "bot",
                                    "value": 1,
                                    "description": "ID do bot."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"name\":\"Bot VIP\",\"username\":\"meu_vip_bot\",\"status\":\"active\",\"groups_count\":2}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar bot",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the bot."
                                },
                                {
                                    "id": "bot",
                                    "key": "bot",
                                    "value": 1,
                                    "description": "ID do bot."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Bot VIP\",\"welcome_message\":\"Bem-vindo(a)!\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"name\":\"Bot VIP\",\"welcome_message\":\"Bem-vindo(a)!\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Reconectar webhook",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots\/:bot\/reconnect",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots\/:bot\/reconnect",
                            "variable": [
                                {
                                    "id": "bot",
                                    "key": "bot",
                                    "value": 1,
                                    "description": "ID do bot."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Registra novamente o webhook no Telegram (use ap\u00f3s trocar de dom\u00ednio ou se o status estiver \"error\")."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"status\":\"active\",\"last_error\":null}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remover bot",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/bots\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/bots\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the bot."
                                },
                                {
                                    "id": "bot",
                                    "key": "bot",
                                    "value": 1,
                                    "description": "ID do bot."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Remove o webhook no Telegram e apaga o bot com seus grupos, planos e assinantes."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Grupos e canais",
            "description": "Grupos s\u00e3o cadastrados automaticamente quando o bot vira administrador no Telegram. Pela API voc\u00ea ativa as vendas e ajusta as op\u00e7\u00f5es.",
            "item": [
                {
                    "name": "Listar grupos",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/groups",
                            "query": [
                                {
                                    "key": "bot_id",
                                    "value": "1",
                                    "description": "Filtra por bot.",
                                    "disabled": false
                                },
                                {
                                    "key": "is_active",
                                    "value": "1",
                                    "description": "Filtra por vendas ativas.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/groups?bot_id=1&is_active=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":1,\"bot_id\":1,\"chat_id\":-1001234567890,\"title\":\"VIP da Ana\",\"is_active\":true,\"ready_to_sell\":true,\"sales_link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot?start=g1\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver grupo",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/groups\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/groups\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the group."
                                },
                                {
                                    "id": "group",
                                    "key": "group",
                                    "value": 1,
                                    "description": "ID do grupo."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"title\":\"VIP da Ana\",\"permissions\":{\"is_bot_admin\":true,\"can_invite_users\":true,\"can_restrict_members\":true}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar grupo",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/groups\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/groups\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the group."
                                },
                                {
                                    "id": "group",
                                    "key": "group",
                                    "value": 1,
                                    "description": "ID do grupo."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"description\":\"Conte\u00fado exclusivo di\u00e1rio.\",\"adult_content\":true,\"is_active\":true}"
                        },
                        "description": "Para ativar as vendas (`is_active: true`) o bot precisa ser administrador com permiss\u00e3o de convidar e banir,\ne o plano da plataforma precisa ter vaga para mais um grupo ativo."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"is_active\":true,\"adult_content\":true}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Verificar permiss\u00f5es do bot",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/groups\/:group\/check-permissions",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/groups\/:group\/check-permissions",
                            "variable": [
                                {
                                    "id": "group",
                                    "key": "group",
                                    "value": 1,
                                    "description": "ID do grupo."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Consulta o Telegram e atualiza se o bot \u00e9 administrador e quais permiss\u00f5es tem no grupo."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":1,\"permissions\":{\"is_bot_admin\":true,\"can_invite_users\":true,\"can_restrict_members\":true,\"checked_at\":\"2026-10-18T12:00:00-03:00\"}}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Planos de acesso",
            "description": "Planos vendidos pelo bot (pre\u00e7o, dura\u00e7\u00e3o, lembretes de renova\u00e7\u00e3o e car\u00eancia).",
            "item": [
                {
                    "name": "Listar planos",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/plans",
                            "query": [
                                {
                                    "key": "telegram_group_id",
                                    "value": "1",
                                    "description": "Filtra por grupo.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/plans?telegram_group_id=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":3,\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"price_cents\":2990,\"price\":\"R$ 29,90\",\"duration_days\":30,\"reminder_days\":[3,1,0],\"grace_hours\":0,\"is_active\":true,\"purchase_link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot?start=p3\"}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Criar plano",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/plans",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/plans"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"description\":\"Acesso por 30 dias\",\"price_cents\":2990,\"duration_days\":30,\"reminder_days\":[3],\"grace_hours\":12,\"is_active\":true,\"sort_order\":0}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":3,\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"price_cents\":2990,\"price\":\"R$ 29,90\",\"duration_days\":30,\"reminder_days\":[3,1,0],\"grace_hours\":0,\"is_active\":true,\"purchase_link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot?start=p3\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver plano",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/plans\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/plans\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the plan."
                                },
                                {
                                    "id": "plan",
                                    "key": "plan",
                                    "value": 3,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":3,\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"price_cents\":2990,\"price\":\"R$ 29,90\",\"duration_days\":30,\"reminder_days\":[3,1,0],\"grace_hours\":0,\"is_active\":true,\"purchase_link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot?start=p3\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar plano",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/plans\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/plans\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the plan."
                                },
                                {
                                    "id": "plan",
                                    "key": "plan",
                                    "value": 3,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"description\":\"Acesso por 30 dias\",\"price_cents\":2990,\"duration_days\":30,\"reminder_days\":[3],\"grace_hours\":12,\"is_active\":true,\"sort_order\":0}"
                        },
                        "description": "Envie apenas os campos que deseja alterar. Assinantes ativos mant\u00eam o vencimento atual."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":3,\"telegram_group_id\":1,\"name\":\"VIP Mensal\",\"price_cents\":2990,\"price\":\"R$ 29,90\",\"duration_days\":30,\"reminder_days\":[3,1,0],\"grace_hours\":0,\"is_active\":true,\"purchase_link\":\"https:\\\/\\\/t.me\\\/meu_vip_bot?start=p3\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remover plano",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/plans\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/plans\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the plan."
                                },
                                {
                                    "id": "plan",
                                    "key": "plan",
                                    "value": 3,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Exclus\u00e3o l\u00f3gica: o plano some do bot, mas o hist\u00f3rico de pagamentos \u00e9 preservado."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Assinantes",
            "description": "Pessoas que iniciaram conversa com o bot. O CPF nunca \u00e9 exposto completo.",
            "item": [
                {
                    "name": "Listar assinantes",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/subscribers",
                            "query": [
                                {
                                    "key": "search",
                                    "value": "ana",
                                    "description": "Busca por nome, @usu\u00e1rio ou e-mail.",
                                    "disabled": false
                                },
                                {
                                    "key": "telegram_user_id",
                                    "value": "123456789",
                                    "description": "Busca exata pelo ID do Telegram.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "25",
                                    "description": "Itens por p\u00e1gina (m\u00e1x. 100).",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/subscribers?search=ana&telegram_user_id=123456789&per_page=25"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":10,\"telegram_user_id\":123456789,\"username\":\"ana\",\"full_name\":\"Ana Maria Silva\",\"email\":\"ana@example.com\",\"document_masked\":\"***.982.***-25\"}],\"links\":[],\"meta\":{\"current_page\":1,\"per_page\":25,\"total\":1}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver assinante",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/subscribers\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/subscribers\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the subscriber."
                                },
                                {
                                    "id": "subscriber",
                                    "key": "subscriber",
                                    "value": 10,
                                    "description": "ID do assinante."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Inclui as perman\u00eancias (acessos) do assinante em cada grupo."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":10,\"full_name\":\"Ana Maria Silva\",\"memberships\":[{\"id\":5,\"telegram_group_id\":1,\"status\":\"active\",\"expires_at\":\"2026-11-18T12:00:00-03:00\"}]}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Conceder acesso (cortesia)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/subscribers\/:subscriber\/grant",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/subscribers\/:subscriber\/grant",
                            "variable": [
                                {
                                    "id": "subscriber",
                                    "key": "subscriber",
                                    "value": 10,
                                    "description": "ID do assinante."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"telegram_group_id\":1,\"days\":30}"
                        },
                        "description": "Libera ou estende o acesso sem cobran\u00e7a e envia o convite pelo bot."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":5,\"subscriber_id\":10,\"telegram_group_id\":1,\"status\":\"active\",\"expires_at\":\"2026-11-18T12:00:00-03:00\"}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Membros",
            "description": "Perman\u00eancias dos assinantes nos grupos: vencimentos, extens\u00f5es, convites e remo\u00e7\u00f5es.",
            "item": [
                {
                    "name": "Listar membros",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/memberships",
                            "query": [
                                {
                                    "key": "status",
                                    "value": "active",
                                    "description": "pending, active, expired ou cancelled.",
                                    "disabled": false
                                },
                                {
                                    "key": "telegram_group_id",
                                    "value": "1",
                                    "description": "Filtra por grupo.",
                                    "disabled": false
                                },
                                {
                                    "key": "subscriber_id",
                                    "value": "10",
                                    "description": "Filtra por assinante.",
                                    "disabled": false
                                },
                                {
                                    "key": "expiring_in_days",
                                    "value": "7",
                                    "description": "Somente ativos que vencem nos pr\u00f3ximos N dias.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "25",
                                    "description": "Itens por p\u00e1gina (m\u00e1x. 100).",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/memberships?status=active&telegram_group_id=1&subscriber_id=10&expiring_in_days=7&per_page=25"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"status\":\"cancelled\",\"expiring_in_days\":1}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":5,\"subscriber_id\":10,\"telegram_group_id\":1,\"access_plan_id\":3,\"status\":\"active\",\"is_active\":true,\"expires_at\":\"2026-11-18T12:00:00-03:00\",\"joined_at\":\"2026-10-18T12:05:00-03:00\"}],\"links\":[],\"meta\":{\"current_page\":1,\"per_page\":25,\"total\":1}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver membro",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/memberships\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/memberships\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the membership."
                                },
                                {
                                    "id": "membership",
                                    "key": "membership",
                                    "value": 5,
                                    "description": "ID da perman\u00eancia."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":5,\"subscriber_id\":10,\"telegram_group_id\":1,\"access_plan_id\":3,\"status\":\"active\",\"is_active\":true,\"expires_at\":\"2026-11-18T12:00:00-03:00\",\"joined_at\":\"2026-10-18T12:05:00-03:00\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Estender acesso (cortesia)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/memberships\/:membership\/extend",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/memberships\/:membership\/extend",
                            "variable": [
                                {
                                    "id": "membership",
                                    "key": "membership",
                                    "value": 5,
                                    "description": "ID da perman\u00eancia."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"telegram_group_id\":1,\"days\":30}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":5,\"subscriber_id\":10,\"telegram_group_id\":1,\"access_plan_id\":3,\"status\":\"active\",\"is_active\":true,\"expires_at\":\"2026-11-18T12:00:00-03:00\",\"joined_at\":\"2026-10-18T12:05:00-03:00\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Reenviar convite",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/memberships\/:membership\/resend-invite",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/memberships\/:membership\/resend-invite",
                            "variable": [
                                {
                                    "id": "membership",
                                    "key": "membership",
                                    "value": 5,
                                    "description": "ID da perman\u00eancia."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Gera um novo link pessoal (com pedido de entrada) e envia ao assinante pelo bot."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":5,\"subscriber_id\":10,\"telegram_group_id\":1,\"access_plan_id\":3,\"status\":\"active\",\"is_active\":true,\"expires_at\":\"2026-11-18T12:00:00-03:00\",\"joined_at\":\"2026-10-18T12:05:00-03:00\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remover do grupo agora",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/memberships\/:membership\/remove",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/memberships\/:membership\/remove",
                            "variable": [
                                {
                                    "id": "membership",
                                    "key": "membership",
                                    "value": 5,
                                    "description": "ID da perman\u00eancia."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Remove o assinante do grupo imediatamente e encerra a perman\u00eancia (status \"expired\")."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":5,\"status\":\"expired\",\"removed_at\":\"2026-10-18T13:00:00-03:00\"}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Pagamentos",
            "description": "Cobran\u00e7as Pix de planos de acesso. A confirma\u00e7\u00e3o vem do gateway (webhook) e libera o acesso automaticamente.",
            "item": [
                {
                    "name": "Listar pagamentos",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/payments",
                            "query": [
                                {
                                    "key": "status",
                                    "value": "paid",
                                    "description": "pending, paid, failed, expired, refunded ou cancelled.",
                                    "disabled": false
                                },
                                {
                                    "key": "subscriber_id",
                                    "value": "10",
                                    "description": "Filtra por assinante.",
                                    "disabled": false
                                },
                                {
                                    "key": "from",
                                    "value": "2026-10-01",
                                    "description": "Criados a partir da data (YYYY-MM-DD).",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "25",
                                    "description": "Itens por p\u00e1gina (m\u00e1x. 100).",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/payments?status=paid&subscriber_id=10&from=2026-10-01&per_page=25"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"status\":\"pending\",\"from\":\"2026-10-19\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":\"0f8d6c3a-5b1e-4f7a-9a0b-1c2d3e4f5a6b\",\"purpose\":\"membership\",\"status\":\"pending\",\"provider\":\"asaas\",\"amount_cents\":2990,\"platform_fee_cents\":0,\"net_amount_cents\":2990,\"subscriber_id\":10,\"access_plan_id\":3,\"pix\":{\"copy_paste\":\"00020126580014br.gov.bcb.pix...\",\"qr_code_base64\":\"iVBORw0KGgo...\",\"checkout_url\":\"https:\\\/\\\/www.asaas.com\\\/i\\\/abc123\"},\"expires_at\":\"2026-10-19T12:00:00-03:00\",\"paid_at\":null}],\"links\":[],\"meta\":{\"current_page\":1,\"per_page\":25,\"total\":1}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Gerar cobran\u00e7a Pix",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/payments",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/payments"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"subscriber_id\":10,\"access_plan_id\":3,\"full_name\":\"Ana Maria Silva\",\"document\":\"529.982.247-25\",\"email\":\"ana@example.com\",\"send_to_telegram\":true}"
                        },
                        "description": "Cria (ou reaproveita, se ainda v\u00e1lida) a cobran\u00e7a Pix de um plano para um assinante.\nO pagador precisa ter nome, CPF e e-mail \u2014 envie-os aqui se ainda n\u00e3o foram coletados pelo bot."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":\"0f8d6c3a-5b1e-4f7a-9a0b-1c2d3e4f5a6b\",\"purpose\":\"membership\",\"status\":\"pending\",\"provider\":\"asaas\",\"amount_cents\":2990,\"platform_fee_cents\":0,\"net_amount_cents\":2990,\"subscriber_id\":10,\"access_plan_id\":3,\"pix\":{\"copy_paste\":\"00020126580014br.gov.bcb.pix...\",\"qr_code_base64\":\"iVBORw0KGgo...\",\"checkout_url\":\"https:\\\/\\\/www.asaas.com\\\/i\\\/abc123\"},\"expires_at\":\"2026-10-19T12:00:00-03:00\",\"paid_at\":null}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"message\":\"Gateway da criadora n\\u00e3o configurado.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver pagamento",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/payments\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/payments\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the payment."
                                },
                                {
                                    "id": "payment",
                                    "key": "payment",
                                    "value": "0f8d6c3a-5b1e-4f7a-9a0b-1c2d3e4f5a6b",
                                    "description": "UUID do pagamento."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Consulta o gateway quando a cobran\u00e7a ainda est\u00e1 pendente, para refletir o status mais recente."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"0f8d6c3a-5b1e-4f7a-9a0b-1c2d3e4f5a6b\",\"purpose\":\"membership\",\"status\":\"pending\",\"provider\":\"asaas\",\"amount_cents\":2990,\"platform_fee_cents\":0,\"net_amount_cents\":2990,\"subscriber_id\":10,\"access_plan_id\":3,\"pix\":{\"copy_paste\":\"00020126580014br.gov.bcb.pix...\",\"qr_code_base64\":\"iVBORw0KGgo...\",\"checkout_url\":\"https:\\\/\\\/www.asaas.com\\\/i\\\/abc123\"},\"expires_at\":\"2026-10-19T12:00:00-03:00\",\"paid_at\":null}}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Gateways de pagamento",
            "description": "Chaves pr\u00f3prias de Asaas, Mercado Pago e Infopago (modo \"own\"). Os segredos s\u00e3o gravados criptografados e nunca s\u00e3o devolvidos.",
            "item": [
                {
                    "name": "Listar gateways",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":\"7b2f...\",\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"configured_fields\":{\"api_key\":true},\"webhook\":{\"url\":\"https:\\\/\\\/bot.incrivel.tech\\\/webhooks\\\/asaas\\\/7b2f...\",\"token\":\"cole-este-token-no-asaas\"}}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Cadastrar gateway",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"credentials\":{\"api_key\":\"$aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6OjAwMDAwMDAwMDAwMDA\",\"access_token\":\"APP_USR-0000000000000000-000000-00000000000000000000000000000000-000000000\",\"webhook_secret\":\"segredo-do-webhook\",\"base_url\":\"https:\\\/\\\/api.infopago.com.br\"}}"
                        },
                        "description": "Depois de cadastrar, configure no painel do gateway a URL de webhook retornada (e, no Asaas, o token)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":\"7b2f...\",\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"configured_fields\":{\"api_key\":true},\"webhook\":{\"url\":\"https:\\\/\\\/bot.incrivel.tech\\\/webhooks\\\/asaas\\\/7b2f...\",\"token\":\"cole-este-token-no-asaas\"}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver gateway",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways\/:credential",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways\/:credential",
                            "variable": [
                                {
                                    "id": "credential",
                                    "key": "credential",
                                    "value": "7b2f0000-0000-0000-0000-000000000000",
                                    "description": "ID (UUID) do gateway."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"7b2f...\",\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"configured_fields\":{\"api_key\":true},\"webhook\":{\"url\":\"https:\\\/\\\/bot.incrivel.tech\\\/webhooks\\\/asaas\\\/7b2f...\",\"token\":\"cole-este-token-no-asaas\"}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar gateway",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways\/:credential",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways\/:credential",
                            "variable": [
                                {
                                    "id": "credential",
                                    "key": "credential",
                                    "value": "7b2f0000-0000-0000-0000-000000000000",
                                    "description": "ID (UUID) do gateway."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"credentials\":{\"api_key\":\"$aact_YTU5YTE0M2M2N2I4MTliNzk0YTI5N2U5MzdjNWZmNDQ6OjAwMDAwMDAwMDAwMDA\",\"access_token\":\"APP_USR-0000000000000000-000000-00000000000000000000000000000000-000000000\",\"webhook_secret\":\"segredo-do-webhook\",\"base_url\":\"https:\\\/\\\/api.infopago.com.br\"}}"
                        },
                        "description": "Campos de `credentials` omitidos ou vazios mant\u00eam o valor atual."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"7b2f...\",\"provider\":\"asaas\",\"label\":\"Conta principal\",\"sandbox\":true,\"is_active\":true,\"configured_fields\":{\"api_key\":true},\"webhook\":{\"url\":\"https:\\\/\\\/bot.incrivel.tech\\\/webhooks\\\/asaas\\\/7b2f...\",\"token\":\"cole-este-token-no-asaas\"}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Testar conex\u00e3o",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways\/:credential\/test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways\/:credential\/test",
                            "variable": [
                                {
                                    "id": "credential",
                                    "key": "credential",
                                    "value": "7b2f0000-0000-0000-0000-000000000000",
                                    "description": "ID (UUID) do gateway."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Autentica no gateway com as chaves salvas."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"ok\":true}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Remover gateway",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/gateways\/:credential",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/gateways\/:credential",
                            "variable": [
                                {
                                    "id": "credential",
                                    "key": "credential",
                                    "value": "7b2f0000-0000-0000-0000-000000000000",
                                    "description": "ID (UUID) do gateway."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Plataforma: criadoras",
            "description": "Exige token da plataforma (criado no painel master). Provisione contas de criadoras a partir do seu sistema.",
            "item": [
                {
                    "name": "Listar criadoras",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/tenants",
                            "query": [
                                {
                                    "key": "status",
                                    "value": "active",
                                    "description": "Filtra por status.",
                                    "disabled": false
                                },
                                {
                                    "key": "search",
                                    "value": "ana",
                                    "description": "Busca por nome ou endere\u00e7o.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "25",
                                    "description": "Itens por p\u00e1gina (m\u00e1x. 100).",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/tenants?status=active&search=ana&per_page=25"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"status\":\"past_due\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":\"9f1c2d3e-0000-0000-0000-000000000000\",\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/\",\"panel_url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/app\",\"status\":\"trial\",\"can_operate\":true,\"payout_mode\":\"own\",\"plan\":{\"id\":2,\"name\":\"Pro\"}}],\"links\":[],\"meta\":{\"current_page\":1,\"per_page\":25,\"total\":1}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Provisionar criadora",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/tenants",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/tenants"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"saas_plan_id\":2,\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"owner_name\":\"Ana Souza\",\"email\":\"ana@example.com\",\"password\":\"SenhaForte#2026\",\"document\":\"529.982.247-25\",\"phone\":\"(11) 98888-7777\",\"adult_content\":false,\"issue_api_token\":true}"
                        },
                        "description": "Cria a conta (com subdom\u00ednio e usu\u00e1ria dona). Com `issue_api_token: true`, devolve um token de API da criadora,\nexibido somente nesta resposta, para seu sistema criar bots, planos etc. em nome dela."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":\"9f1c2d3e-0000-0000-0000-000000000000\",\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/\",\"panel_url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/app\",\"status\":\"trial\",\"can_operate\":true,\"payout_mode\":\"own\",\"plan\":{\"id\":2,\"name\":\"Pro\"}},\"api_token\":\"ibot_12|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver criadora",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/tenants\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/tenants\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the tenant."
                                },
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "9f1c2d3e-0000-0000-0000-000000000000",
                                    "description": "ID da criadora."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"9f1c2d3e-0000-0000-0000-000000000000\",\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/\",\"panel_url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/app\",\"status\":\"trial\",\"can_operate\":true,\"payout_mode\":\"own\",\"plan\":{\"id\":2,\"name\":\"Pro\"}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar criadora",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/tenants\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/tenants\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the tenant."
                                },
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "9f1c2d3e-0000-0000-0000-000000000000",
                                    "description": "ID da criadora."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Ana VIP\",\"status\":\"active\",\"saas_plan_id\":2,\"plan_expires_at\":\"2026-12-31T23:59:59-03:00\",\"adult_content\":true}"
                        },
                        "description": "Altere status (ex.: suspender), plano e validade da assinatura."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":\"9f1c2d3e-0000-0000-0000-000000000000\",\"name\":\"Ana VIP\",\"slug\":\"anavip\",\"url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/\",\"panel_url\":\"https:\\\/\\\/anavip.bot.incrivel.tech\\\/app\",\"status\":\"trial\",\"can_operate\":true,\"payout_mode\":\"own\",\"plan\":{\"id\":2,\"name\":\"Pro\"}}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Gerar token de API da criadora",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/tenants\/:tenant\/tokens",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/tenants\/:tenant\/tokens",
                            "variable": [
                                {
                                    "id": "tenant",
                                    "key": "tenant",
                                    "value": "9f1c2d3e-0000-0000-0000-000000000000",
                                    "description": "ID da criadora."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Emite um novo token (leitura e escrita) para a dona da conta. Exibido somente nesta resposta."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"api_token\":\"ibot_13|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Plataforma: planos",
            "description": "Planos que as criadoras assinam na plataforma. Exige token da plataforma.",
            "item": [
                {
                    "name": "Listar planos da plataforma",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/saas-plans",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/saas-plans"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"id\":2,\"name\":\"Pro\",\"slug\":\"pro\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"limits\":{\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000},\"platform_fee_percent\":3,\"is_active\":true}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Criar plano da plataforma",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/saas-plans",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/saas-plans"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Pro\",\"slug\":\"pro\",\"description\":\"Para criadoras com v\u00e1rios grupos.\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000,\"platform_fee_percent\":3,\"allows_custom_domain\":true,\"features\":[\"Dom\u00ednio pr\u00f3prio\"],\"is_featured\":true,\"is_active\":true,\"sort_order\":2}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\"data\":{\"id\":2,\"name\":\"Pro\",\"slug\":\"pro\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"limits\":{\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000},\"platform_fee_percent\":3,\"is_active\":true}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Ver plano da plataforma",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/saas-plans\/:saasPlan",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/saas-plans\/:saasPlan",
                            "variable": [
                                {
                                    "id": "saasPlan",
                                    "key": "saasPlan",
                                    "value": 2,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":2,\"name\":\"Pro\",\"slug\":\"pro\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"limits\":{\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000},\"platform_fee_percent\":3,\"is_active\":true}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Atualizar plano da plataforma",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/saas-plans\/:saasPlan",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/saas-plans\/:saasPlan",
                            "variable": [
                                {
                                    "id": "saasPlan",
                                    "key": "saasPlan",
                                    "value": 2,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Pro\",\"slug\":\"pro\",\"description\":\"Para criadoras com v\u00e1rios grupos.\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000,\"platform_fee_percent\":3,\"allows_custom_domain\":true,\"features\":[\"Dom\u00ednio pr\u00f3prio\"],\"is_featured\":true,\"is_active\":true,\"sort_order\":2}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"id\":2,\"name\":\"Pro\",\"slug\":\"pro\",\"price_cents\":9990,\"interval_months\":1,\"trial_days\":7,\"limits\":{\"max_bots\":3,\"max_groups\":5,\"max_active_members\":2000},\"platform_fee_percent\":3,\"is_active\":true}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Arquivar plano da plataforma",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/platform\/saas-plans\/:saasPlan",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/platform\/saas-plans\/:saasPlan",
                            "variable": [
                                {
                                    "id": "saasPlan",
                                    "key": "saasPlan",
                                    "value": 2,
                                    "description": "ID do plano."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Exclus\u00e3o l\u00f3gica: criadoras que j\u00e1 assinam continuam no plano."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 204,
                            "body": null,
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}