Skip to content

Record a channel suppression manually

POST
/v1/brands/{brand}/channel-suppressions
curl --request POST \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/channel-suppressions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "phoneE164": "example", "channel": "whatsapp", "reason": "opt_out", "source": "keyword", "keyword": "example" }'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
Media typeapplication/json
object
phoneE164
required
string
>= 7 characters <= 16 characters /^\+[1-9]\d+$/
channel
required
string
Allowed values: whatsapp sms rcs
reason
required
string
Allowed values: opt_out provider_block invalid_number dnc_registry manual complaint
source
required
string
Allowed values: keyword preference_center api panel provider import
keyword
string
nullable <= 50 characters

Suppression recorded

Media typeapplication/json
object
id
required
string
brandId
required
string
phoneE164
required
string
channel
required
string
Allowed values: whatsapp sms rcs
reason
required
string
Allowed values: opt_out provider_block invalid_number dnc_registry manual complaint
source
required
string
Allowed values: keyword preference_center api panel provider import
keyword
required
string
nullable
createdAt
required
string

Example

{
"channel": "whatsapp",
"reason": "opt_out",
"source": "keyword"
}

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