Skip to main content
POST
Send Poll / Vote

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
phone
string
required

The WhatsApp phone number to send the poll to, including the '@s.whatsapp.net' suffix.

Example:

"6289685024421@s.whatsapp.net"

question
string
required

The question for the poll.

Example:

"Siapa Nama Avatar The Last Air Bender?"

options
string[]
required

The options for the poll.

Example:
max_answer
integer
required

The maximum number of answers allowed for the poll.

Example:

2

duration
integer

Disappearing message duration in seconds (optional)

Example:

3600

Response

OK

code
string
Example:

"SUCCESS"

message
string
Example:

"Success"

results
object