Prerequisites
- A platform API key. Splendor enrolls your account as a platform and issues your first key; after that you manage your own keys (rotate and revoke) under
/v1/platform/keys. Treat the key like a password — it can provision and read every tenant you own.
Steps
Create a tenant for a customer
The tenant id is generated by Splendor. Pass an optional The response includes the generated
external_id to map it to your own customer id (unique within your platform), so you can find it again idempotently.tenant_id (e.g. t-3f9c2a1b...). Store it against your customer record.Serve data in the tenant
Use the same platform key plus the child’s The key reaches only the tenants you created. Naming a tenant you do not own returns
tenant_id in the X-Splendor-Tenant-Id header to act inside that tenant — create sources, ingest, and search, exactly as a normal tenant would.403.List and look up your tenants
tenant_id, your external_id, and the tenant’s plan.Tear a tenant down
When a customer leaves, delete their tenant. This enqueues a managed deletion job that purges the tenant’s indexed documents, semantic vectors, and staged uploads, then removes the tenant itself. It cannot be undone.The call returns
202 with a deletion job. Confirm completion by fetching the tenant — once teardown finishes it returns 404.Rotating a key
Mint a new key, deploy it, then revoke the old one — no downtime:If creating a tenant returns a
tenant_id, a search against it returns results, and a delete returns 202, your platform integration works end to end.Related
Build a platform
Why a customer is a tenant and a content type is a dataset.
Authentication
Tokens, the tenant header, and roles.