Messaging
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET |
Create messaging preferences add opt out
Manually add a recipient to the opt-out list for a specific category or all marketing messages.
Required API key scopes
hog_flow:writeRequest parameters
- identifierstring
- category_keystring
Response
Example request
POST /api /projects /:project_id /messaging_preferences /add_opt_outExample response
Status 201
RESPONSE
Create messaging preferences bulk add opt outs
Opt every recipient in the list out of the category named on their entry, or a default category.
Required API key scopes
hog_flow:writeRequest parameters
- opt_outsarray
- category_keystring
Response
Example request
POST /api /projects /:project_id /messaging_preferences /bulk_add_opt_outsExample response
Status 200
RESPONSE
Status 404
RESPONSE
Retrieve messaging preferences export opt outs csv
Stream the opt-out list for a category as a CSV file that can be re-imported as-is.
Required API key scopes
hog_flow:readQuery parameters
- category_keystring
Example request
GET /api /projects /:project_id /messaging_preferences /export_opt_outs_csvExample response
Status 200
Status 404
RESPONSE
Create messaging preferences generate link
Generate an unsubscribe link for the current user's email address
Request parameters
- recipientstring
Response
Example request
POST /api /projects /:project_id /messaging_preferences /generate_linkExample response
Status 200
RESPONSE
Retrieve messaging preferences opt outs
Get opt-outs filtered by category or overall opt-outs if no category specified
Required API key scopes
hog_flow:readQuery parameters
- category_keystring
- pageinteger
- page_sizeinteger
Response
Example request
GET /api /projects /:project_id /messaging_preferences /opt_outsExample response
Status 200
RESPONSE
Status 404
RESPONSE
Create messaging preferences remove opt out
Opt a recipient back in to a specific category, or to all marketing messages.
Required API key scopes
hog_flow:writeRequest parameters
- identifierstring
- category_keystring
Response
Example request
POST /api /projects /:project_id /messaging_preferences /remove_opt_outExample response
Status 201
RESPONSE
Retrieve messaging preferences webhook url
Return the webhook URL for Customer.io integration setup.
Response
Example request
GET /api /projects /:project_id /messaging_preferences /webhook_urlExample response
Status 200
RESPONSE