Skip to content

Consent review before sending a WhatsApp or SMS message to a contact

GET
/v1/brands/{brand}/channel-sends/check
curl --request GET \
--url 'https://api.replifier.com/v1/brands/example/channel-sends/check?channel=whatsapp&contactId=example'
brand
required
string
/^brd_[a-z0-9]{26}$/
channel
required
string
Allowed values: whatsapp sms
contactId
required
string
/^con_[a-z0-9]{26}$/

Consent review

Media typeapplication/json
object
channel
required
string
Allowed values: whatsapp sms
contactId
required
string
contactName
required
string
nullable
phoneMasked
required
string
nullable
consent
required
string
Allowed values: granted missing suppressed no_phone

Example

{
"channel": "whatsapp",
"consent": "granted"
}

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

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