Skip to main content
POST
/
v1
/
whatsapp
/
groups
/
{groupId}
/
messages
cURL
curl --request POST \
  --url https://api.buildwithchirp.com/v1/whatsapp/groups/{groupId}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "text",
  "text": {
    "body": "Hello group!"
  },
  "image": {
    "id": "<string>",
    "caption": "<string>"
  },
  "video": {
    "id": "<string>",
    "caption": "<string>"
  },
  "audio": {
    "id": "<string>"
  },
  "document": {
    "id": "<string>",
    "filename": "<string>",
    "caption": "<string>"
  }
}
'
{
  "messageId": "<string>"
}

Authorizations

Authorization
string
header
required

App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations

Path Parameters

groupId
string
required

WhatsApp Group ID

Example:

"grp_wa_2DbBs7GWhGvVNJGrDXr5RG0"

Body

application/json
type
enum<string>
required

Message type

Available options:
text,
image,
video,
audio,
document
Example:

"text"

text
object
image
object
video
object
audio
object
document
object

Response

Message sent

messageId
string
required