Send message

Send one message (service message or template message) via platform for Meta Graph API

POSThttps://web.otpcod.ru/api/v1/meta/{api_version}/{business_phone_number_id}/messages
Loading code example
Loading code example

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <credentials>, where <credentials> is the Base64 encoding of username and password joined by a colon.

Path Parameters

api_versionstringrequired

API version

business_phone_number_idstringrequired

Business phone number ID

Body

Request body

interactiveany

Совпадает с форматом Meta (используются только кнопки)

messaging_productstring
recipient_typestring
templateany

Совпадает с форматом Meta

textobject
text.bodystring
text.preview_urlboolean
tostring
typestring

Response

application/json

Accepted

contactsobject
contacts.inputstring
contacts.wa_idstring
messagesarray<object>
messages.idstring
messaging_productstring