Send omnimessages

Send fallback of messages via platform

POSThttps://web.otpcod.ru/api/v1/omnimessages
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.

Body

Request body

contactstring
cooldowninteger
Required range: x <= 86400
isOtpboolean
messagesarray<object>
messages.channelany
messages.clientInfostring
messages.contactstring
messages.payloadobject
messages.senderIdstring
messages.successOn"sent" | "delivered" | "seen"
Allowed values: "sent" | "delivered" | "seen"
Default: "sent"
messages.templateobject
messages.timeoutinteger
Required range: x <= 259200
Default: 1200
messages.ttlinteger
webhookstring

Response

application/json

Accepted

dataobject
data.messagesarray<object>
data.omniTransactionIdstring
data.timestampstring
errorboolean