Skip to main content
POST
/
api
/
{session}
/
chats
/
{chatId}
/
messages
/
{messageId}
/
pin
Pin a message in conversation
curl --request POST \
  --url https://{host}/api/{session}/chats/{chatId}/messages/{messageId}/pin \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "duration": 86400
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.wappfy.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Description

⚠️ This endpoint is not yet implemented. This endpoint will allow pinning specific messages at the top of a chat, highlighting them for all participants.

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

chatId
string
required

Conversation ID

messageId
string
required

Body

application/json
duration
number
required

Duration in seconds. 24 hours (86400), 7 days (604800), 30 days

Example:

86400

Response

201 - undefined