Central de ajudaReferência da APIProjetos
Projetos
O app de origem e a verificação de propriedade.
Listar projetos
/projectsdomains:readRequisição
curl "https://api.tenanci.com/v2/projects" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Resposta 200
{
"items": [
{
"id": "prj_8f3k2m",
"name": "Barbearias",
"originUrl": "https://app.agendafacil.com",
"extraOrigins": [],
"status": "active",
"ownership": {
"verified": true,
"verifiedAt": "2026-10-01T14:03:11.000Z",
"record": {
"type": "TXT",
"name": "_tenanci-verify.agendafacil.com",
"value": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
}
},
"spa": {
"mode": "mask",
"initialRouteVar": false
},
"blockedPaths": [],
"tenantSecret": true,
"tailorkitViewerHost": null,
"platform": "bubble",
"legacyId": null,
"createdAt": "2026-10-01T13:58:40.000Z",
"updatedAt": "2026-10-01T14:03:11.000Z"
}
]
}Criar projeto
/projectsdomains:writeUm projeto é o seu app (a origem). Depois de criar, publique o TXT de ownership.record no DNS da origem e chame a verificação.
Corpo
namestringobrigatóriomax 120Nome do projeto.
originUrlstringobrigatóriomin 3, max 2048Endereço do app (ex.: https://app.agendafacil.com).
Requisição
curl -X POST "https://api.tenanci.com/v2/projects" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"name":"Barbearias","originUrl":"https://app.agendafacil.com"}'Resposta 201
{
"id": "prj_8f3k2m",
"name": "Barbearias",
"originUrl": "https://app.agendafacil.com",
"extraOrigins": [],
"status": "pending_verification",
"ownership": {
"verified": false,
"verifiedAt": null,
"record": {
"type": "TXT",
"name": "_tenanci-verify.agendafacil.com",
"value": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
}
},
"spa": {
"mode": "mask",
"initialRouteVar": false
},
"blockedPaths": [],
"tenantSecret": true,
"tailorkitViewerHost": null,
"platform": "bubble",
"legacyId": null,
"createdAt": "2026-10-01T13:58:40.000Z",
"updatedAt": "2026-10-01T14:03:11.000Z"
}Ver projeto
/projects/{id}domains:readParâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Requisição
curl "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Resposta 200
{
"id": "prj_8f3k2m",
"name": "Barbearias",
"originUrl": "https://app.agendafacil.com",
"extraOrigins": [],
"status": "active",
"ownership": {
"verified": true,
"verifiedAt": "2026-10-01T14:03:11.000Z",
"record": {
"type": "TXT",
"name": "_tenanci-verify.agendafacil.com",
"value": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
}
},
"spa": {
"mode": "mask",
"initialRouteVar": false
},
"blockedPaths": [],
"tenantSecret": true,
"tailorkitViewerHost": null,
"platform": "bubble",
"legacyId": null,
"createdAt": "2026-10-01T13:58:40.000Z",
"updatedAt": "2026-10-01T14:03:11.000Z"
}Alterar projeto
/projects/{id}domains:writeParâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Corpo
namestringmax 120originUrlstringmax 2048Trocar a origem exige verificar de novo.
extraOriginsstring[]≤ 50 itensOutros hosts que o app usa (CDN, API) e que o edge pode servir em /__external__/.
spaMode"mask" | "redirect"Apps SPA: mask (mantém o endereço) ou redirect.
spaInitialRouteVarbooleanEnvia a rota inicial ao app quando uma rota é reescrita (Flutter e afins).
blockedPathsstring[]≤ 100 itensCaminhos bloqueados em todos os domínios (404).
Requisição
curl -X PATCH "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"blockedPaths":["/admin","/wp-login.php"]}'Resposta 200
{
"id": "prj_8f3k2m",
"name": "Barbearias",
"originUrl": "https://app.agendafacil.com",
"extraOrigins": [],
"status": "active",
"ownership": {
"verified": true,
"verifiedAt": "2026-10-01T14:03:11.000Z",
"record": {
"type": "TXT",
"name": "_tenanci-verify.agendafacil.com",
"value": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
}
},
"spa": {
"mode": "mask",
"initialRouteVar": false
},
"blockedPaths": [],
"tenantSecret": true,
"tailorkitViewerHost": null,
"platform": "bubble",
"legacyId": null,
"createdAt": "2026-10-01T13:58:40.000Z",
"updatedAt": "2026-10-01T14:03:11.000Z"
}Apagar projeto
/projects/{id}domains:writeApaga também os domínios do projeto.
Parâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Requisição
curl -X DELETE "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Resposta 204
Sucesso
Verificar a propriedade da origem
/projects/{id}/verifydomains:writeConfere o TXT no DNS da origem. Pode chamar de novo até dar verified: true.
Parâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Requisição
curl -X POST "https://api.tenanci.com/v2/projects/prj_8f3k2m/verify" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Resposta 200
{
"verified": true,
"recordName": "_tenanci-verify.agendafacil.com",
"expected": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j",
"found": [
"q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
]
}Detectar a plataforma do app
/projects/{id}/platform/detectdomains:writeLê a origem e identifica Bubble, FlutterFlow, WeWeb, Softr, Lovable, Bolt…
Parâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Requisição
curl -X POST "https://api.tenanci.com/v2/projects/prj_8f3k2m/platform/detect" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Resposta 200
{
"platform": "bubble",
"why": "Script do Bubble na página inicial"
}Escolher a plataforma do app
/projects/{id}/platformdomains:writeParâmetros
idpath · stringobrigatórioId do recurso (prj_…, dom_…)
Corpo
platformstringobrigatóriomax 20bubble, flutterflow, weweb, softr, lovable, bolt, other…
Requisição
curl -X PUT "https://api.tenanci.com/v2/projects/prj_8f3k2m/platform" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"platform":"flutterflow"}'Resposta 200
{
"platform": "flutterflow",
"why": null
}
