curl -X GET 'https://api.example.com/tenants?status=active' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
]
List tenants with optional filters
curl -X GET 'https://api.example.com/tenants?status=active' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
]
active, suspended, pending, deletedstandard, enterprise, trialcurl -X GET 'https://api.example.com/tenants?status=active' \
-H 'Authorization: Bearer YOUR_TOKEN'
[
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_acme",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
]
Was this page helpful?