Skip to main content
POST
Pin or unpin a chat

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

chat_jid
string
required

Chat JID (e.g., phone@s.whatsapp.net for individual or groupid@g.us for group)

Body

application/json
pinned
boolean
required

Whether to pin (true) or unpin (false) the chat

Example:

true

Response

OK

code
string
Example:

"SUCCESS"

message
string
Example:

"Chat pinned successfully"

results
object