Skip to content

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
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" ] }'
brand
required
string
/^brd_[a-z0-9]{26}$/
Media typeapplication/json
One of:
object
channel
required
string
Allowed values: whatsapp
contactId
required
string
/^con_[a-z0-9]{26}$/
connectionId
string
templateName
required
string
>= 1 characters <= 512 characters
languageCode
required
string
>= 2 characters <= 10 characters
components
Array
<= 20 items

Send result

Media typeapplication/json
object
ok
required
boolean
channel
required
string
Allowed values: whatsapp sms
contactId
required
string
providerMessageId
required
string
nullable
error
required
string
nullable

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"
}
}