curl -X POST 'https://api.example.com/tenants' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Acme Corp",
"kind": "standard",
"slug": "acme-corp",
"planKey": "pro",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10
}'
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
Create a new tenant
curl -X POST 'https://api.example.com/tenants' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Acme Corp",
"kind": "standard",
"slug": "acme-corp",
"planKey": "pro",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10
}'
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
tenant_{uuidv7}standard, enterprise, trialfree, pro, enterprise)curl -X POST 'https://api.example.com/tenants' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Acme Corp",
"kind": "standard",
"slug": "acme-corp",
"planKey": "pro",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10
}'
{
"id": "tenant_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"name": "Acme Corp",
"kind": "standard",
"scopeId": "scope_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5c",
"slug": "acme-corp",
"planKey": "pro",
"status": "active",
"billingEmail": "billing@acme.com",
"maxUsers": 50,
"maxWorkspaces": 10,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
Was this page helpful?