Pular para o conteúdo principal
POST
/
chat
/
pin
Fixar/desafixar chat
curl --request POST \
  --url https://api.wppfy.com/chat/pin \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '
{
  "number": "5511999999999",
  "pin": true
}
'
{
  "response": "Chat pinned"
}

Autorizações

token
string
header
obrigatório

Corpo

application/json
number
string
obrigatório

Número do chat no formato internacional completo (ex: "5511999999999") ou ID do grupo (ex: "123456789-123456@g.us")

Exemplo:

"5511999999999"

pin
boolean
obrigatório

Define se o chat deve ser fixado (true) ou desafixado (false)

Exemplo:

true

Resposta

Chat fixado/desafixado com sucesso

response
string

Mensagem de confirmação

Exemplo:

"Chat pinned"