Skip to content

Platform tenants

If your software serves many drone operators, create one tenant per customer account. Each tenant gets its own chat key, so conversations and data stay separate.

Tenant calls use a platform key with the tenants:read and tenants:write scopes. Generate one on your MCP connection in the dashboard (MCP connections → your connection → Platform key). It is shown once.

POST /v1/tenants
X-API-Key: uav_platform...
{
"name": "Skyline Aerial",
"external_id": "acct_4821",
"contact_email": "[email protected]"
}

external_id is your ID for the account. You send it back as tenant_id on every chat message.

The response includes api_key, the tenant’s chat key. It is returned only once. Store it encrypted, next to the customer account it belongs to.

Creating a tenant with an external_id you deactivated earlier reactivates it.

Call Use it to
GET /v1/tenants List your tenants
GET /v1/tenants/{tenant_id} Read one tenant
PATCH /v1/tenants/{tenant_id} Change name, contact_email or status
DELETE /v1/tenants/{tenant_id} Deactivate a tenant and stop its key
POST /v1/tenants/{tenant_id}/rotate-key Issue a new chat key. The old key stops working at once.

A typical flow when a customer enables AI in your product:

  1. Your backend calls POST /v1/tenants with the customer’s account ID.
  2. You store the returned chat key against that account.
  3. Your MCP Gateway is given that customer’s API token so the crew can read their data.
  4. Chat calls for that customer use their chat key.

When they turn AI off, call DELETE /v1/tenants/{tenant_id}.