Skip to main content

Endpoints and permission

  • GET /v1/tenant/domain-schema: inspect the tenant configuration.
  • PATCH /v1/tenant/domain-schema: select a domain schema.
Both tenant routes require an API key with admin permission. Do not give every chatbot client an admin key to configure a tenant.

Update request

domain_schema accepts "edtech", "support" or null for the General Engine. A schema change affects the tenant, not one user or conversation.
To return to General, send {"domain_schema":null}. This clears Support-specific configuration; inspect the result before sending domain-dependent traffic. Selecting a schema is not a data migration or a guarantee that old conversations have been reprocessed.

Response fields

The standard response envelope contains data, request_id and timestamp. Malformed values return validation errors; unsupported configuration can return 400 TEN_400. A missing tenant returns 404 TEN_404; insufficient permission returns 403 AUTH_403. Do not retry configuration changes automatically after a permission or validation failure. Use domain concepts, the EdTech guide or Support configuration for the corresponding overlay. Your business records remain in your own system.