Two-step workflow to add a member:You cannot add a user directly by email. The intended flow is:
- Use
POST /projects/:projectId/team/findto search for a user by their email address. The response returns the user’s_id. - Use
POST /projects/:projectId/teamwith that_idto add them to the project.
List team members
GET /projects/:projectId/team
Returns all current members of the project team.
Auth required: Yes
Path parameters
The project ID.
Response
Returns an array ofTeamMember objects.
User ID.
Full name of the team member.
Email address of the team member.
Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
403 | You are not a member of this project. |
404 | Project not found. |
Add a team member
POST /projects/:projectId/team
Adds an existing Babel user to the project team by their user ID. Use POST /team/find first to look up the user’s ID from their email.
Auth required: Yes
Path parameters
The project ID.
Request body
The user ID to add to the team.
Response
Returns a confirmation message and the updated team array.Example request
Example response
Errors
| Status | Description |
|---|---|
400 | User not found or already a member. |
401 | Missing or invalid token. |
403 | Only the project manager can add team members. |
404 | Project not found. |
Remove a team member
DELETE /projects/:projectId/team/:userId
Removes a user from the project team. The project manager cannot be removed.
Auth required: Yes
Path parameters
The project ID.
The user ID to remove from the team.
Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
403 | Only the project manager can remove team members. |
404 | Project or team member not found. |
Find a user by email
POST /projects/:projectId/team/find
Searches for a registered Babel user by their exact email address. Returns the user’s ID and confirmation status so you can decide whether to add them.
Auth required: Yes
Path parameters
The project ID.
Request body
Exact email address to search for.
Response
User ID. Pass this to
POST /team to add them to the project.Full name of the user.
Email address of the user.
Whether the user has confirmed their email address. Unconfirmed users cannot access projects.
Example request
Example response
Errors
| Status | Description |
|---|---|
400 | No user found with that email address. |
401 | Missing or invalid token. |
403 | You are not a member of this project. |
404 | Project not found. |
Search team members
GET /projects/:projectId/team/search
Searches the existing project team by name or email. Useful for autocomplete fields when assigning or mentioning team members.
Auth required: Yes
Path parameters
The project ID.
Query parameters
Search query matched against team member names and email addresses.
Response
Returns an array of matchingTeamMember objects.
Example request
Example response
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token. |
403 | You are not a member of this project. |
404 | Project not found. |
