Skip to content

Channel preferences of a contact (current status per number)

GET
/v1/brands/{brand}/contacts/{contact}/channel-preferences
curl --request GET \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/contacts/con_01hx0000000000000000000000/channel-preferences \
--header 'Authorization: Bearer <token>'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
contact
required
string
/^con_[a-z0-9]{26}$/

Example

con_01hx0000000000000000000000

Preferences per channel

Media typeapplication/json
object
data
required
Array<object>
object
channel
required
string
Allowed values: whatsapp sms rcs
phoneE164
required
string
consent
required
string
Allowed values: opt_in opt_out none
consentAt
required
string
nullable
suppressed
required
boolean
suppressedReasons
required
Array<string>
Allowed values: opt_out provider_block invalid_number dnc_registry manual complaint

Example

{
"data": [
{
"channel": "whatsapp",
"consent": "opt_in",
"suppressedReasons": [
"opt_out"
]
}
]
}

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

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