Skip to main content
POST
Required token scopes: Manage all chats Using set overrides any existing labels on the chat and replaces them with the new list you provide. Passing "set": [] clears all labels from the chat.

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

פרמטרי נתיב

chatId
string
נדרש

The unique identifier of the chat. You can obtain this value by using the Search Chats endpoint with the contact's phone number

גוף

application/json
add
string[]
נדרש

Label IDs to add to the chat. Every ID must exist (unknown IDs return 400)

Minimum array length: 1
remove
string[]

Label IDs to remove from the chat. Strict: every listed label must currently be applied to the chat, otherwise 400 (not an idempotent no-op)

Minimum array length: 1
set
string[]

Label IDs that replace all existing labels. Every ID must exist (unknown IDs return 400). May be empty to clear all labels

תגובה

Labels updated. Body is the plain text OK