API — SuperAdmin
API — SuperAdmin (Tenant Management)
Section titled “API — SuperAdmin (Tenant Management)”⚠️ Estas rotas são da API do SuperAdmin e usam autenticação diferente (token superadmin).
Base URL — SuperAdmin
Section titled “Base URL — SuperAdmin”https://{seu_backend}/v2/api/superadmin/Criar Tenant
Section titled “Criar Tenant”POST /tenantApiStoreTenantBody JSON:
{ "name": "Empresa Cliente", "email": "admin@empresa.com", "password": "senha123", "plan": "basic"}Planos disponíveis: basic, professional, enterprise
Buscar Tenant
Section titled “Buscar Tenant”POST /tenantApiShowTenantBody JSON:
{ "tenantId": 10}Listar Tenants
Section titled “Listar Tenants”GET /tenantApiListTenantsAutenticação SuperAdmin
Section titled “Autenticação SuperAdmin”O token SuperAdmin é diferente do token de tenant. Obtido no painel SuperAdmin.
Authorization: Bearer {superadmin_token}Próximos Passos
Section titled “Próximos Passos”- Automações — Configure chatbots e IAs