Chat with us, powered by LiveChat
Skip to main content

Developer API - Teams

Introduction

The WorkComposer Teams API allows you to manage team structures within your organization. Use these endpoints to create, retrieve, update, and delete teams, as well as manage team memberships.

Teams are a powerful way to organize users in WorkComposer, enabling you to assign tasks and projects to groups rather than individuals. This API is particularly useful for synchronizing team structures with your HR systems, automating team creation, and maintaining consistent team assignments across your organization.

Retrieve Teams

This endpoint returns a list of all teams in your workspace or details about a specific team if a team ID is provided. The response includes basic team information such as ID and name.

API Endpoint

POSThttps://api.workcomposer.com/v1/team/

Parameters

ParameterRequiredDescription
apiKey Required Your unique API Key
teamId Optional Filter by specific Team ID
limit Optional Maximum number of results (default: 100)
offset Optional Number of results to skip for pagination

Response Example

{
  "status": 1,
  "teams": [
    {
      "id": "673e023101ca9fffc0221bd6",
      "name": "Sales and Marketing Team"
    },
    {
      "id": "672b9e79be5907f92431b6c0",
      "name": "Development Team"
    },
    {
      "id": "66ba3dfb288f16f18d7786a0",
      "name": "QA Team"
    }
  ]
}

        

Create Team

This endpoint allows you to create a new team in your workspace. You can specify the team name and optionally add members during creation.

API Endpoint

POSThttps://api.workcomposer.com/v1/team/create/

Parameters

ParameterRequiredDescription
apiKey Required Your unique API Key
name Required Team name
members[] Optional Array of user IDs to add to the team

Response Example

{
  "status": 1,
  "teamId": "673e023101ca9fffc0221bd6"
}

        

Update Team

This endpoint allows you to update an existing team's details, including its name and member list. You only need to include the fields you want to update.

API Endpoint

POSThttps://api.workcomposer.com/v1/team/update/

Parameters

ParameterRequiredDescription
apiKey Required Your unique API Key
teamId Required ID of the team to update
name Optional Team name
members[] Optional Array of user IDs to set as team members (replaces existing)
addMembers[] Optional Array of user IDs to add to the team (keeps existing)
removeMembers[] Optional Array of user IDs to remove from the team

Response Example

{
  "status": 1
}

        

Delete Team

This endpoint allows you to permanently delete a team from your workspace. Use with caution as this action cannot be undone. Note that deleting a team does not delete the users who were members of the team.

API Endpoint

POSThttps://api.workcomposer.com/v1/team/delete/

Parameters

ParameterRequiredDescription
apiKey Required Your unique API Key
teamId Required ID of the team to delete

Response Example

{
  "status": 1
}

        

Best Practices

Create logical team structures: Design team hierarchies that reflect your organizational structure for easier management and reporting.

Use incremental updates: When modifying team membership, use the addMembers[] and removeMembers[] parameters instead of replacing the entire member list to avoid accidental removals.

Maintain team ID references: Store team IDs in your system for easy reference when assigning projects or tasks to teams through the API.

Need Help?

If you have questions about using the Teams API or need assistance with implementing these endpoints in your application, our developer support team is available to help.

Contact Developer Support