> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatsyncs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscriber Assign Labels

> Assign one or more labels to a subscriber via the ChatSyncs API, using comma-separated label IDs. Use when a developer asks how to tag/segment subscribers programmatically.

Assigns one or more labels to a subscriber.

<Tip>
  **Where to find a label's ID:** open **Subscriber Manager → Manage → Manage Labels** — the ID
  is shown next to each label name, ready to copy. Or call
  [Label List](/developer-api/label/list-labels) to fetch all of them at once. See
  [Finding Your IDs & API Token](/developer-api/finding-ids#label-id-label_id) for a screenshot.
</Tip>


## OpenAPI

````yaml POST /whatsapp/subscriber/chat/assign-labels
openapi: 3.1.0
info:
  title: ChatSyncs Developer API
  version: 1.0.0
  description: >-
    REST API for sending WhatsApp messages and managing subscribers through
    ChatSyncs.
servers:
  - url: https://platform.chatsyncs.com/api/v1
security: []
paths:
  /whatsapp/subscriber/chat/assign-labels:
    post:
      tags:
        - Subscriber API
      summary: Assign Labels
      operationId: assignLabels
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                apiToken:
                  type: string
                  description: >-
                    Your ChatSyncs API key (not a WhatsApp/Meta access token).
                    [Where to find
                    it](/developer-api/finding-ids#api-token-apitoken).
                  example: API-KEY
                phone_number_id:
                  type: string
                  description: >-
                    The WhatsApp account's phone number ID. [Where to find
                    it](/developer-api/finding-ids#phone-number-id-phone_number_id).
                  example: PHONE-NUMBER-ID
                phone_number:
                  type: string
                  description: >-
                    The subscriber's phone number, with country code, digits
                    only.
                  example: PHONE-NUMBER
                label_ids:
                  type: string
                  description: >-
                    Comma-separated label IDs, e.g. 1,4,5. [Where to find
                    it](/developer-api/finding-ids#label-id-label_id).
                  example: 1,4,5
              required:
                - apiToken
                - phone_number_id
                - phone_number
                - label_ids
      responses:
        '200':
          description: >-
            Standard ChatSyncs response. `status` is `"1"` on success and `"0"`
            on failure.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: '`"1"` = success, `"0"` = failure.'
                  message:
                    type: string
                    description: Human-readable result message.
              examples:
                success:
                  summary: Success
                  value:
                    status: '1'
                    message: Success.
                error:
                  summary: Error
                  value:
                    status: '0'
                    message: Invalid request.

````