TenanciTenanci

Help centerAPI referenceProjects

Projects

The origin app and ownership verification.

List projects

GET/projectsdomains:read

Request

cURL
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

POST/projectsdomains:write

A project is your app (the origin). After creating it, publish the ownership.record TXT on the origin's DNS and call verify.

Body

  • namestringrequiredmax 120

    Project name.

  • originUrlstringrequiredmin 3, max 2048

    App address (e.g. https://app.agendafacil.com).

Request

cURL
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

GET/projects/{id}domains:read

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

PATCH/projects/{id}domains:write

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Body

  • namestringmax 120
  • originUrlstringmax 2048

    Changing the origin requires verifying again.

  • extraOriginsstring[]≤ 50 itens

    Other hosts the app uses (CDN, API) that the edge may serve under /__external__/.

  • spaMode"mask" | "redirect"

    SPA apps: mask (keeps the address) or redirect.

  • spaInitialRouteVarboolean

    Sends the initial route to the app when a route is rewritten (Flutter and similar).

  • blockedPathsstring[]≤ 100 itens

    Paths blocked on every domain (404).

Request

cURL
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

DELETE/projects/{id}domains:write

Also deletes the project's domains.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
curl -X DELETE "https://api.tenanci.com/v2/projects/prj_8f3k2m" \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"

Response 204

Success

Verify origin ownership

POST/projects/{id}/verifydomains:write

Checks the TXT record on the origin's DNS. Call again until verified: true.

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

POST/projects/{id}/platform/detectdomains:write

Reads the origin and identifies Bubble, FlutterFlow, WeWeb, Softr, Lovable, Bolt…

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Request

cURL
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

PUT/projects/{id}/platformdomains:write

Parameters

  • idpath · stringrequired

    Resource id (prj_…, dom_…)

Body

  • platformstringrequiredmax 20

    bubble, flutterflow, weweb, softr, lovable, bolt, other…

Request

cURL
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
}