Send one WhatsApp template or SMS message to a contact. Requires current channel consent and no opt-out; checked again here
POST
/v1/brands/{brand}/channel-sends
const url = 'https://api.replifier.com/v1/brands/example/channel-sends';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"channel":"whatsapp","contactId":"example","connectionId":"example","templateName":"example","languageCode":"example","components":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/brands/example/channel-sends \ --header 'Content-Type: application/json' \ --data '{ "channel": "whatsapp", "contactId": "example", "connectionId": "example", "templateName": "example", "languageCode": "example", "components": [ "example" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Send result
Media typeapplication/json
object
ok
required
boolean
channel
required
string
contactId
required
string
providerMessageId
required
string
error
required
string
Example
{ "channel": "whatsapp"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}