---
title: "Assign team member to chat"
method: POST
path: "/team-member/assign"
tags: ["Team Member"]
---

# Assign team member to chat

`POST /team-member/assign`

Assign a team member to an individual customer chat or a WA group chat. Provide either customerPhoneNumber (for individual chats) or groupId. Exactly one of the two must be supplied.

## Request body

- AssignTeamMemberChatDto
  - `customerPhoneNumber` string, phone — Phone number of customer (required if groupId is not provided)
  - `groupId` string — GroupId of the WA group (required if customerPhoneNumber is not provided)
  - `assignedUserPhoneNumber` string, phone, required — Phone number of the agent to assign
  - `reassign` boolean — Boolean to assign user even if chat is already assigned
  - `wabaNumber` string, phone — Integration Waba Number with country code (only applicable when customerPhoneNumber is used)

## Response `201`

## Other responses

- `400` — Incorrect payload
- `401` — Unauthorized
- `422` — User is not a member of the team

---

[API](https://skmtc.net/doubletick/apis/doubletick-public-apis.md) · [All operations](https://skmtc.net/doubletick/apis/doubletick-public-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/doubletick/doubletick-public-apis/versions/bba484527d34/schema)
