orvachat

Chats

Pin Chat

POST/api/v1/chat/pinchat

Pin or unpin a chat at the top of the chat list.

Parameters

  • ChatstringRequired

    The chat id: a person (…@s.whatsapp.net or …@lid) or a group (…@g.us).

  • PinbooleanRequired

    true to pin the chat, false to unpin.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/chat/pinchat" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "Chat": "[email protected]",
  "Pin": true
}'