Skip to main content
POST

Authorizations

token
string
header
required

Body

application/json
id
string
required

Full ID returned by the API or just the messageid

Example:

"3A12345678901234567890123456789012"

pin
boolean
default:true

Defines whether the message should be pinned (true) or unpinned (false)

Example:

true

duration
integer
default:30

Pin duration in days. Accepted values: 1, 7 or 30. Any other value falls back to 30.

Example:

7

Response

Pin/unpin message action sent successfully

id
string

Unique ID of the message generated for the pin/unpin event

Example:

"5511999999999:3A12345678901234567890123456789012"

messageid
string

WhatsApp message ID of the event

Example:

"3A12345678901234567890123456789012"

chatid
string

Chat where the action occurred

Example:

"120363123456789012@g.us"

sender
string

JID of the action sender

Example:

"5511999999999@s.whatsapp.net"

senderName
string

Instance profile name

Example:

"My Instance"

isGroup
boolean

Indicates whether the chat is a group

Example:

true

fromMe
boolean

Indicates whether the action was sent by the instance itself

Example:

true

content
object

Internal payload of PinInChatMessage

messageType
string

Type of the returned message

Example:

"PinInChatMessage"

source
string

Estimated message source

Example:

"web"

messageTimestamp
integer

Message timestamp in milliseconds

Example:

1704067200000

status
string

Current action status

Example:

"Pending"

text
string

Friendly text derived from the action

Example:

"Pinned message"

quoted
string

ID of the quoted message, when applicable

Example:

""

edited
string

ID of the edited message, when applicable

Example:

""

reaction
string

Reaction emoji, when applicable

Example:

""

convertOptions
string

Options converted for interactive messages, when applicable

Example:

""

owner
string

Instance owner

Example:

"5511999999999"

targetMessageID
string

ID of the target message that was pinned or unpinned

Example:

"3EB0538DA65A59F6D8A251"

pinned
boolean

Final status requested for the target message

Example:

true