# Team Management

Organize agents into teams for live chat routing. Create teams, assign supervisors, add or remove members, and query team composition. Teams control how incoming conversations are distributed across agents and enable supervisor oversight of agent activity.

 - [POST /pl4chat-service/team/add](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/createteam.md): Create a new team for organizing agents. Specify the team name, supervisor, and client reference.
 - [POST /pl4chat-service/team/update](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/updateteam.md): Update a team's name, supervisor, or other properties.
 - [POST /pl4chat-service/team/remove](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/removeteam.md): Permanently delete a team. Members are unassigned but their user accounts are not affected.
 - [GET /pl4chat-service/team/list/{clientRef}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getteams.md): Retrieve all teams for a client reference.
 - [GET /pl4chat-service/team/{id}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getteambyid.md): Retrieve a single team's details by its UUID.
 - [GET /pl4chat-service/team/members/{teamId}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getteammembers.md): Retrieve all members assigned to a specific team.
 - [GET /pl4chat-service/team/free-members/{clientRef}/{teamId}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getfreemembersforteam.md): List users who are not currently assigned to the specified team. Useful for populating an 'add member' interface.
 - [POST /pl4chat-service/team/add-member](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/addteammember.md): Assign a user to a team.
 - [POST /pl4chat-service/team/remove-member](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/removeteammember.md): Remove a user from a team without deleting their account.
 - [GET /pl4chat-service/team/names/{clientRef}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getteamnames.md): Retrieve a lightweight list of team names for a client. Useful for populating dropdown selectors.
 - [GET /pl4chat-service/team/supervisors/{clientRef}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getsupervisors.md): Retrieve all users with the supervisor role for a client.
 - [GET /pl4chat-service/team/agents/{clientRef}](https://docs.ecommunicate.co.za/apis/omnichannel/team-management/getagents.md): Retrieve all users with the agent role for a client.
