Skip to main content
POST
/
api
/
pub
/
wa
/
send
/
snippet
Send a Snippet Message
curl --request POST \
  --url https://app.adsera.in/api/pub/wa/send/snippet \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-api-secret: <api-key>' \
  --data '
{
  "snippet": "60c72b2f9b1d8e001f8a1b2e",
  "whatsapp": "60c72b2f9b1d8e001f8a1b2c",
  "phone": "+911234567890",
  "vars": {
    "name": "John Doe"
  }
}
'

Authorizations

x-api-key
string
header
required

Your application's unique ID.

x-api-secret
string
header
required

Your application's secret key.

Body

application/json

Snippet message payload

snippet
string
required

The _id of the Snippet to send.

Example:

"60c72b2f9b1d8e001f8a1b2e"

whatsapp
string
required

The _id of the WhatsApp account to send from.

Example:

"60c72b2f9b1d8e001f8a1b2c"

phone
string
required

The recipient's phone number in E.164 format.

Example:

"+911234567890"

vars
object

Variables for the snippet.

Example:
{ "name": "John Doe" }

Response

Message successfully queued.