v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
community

[BETA] send community announcement

Post an announcement to a Community. Supports text (message), URL-based media (mediaUrl), and broadcast targeting. target='general' (default) posts only to the default announcement subgroup which reaches every community member and returns the message result synchronously. target='all' broadcasts sequentially to every linked subgroup and is ALWAYS dispatched asynchronously — the response contains a reference you can poll via GET /instances/{id}/request/{reference} instead of the message payload. If both message and mediaUrl are provided without mediaCaption, message is used as the media caption. Note: This endpoint is currently in beta and may change without notice.

post/instances/{id}/client/action/send-community-announcement

Path parameters

idinteger required

Instance ID

Request body

communityIdstring required
target'general' | 'all'
messagestring
mediaUrlstring
mediaCaptionstring
mediaNamestring
previewLinkboolean
asStickerboolean
asVoiceboolean
asDocumentboolean

Example request

{
  "communityId": "12345678901234@g.us",
  "target": "general",
  "message": "Big news from the team!",
  "mediaUrl": "https://example.com/image.png",
  "mediaCaption": "Our new product",
  "mediaName": "product.png",
  "previewLink": true
}

Response

status'success' | 'error'
dataobject

Example response

{
  "status": "success"
}