Skip to main content
GET
Get Sub Tenant Ids

When to use it

  • Audit – confirm which sub-tenants exist for compliance or usage reporting
  • Bulk operations – iterate over sub-tenants to apply the same operation to each
  • Dynamic UI – populate dropdowns or selectors in admin dashboards
A sub-tenant appears in this list only if it currently has indexed data (knowledge or memories).

Endpoint

  • Auth: Bearer token
  • Idempotency: Read-only
  • Async: No

Example

Query parameters

Response

Errors

Common codes: 400 INVALID_PARAMETERS, 404 TENANT_NOT_FOUND. See Error Responses for the full list. Read more: Essentials → Multi-Tenant Support

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

tenant_id
string
required

Unique identifier for the tenant/organization

Example:

"tenant_1234"

Response

Successful Response

Response for listing unique sub-tenant IDs in a tenant (from Milvus).

sub_tenant_ids
string[]

Unique sub-tenant IDs that have indexed data in the tenant's collections

Example:
message
string
default:Successfully retrieved sub-tenant IDs

Summary message