Skip to main content
POST
Send a message

Authorizations

Authorization
string
header
required

Polymorfa organization key (pmfa_ prefix) or project token (pmfa_pt_ prefix). Client tokens are not accepted by Graph operations.

Path Parameters

version
string
required

Specifies version for this path parameter.

Example:

"v21.0"

phoneNumberId
string
required

Identifier for the phone number.

Example:

"123456789012345"

Body

application/json
messaging_product
string
required

Messaging product associated with this Graph API object.

Example:

"whatsapp"

recipient_type
string

Category assigned to recipient.

to
string

Specifies to for this graph graph send message request.

Example:

"15551234567"

type
enum<string>

Type discriminator for this object.

Allowed values

Available options:
text,
image,
video,
document,
audio,
sticker,
location,
contacts,
reaction,
interactive,
template
text
object

Text content carried by this object.

image
object

Image attached to or representing this resource.

video
object

Structured video values for this graph graph send message request.

document
object

Structured document values for this graph graph send message request.

audio
object

Structured audio values for this graph graph send message request.

sticker
object

Structured sticker values for this graph graph send message request.

location
object

Structured location values for this graph graph send message request.

contacts
null[]

Contact cards to send in this message.

Accepted alternatives

reaction
object

Reaction applied to the referenced message.

interactive
any | null

Specifies interactive for this graph graph send message request.

Accepted alternatives

template
any | null

Specifies template for this graph graph send message request.

Accepted alternatives

context
object

Structured context values for this graph graph send message request.

status
string

Message delivery status to report to WhatsApp.

Example:

"read"

message_id
string

Identifier for the message.

typing_indicator
any | null

Specifies typing indicator for this graph graph send message request.

Accepted alternatives

Response

Message sent, or status update accepted

messaging_product
string
required

Messaging product associated with this Graph API object.

Example:

"whatsapp"

contacts
object[]
required

Contacts returned or affected by this operation.

messages
object[]
required

Messages associated with this graph graph send message response.