notifications

Send Email Cta Click Notification

Send Slack notification when user clicks a CTA in an email.

Requires authentication. User info and credits balance are extracted from the database. Tracks which email type and CTA button triggered the click.

Valid email_type values:

  • welcome: Welcome email after first ad campaign
  • one_week_checkin: One week check-in email
  • low_credits: Low credits warning email
  • out_of_credits: Out of credits alert email

Valid cta_type values:

  • login: Login button
  • dashboard: Dashboard/See Ads button
  • buy_credits: Buy/Get Credits button
  • campaign_studio: Ad Studio/Create Ads button
post/api/v1/notifications/email-cta-click

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/notifications/email-cta-click
  • Auth: HTTP bearer

Request body

email_typestring required

Email type: welcome, one_week_checkin, low_credits, out_of_credits

cta_typestring required

CTA type: login, dashboard, buy_credits, campaign_studio

Response

Successful Response

successboolean required

Whether notification was sent successfully

messagestring required

Status message

Changes

No recorded changes to this operation across all 1 revision of this API.