---
updatedAt: 2026-10-30T08:42:32.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Assigns a contact to teams

Supply 1–100 nonblank team names, not team IDs. This replaces the complete team set on the contact, updates related conversations and can affect their assignees; it is not an incremental add. Adopt this V3 behavior rather than relying on legacy channel-aware team filtering.

Assigns a contact to teams. PUT /api/ext/v3/contacts/teams.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `contactsv3:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

### Plan availability

Commercial plan policy: this operation is included in Growth, Pro and Business. Authentication, roles, scopes and workspace/channel requirements still apply. See [Endpoint availability by plan](https://docs.wati.io/reference/endpoint-availability-by-plan).

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Contacts",
      "description": "Create, list, update, and look up contacts across channels."
    }
  ],
  "paths": {
    "/api/ext/v3/contacts/teams": {
      "put": {
        "tags": [
          "Contacts"
        ],
        "summary": "Assigns a contact to teams",
        "operationId": "Contacts_AssignTeamToContact",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignContactToTeamsRequest"
              },
              "example": {
                "target": "1415552671",
                "teams": [
                  "Billing",
                  "Support"
                ]
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignContactToTeamsRequest"
              },
              "example": {
                "target": "1415552671",
                "teams": [
                  "Billing",
                  "Support"
                ]
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignContactToTeamsRequest"
              },
              "example": {
                "target": "1415552671",
                "teams": [
                  "Billing",
                  "Support"
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AssignContactToTeamsRequest"
              },
              "example": {
                "target": "1415552671",
                "teams": [
                  "Billing",
                  "Support"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the assign result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssignContactToTeamsResponse"
                },
                "example": {
                  "result": true
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "The request is unauthorized."
          },
          "403": {
            "description": "The request is forbidden. Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenRequestResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Either the rate limit has been exceeded or usage limits have been reached."
          },
          "500": {
            "description": "Unexpected error occurred. Please try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnexpectedErrorResponse"
                }
              }
            }
          }
        },
        "description": "Supply 1–100 nonblank team names, not team IDs. This replaces the complete team set on the contact, updates related conversations and can affect their assignees; it is not an incremental add. Adopt this V3 behavior rather than relying on legacy channel-aware team filtering.\n\nAssigns a contact to teams. PUT /api/ext/v3/contacts/teams.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `contactsv3:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.\n\n### Plan availability\n\nCommercial plan policy: this operation is included in Growth, Pro and Business. Authentication, roles, scopes and workspace/channel requirements still apply. See [Endpoint availability by plan](https://docs.wati.io/reference/endpoint-availability-by-plan).",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "contactsv3:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssignContactToTeamsRequest": {
        "required": [
          "target",
          "teams"
        ],
        "type": "object",
        "properties": {
          "target": {
            "type": "string",
            "description": "The target contact in the following formats:\n*   **`ContactId`**: The unique ID of a contact.\n*   **`PhoneNumber`**: The contact's phone number (e.g., `14155552671`).\n*   **`Channel:PhoneNumber`**: A combination of the channel (name or phone number) and the recipient's phone number (e.g., `MyChannel:1415552671`, `123456789:1415552671`)."
          },
          "teams": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": ".*\\S.*"
            },
            "description": "List of teams to assign.",
            "minItems": 1,
            "maxItems": 100
          }
        },
        "additionalProperties": false,
        "description": "Request model for assigning a contact to teams."
      },
      "AssignContactToTeamsResponse": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean",
            "description": "Result of the team assignment operation."
          }
        },
        "additionalProperties": false,
        "description": "Response model for assigning a contact to teams."
      },
      "ForbiddenRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a forbidden request, containing error details."
      },
      "InvalidRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a bad request, containing error details."
      },
      "UnexpectedErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents an unexpected error."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```