orvachat

Chats

Pin Message

POST/api/v1/chat/pin

Pin or unpin a message in a chat (DurationSeconds: 86400, 604800 or 2592000).

Parameters

  • ChatstringRequired

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

  • SenderstringRequired

    Who sent the message.

  • IdstringRequired

    The message id.

  • DurationSecondsintegerRequired

    How long to pin it: 86400 (24 hours), 604800 (7 days) or 2592000 (30 days).

  • PinbooleanRequired

    true to pin, false to unpin.

Code Examples

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