TenanciTenanci

Help centerProjects, domains & DNS

Projects

Create a project, verify origin ownership with a TXT record, set up SPA mode and extra origins, and delete a project.

A project is one of your apps, served on many domains. It holds the origin (where the app runs today) and everything that applies to all of its domains: customizations, SPA mode, extra origins, integration, status page and customer portal. A SaaS usually has one project; an agency, one per app it delivers.

Create a project

  1. Open Projects and click New project.
  2. In Origin URL, enter the address where the app already works, like https://app.yoursaas.com.
  3. In Project name (optional), give it a name; without one, the project takes the origin's domain.
  4. Click Create project. The dashboard opens the Overview, with the verification card.

The origin must be a public internet address: no IPs, localhost, internal networks or username and password in the URL. If you leave out https://, it's assumed. Only the address (scheme, host and port) is stored; a path such as /app is ignored.

Ownership verification

So that nobody can use Tenanci to clone someone else's site, none of the project's domains go live until you prove the origin is yours. The proof is a TXT record in the DNS of the origin's domain.

  1. On the Overview, find the Ownership verification card (with the Pending badge).
  2. Copy the Name / Host and the Value. The name is always _tenanci-verify. + the origin's domain: for https://app.yoursaas.com, it's _tenanci-verify.yoursaas.com.
  3. At that domain's DNS provider, create a TXT record with that name and value.
  4. Click Verify now.

Once it works, the badge turns into Origin verified and the project becomes Active. If it isn't found yet, the dashboard shows what it did find at that name (no TXT at all, or different values), so you can compare. DNS propagation can take a few minutes; just click again.

If your origin lives on a platform address whose DNS you don't control (such as a *.bubbleapps.io subdomain), there's nowhere to create the TXT. In that case, connect a domain of your own to the app on that platform and use it as the origin, or contact support.

Project status

Status Meaning
Pending verification The origin hasn't been verified yet. Domains don't serve the app.
Active Origin verified. Active domains serve the app.

Project details

In the Project details card, change the Project name and the Origin and click Save. The change goes live on every domain within a few seconds.

Single-page apps (SPA)

For Flutter, React, Vue and similar apps that navigate without reloading the page. In the Single-page app (SPA) card:

  • Navigation mode: Mask (the visitor always sees the customer's domain) or Redirect (routes are redirected with a 302; use it if the app misbehaves in mask mode);
  • Send initial route in a variable: passes the requested route to the app at startup, useful for Flutter Web.

When to use each one is covered in SPA apps.

Extra origins

If the app loads files or data from other hosts of yours, like cdn.yoursaas.com or api.yoursaas.com, add them in the Extra origins card: type the host and click Add. They're then served through the customer's domain (at /__external__/<host>), without exposing the original address. To remove a host, click the × next to it.

Identifiers

The Identifiers card shows the Project ID (with a copy button), used in the API, the SDK and project-restricted keys. Projects carried over from the old dashboard also show the Legacy ID (Bubble), which the API still accepts.

Project tabs

Tab What's there
Overview Verification, project details, SPA, extra origins, identifiers and deletion
Domains The project's domains (Domains)
Customization Routes, headers, scripts and blocked paths that apply to every domain
Status Branded status page
Integration Guide for the app's platform (Integrations)
Customer portal End-customer portal
Gateway & AuthMesh AuthMesh and API Gateway

Delete a project

  1. On the Overview, in the Danger zone card, click Delete project.
  2. Type the project name to confirm and click Delete project.

Through the API

# create (the response includes ownership.record with the TXT to create)
curl -X POST https://api.tenanci.com/v2/projects \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" -H "Content-Type: application/json" \
  -d '{"name":"Real estate","originUrl":"https://app.imovelja.com"}'

# verify the origin
curl -X POST https://api.tenanci.com/v2/projects/prj_8f3k2m/verify -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx"
# → { "verified": true, "recordName": "_tenanci-verify.imovelja.com", "expected": "…", "found": ["…"] }

# extra origins and SPA mode
curl -X PATCH https://api.tenanci.com/v2/projects/prj_8f3k2m \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" -H "Content-Type: application/json" \
  -d '{"extraOrigins":["photos.imovelja.com"],"spaMode":"mask"}'

Operations: GET /projects, POST /projects, GET /projects/:id, PATCH /projects/:id, POST /projects/:id/verify and DELETE /projects/:id.