Help centerAPI referenceProjects
Projects
The origin app and ownership verification.
List projects
/projectsdomains:readRequest
curl "https://api.tenanci.com/v2/projects" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 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"
}
]
}Create a project
/projectsdomains:writeA project is your app (the origin). After creating it, publish the ownership.record TXT on the origin's DNS and call verify.
Body
namestringrequiredmax 120Project name.
originUrlstringrequiredmin 3, max 2048App address (e.g. https://app.agendafacil.com).
Request
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"}'Response 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"
}Get a project
/projects/{id}domains:readParameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 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"
}Update a project
/projects/{id}domains:writeParameters
idpath · stringrequiredResource id (prj_…, dom_…)
Body
namestringmax 120originUrlstringmax 2048Changing the origin requires verifying again.
extraOriginsstring[]≤ 50 itensOther hosts the app uses (CDN, API) that the edge may serve under /__external__/.
spaMode"mask" | "redirect"SPA apps: mask (keeps the address) or redirect.
spaInitialRouteVarbooleanSends the initial route to the app when a route is rewritten (Flutter and similar).
blockedPathsstring[]≤ 100 itensPaths blocked on every domain (404).
Request
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"]}'Response 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"
}Delete a project
/projects/{id}domains:writeAlso deletes the project's domains.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X DELETE "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 204
Success
Verify origin ownership
/projects/{id}/verifydomains:writeChecks the TXT record on the origin's DNS. Call again until verified: true.
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/projects/prj_8f3k2m/verify" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"verified": true,
"recordName": "_tenanci-verify.agendafacil.com",
"expected": "q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j",
"found": [
"q3Zt9vXk2LwP8mR4sN7aB1cD5eF6gH0j"
]
}Detect the app's platform
/projects/{id}/platform/detectdomains:writeReads the origin and identifies Bubble, FlutterFlow, WeWeb, Softr, Lovable, Bolt…
Parameters
idpath · stringrequiredResource id (prj_…, dom_…)
Request
curl -X POST "https://api.tenanci.com/v2/projects/prj_8f3k2m/platform/detect" \
-H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"Response 200
{
"platform": "bubble",
"why": "Script do Bubble na página inicial"
}Set the app's platform
/projects/{id}/platformdomains:writeParameters
idpath · stringrequiredResource id (prj_…, dom_…)
Body
platformstringrequiredmax 20bubble, flutterflow, weweb, softr, lovable, bolt, other…
Request
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"}'Response 200
{
"platform": "flutterflow",
"why": null
}
