POST /functions/v1/api with resource: "teams".
Access control
Access varies by action. Team owners and internal admins have full access to all actions. Team members have read-only access to
get and members. Any authenticated user can create a team.| Action | Any user | Team member | Team owner | Admin |
|---|---|---|---|---|
get | No | Yes (read-only) | Yes | Yes |
create | Yes | — | — | Yes |
update | No | No | Yes | Yes |
delete | No | No | Yes | Yes |
members | No | Yes | Yes | Yes |
invite | No | No | Yes | Yes |
invitations | No | No | Yes | Yes |
cancel-invite | No | No | Yes | Yes |
remove-member | No | No | Yes | Yes |
Team management workflow
Create a team
Use the
create action to set up a new team. The authenticated user automatically becomes the team owner.Invite members
Use the
invite action to send invitations by email. Track pending invitations with the invitations action.Members accept
Invited users accept the invitation to join the team. Their profile is updated with the
team_id.Get a team
Retrieves a specific team by ID with all team members.Must be
"teams"Must be
"get"The team ID.
Response
Create a team
Creates a new team. The authenticated user automatically becomes the team owner.Must be
"teams"Must be
"create"Response (status 201)
Update a team
Updates team settings such as name, brand, and branding.Must be
"teams"Must be
"update"The team ID.
Response
Delete a team
Permanently deletes a team and removes all members.Must be
"teams"Must be
"delete"The team ID.
Response
List team members
Retrieves all members of a team.Must be
"teams"Must be
"members"The team ID.
Response
Invite a member
Sends a team invitation to an email address.Must be
"teams"Must be
"invite"The team ID.
Response (status 201)
List pending invitations
Retrieves all pending invitations for a team.Must be
"teams"Must be
"invitations"The team ID.
Response
Cancel an invitation
Cancels a pending team invitation.Must be
"teams"Must be
"cancel-invite"The invitation UUID.
Response
Remove a member
Removes a member from a team.Must be
"teams"Must be
"remove-member"The team ID.
Response
Error responses
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | Missing or invalid required parameters |
| 401 | UNAUTHORIZED | No valid authentication token |
| 403 | FORBIDDEN | User lacks permission for the operation |
| 404 | NOT_FOUND | Team or resource not found |
| 500 | INTERNAL_ERROR | Server error during processing |

