Subscribe to a newsletter or push channel
POST /cms/channel/{channel_id}/subscribe
POST
/cms/channel/{channel_id}/subscribe
Subscribe an customer to a newsletter or push channel. If the user is logged in (Token is sent), the email parameter is ignored, and no activation email is sent. For push channels, the push subscription details must be provided.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” channel_id
required
integer
Request Body required
Section titled “Request Body required ” One of:
object
email
Email address to subscribe. If the user is logged in, this parameter is ignored.
string
sendActivation
Set to true to send activation email. Otherwise, the user is activated immediately. If the user is logged in, this parameter is ignored.
boolean
last_login_country
string
object
pushSignature
Push subscription URL or token
string
clientVersion
Client application version
string
clientOS
Client operating system
string
clientOSVersion
Client operating system version
string
userAgent
User agent string
string
deviceId
Device identifier that you can uniquely generate or use from the user devices
string
Responses
Section titled “ Responses ”Subscription result
object
error
boolean