external_ref, and use that id in
every later call.
Create a tenant
The answer is 201 with the tenant.
external_ref that exists answers 200 with that tenant. It switches an offboarded tenant
back on. The body is not checked against a create in that case.
Credit cap
monthly_credit_cap stops the tenant’s agents from using more credits than you allow in a month. Change it with
PATCH. 0 removes the cap.
List and read
GET /api/v1/partner/tenants/ lists your tenants, 100 to a page. Use q to find a name or an external_ref, and
status=active to leave out offboarded tenants. The answer has results, page, page_size, total and has_more.
GET /api/v1/partner/tenants/{external_ref}/ reads one tenant.
Change a tenant
name, monthly_credit_cap, is_active and plan. Send only the fields that change.
Offboard a tenant
DELETE /api/v1/partner/tenants/{external_ref}/ offboards the tenant. Its status becomes offboarded. Nothing is
deleted. Send PATCH with is_active set to true to switch it on again.
Scope
Every tenant route needs thetenants:write scope, also the routes that read.
Channels, conversations and templates
Use the sameexternal_ref for the other routes of a tenant:
channels, conversations and templates.