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.
Platform key
Section titled “Platform key”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.
Create a tenant
Section titled “Create a tenant”POST /v1/tenantsX-API-Key: uav_platform...
{ "name": "Skyline Aerial", "external_id": "acct_4821",}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.
Manage tenants
Section titled “Manage tenants”| 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. |
When a customer turns AI on
Section titled “When a customer turns AI on”A typical flow when a customer enables AI in your product:
- Your backend calls
POST /v1/tenantswith the customer’s account ID. - You store the returned chat key against that account.
- Your MCP Gateway is given that customer’s API token so the crew can read their data.
- Chat calls for that customer use their chat key.
When they turn AI off, call DELETE /v1/tenants/{tenant_id}.
