Team
The Team API provides CRUD access to team members (staff users).New to the API? Start with Getting started (base URL, response envelope, errors, pagination) and Authentication (API keys).
Identifier note: team members are addressed by their numeric user id.
A team member is a staff user (type='team') with a role (Administrator / Staff). Creating
one provisions a login (a random password is generated) and a personal workspace; the welcome
email is opt-in.
Scope: per-user preferences, avatar upload and role management (a separate concern) are out of API scope. Web events are not fired.
The team member object
| Field | Type | Notes |
|---|---|---|
id | integer | User id. |
first_name / last_name / name | string | |
email | string | Unique across all users. |
role | object | { id, name } (Administrator=1, Staff=3). |
status | string | active / suspended / deleted. |
job_position / phone | string | Optional. |
List / search team members
status, role_id, search, sort (first_name,last_name,email,created),
order, limit, page. Soft-deleted members are excluded by default.
Get a team member
Create a team member
| Parameter | Type | Required | Notes |
|---|---|---|---|
first_name | string | yes | |
last_name | string | yes | |
email | string | yes | Unique across all users. |
role_id | integer | yes | A team role (Administrator=1 / Staff=3). |
phone | string | no | |
position | string | no | |
send_email | string | no | yes to send the welcome email (with login details). Default no. |
201, status active).
Update a team member
| Parameter | Type | Required | Notes |
|---|---|---|---|
first_name / last_name | string | yes | |
email | string | yes | Unique (ignoring this user). |
role_id | integer | no | |
phone / position | string | no | |
password | string | no | New password (min 5), applied if supplied. |
Delete a team member
deleted, login cleared) and removes the member’s project/task/
lead assignments, project-manager rows and calendar events.
Errors
See Getting started. Team-specific:| Status | Meaning |
|---|---|
404 Not Found | The team member id does not exist. |
422 Unprocessable Entity | Validation failed (missing name/email/role, duplicate email, or an invalid role). |