Skip to main content
POST
/
chat
/
labels
curl --request POST \
  --url https://api.wppfy.com/chat/labels \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '
{
  "number": "5511999999999",
  "labelids": [
    "10",
    "20",
    "30"
  ]
}
'
{
"response": "Labels updated successfully",
"editions": [
"Added label 10 to chat",
"Added label 20 to chat",
"Removed label 5 from chat"
]
}

Authorizations

token
string
header
required

Body

application/json
  • Option 1
  • Option 2
  • Option 3
number
string
required

Número do chat ou grupo

Example:

"5511999999999"

labelids
string[]
required

Lista de IDs das labels a serem aplicadas ao chat (define todas as labels)

Example:
["10", "20"]
add_labelid
string

ID da label a ser adicionada ao chat

Example:

"10"

remove_labelid
string

ID da label a ser removida do chat

Example:

"20"

Response

Labels atualizadas com sucesso

response
string

Mensagem de confirmação

editions
string[]

Lista de operações realizadas (apenas para operação labelids)