cURL
curl --request POST \ --url https://api.buildwithchirp.com/v1/whatsapp/groups/{groupId}/messages/pin \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "messageId": "wamid.xxx", "expirationDays": 7 } '
{ "success": true }
Pin a message in a WhatsApp group
App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations
WhatsApp Group ID
"grp_wa_2DbBs7GWhGvVNJGrDXr5RG0"
Meta message ID to pin
"wamid.xxx"
Number of days before the pin expires (1-30, default: 7)
1 <= x <= 30
7
Message pinned
true
false