Send message

Send one message via platform

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

Body

Request body

channelany
clientInfostring
contactstring
isOtpboolean
payloadobject
senderIdstring
successOn"sent" | "delivered" | "seen"
Allowed values: "sent" | "delivered" | "seen"
Default: "sent"
templateobject
timeoutinteger
Required range: x <= 259200
Default: 1200
ttlinteger
webhookstring

Response

application/json

Accepted

dataobject
data.channelany
data.messageIdstring
data.transactionIdstring
errorboolean