| Property | Value |
|---|---|
| Auth | Required |
| Required plan | Business or Enterprise |
| Idempotent | No (creates a new team on every call) |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | Trimmed. Empty strings rejected. |
Response
201 Created
Errors
| Status | Code | When |
|---|---|---|
| 400 | name is required | Body missing or empty name. |
| 401 | AUTH_REQUIRED | No session. |
| 403 | FEATURE_GATED | Caller is on Free or Pro. Move up to Business. |
| 500 | INTERNAL_ERROR | Write failed. |
Side effects
- Audit log entry:
team_created. - PQL event:
team_invite_sentwithaction: team_created. - Caller’s membership row inserted with
role: admin,status: accepted.