LogoLogo
WebsiteBlog
  • Introduction
  • CDP Overview
  • Identity Resolution
  • CDP Guidelines for Data Sanity and Campaign Governance
  • Login and User Management
    • Login to the platform
    • Change Password / Retrieve your Account
    • Role Based Access Control
      • User Management
      • Roles
    • Single Sign-On (SSO)
  • Events
    • Events Overview
    • App Events
    • Track
    • Identify
    • Page
    • Screen
    • Event Dictionary
  • Sources
    • Sources Overview
    • Android SDK
    • iOS SDK
    • JavaScript SDK
    • React Native SDK
    • Flutter SDK
    • REST API
    • Adobe Analytics Exports
    • SFTP
    • Kafka
    • Offline File Ingestion
  • Destinations
    • Destinations Overview
    • Quora Pixel
    • Hotjar
    • Clevertap
    • Google Analytics 4 (GA4)
    • Meta Pixel
    • Meta Conversion API
    • LinkedIn Insight Tag
    • Adobe Target
    • AppsFlyer
    • AWS S3
    • Criteo
    • Kafka
  • Integrations
    • Rudderstack
    • Azure Blob
    • Adobe Launch Private Extension
    • Adobe Launch Extension
    • Salesforce CRM
    • Microsoft Dynamics 365
  • Customer One View
    • Introduction
    • Basic details, Attributes and Devices
    • Segment and Engagement
    • Activity
  • Segments
    • Getting Started
    • Create a Segment
  • Channels
    • Getting Started
    • A/B Testing
    • SMS
      • Set up an SSP
        • Netcore
        • Twilio
        • Adobe Campaign Classic
        • Gupshup
        • Unifonic
        • Infobip
        • Tubelight
      • Add an SSP
      • Create SMS campaign
      • FAQs
    • Email
      • Set up an ESP
        • SendGrid
        • SendInBlue
        • SparkPost
        • Taximail
        • Netcore
        • Adobe Campaign Classic
        • Mailchimp
        • Oracle Email Delivery
        • Infobip
        • Vision6
      • 🆕Add an ESP
      • Create Email campaign
      • Common use cases with Email Editor
      • Why Email Notification may not get delivered?
      • FAQs
    • App Push Notification
      • Create App Push Notification - Android
      • Create App Push Notification - iOS
      • Why App Push Notification may not get delivered?
      • FAQs
    • WhatsApp
      • Configure a WSP
        • Yellow Messenger
        • Infobip
        • Gupshup
        • BIK.ai
        • Vonage
        • Sinch
        • Tubelight
      • Create WhatsApp campaign
      • FAQs
    • RCS
      • Add an RCS API
      • Example: Netcore RCS API
      • Create an RCS campaign
      • FAQs
    • Web Push Notification
      • Create a Web Push Notification
      • Create a Default Web Push Notification
      • FAQs
    • On-site Notification
      • Create On-site Notifications.
      • Common use cases with On-site Notification.
      • Notification Templates
    • Banner Personalization
      • Create a Personalized Banner
      • Create a Default Banner
    • External API
      • Create Engagement
      • Test your API configuration
      • Example Use Cases of External APIs
        • Use case 1: HubSpot - Create Contacts API
        • Use case 2: Exotel's Make a call API
        • Use case 3: Mailmodo's Send Campaign Email API
  • Ramanujan AI
    • Lead scoring
    • Channel Orchestration
    • Content Generator
      • Generate Web Push Content
  • Journey Builder
    • Overview- Journey Builder
    • View all Journeys
    • Create a Journey
    • Journey Reports
    • FAQs
  • Audience Export
    • Facebook Export Channel
    • Google Ads Export Channel
  • Analytics
    • Dashboard
      • Guiding through the Dashboard
      • Unique Profile
      • Profile and Merge Trends
      • Campaign and Revenue Dashboard
    • Campaign Summary
    • Events Occurrence
    • Event Telemetry
    • App Installs and Uninstalls
    • Funnels
    • Paths
    • Traffic Analysis
    • Cohorts
    • Data sanity between Funnels, Paths and Events
    • FAQs
  • Developer APIs
    • User Profile API
    • WhatsApp Opt-in/Opt-out API
    • Subscription Management
  • Settings
    • Product Label
    • Frequency Caps
    • Contacts
Powered by GitBook
On this page
  • Overview
  • Making a Request
  • Endpoint
  • Query Params
  • Sample Request
  1. Developer APIs

WhatsApp Opt-in/Opt-out API

This page talks about WhatsApp opt-in/opt-out API

PreviousUser Profile APINextSubscription Management

Last updated 11 months ago

Overview

Use Lemnisk WhatsApp opt-in/opt-out API to update the opt-in and opt-out status of your users. It is mandatory to receive user consent before you can reach out to your users via WhatsApp. With Lemnisk, you can reach out to your customers via with any of the .

Lemnisk internally maintains user opt-ins and opt-outs to show user reachability and track opt-ins and opt-outs on a daily/weekly/monthly basis. Lemnisk will only reach out to users via WhatsApp if the user is marked as opt-in in the user profile stored at Lemnisk CDP.

Making a Request

Endpoint

India (MU)

https://mu-pl.lemnisk.co/analyze/whatsapp

HTTP Specification:

GET /analyze/whatsapp HTTP/1.1
Host: mu-pl.lemnisk.co

Other region

https://us-pl.lemnisk.co/analyze/whatsapp

HTTP Specification:

GET /analyze/whatsapp HTTP/1.1
Host: us-pl.lemnisk.co

Query Params

A sample payload is given below:

https://mu-pl.lemnisk.co/analyze/whatsapp?cid={cid}&phone={phone}&status={status}&cb={cookie}

The parameter definition for the above fields is provided below:

Parameter

Description

cid

Account ID. Please contact your account manager to retrieve your account ID.

phone

The phone number that you want to mark as opt-in. Should be in E.164 format.

status

"OP" for opt-in and "OO" for opt-out (without quotes)

cb

User cookie. Required if the consent is directly being received via online activity so that profile merge can happen.

Sample Request

Opt-in a user:

curl --location --request GET 'https://mu-pl.lemnisk.co/analyze/whatsapp?cid=4812&phone=9185xxxxxxxx&status=OP&cb=viz_641d71936c1b5' \

Opt-out a user:

curl --location --request GET 'https://mu-pl.lemnisk.co/analyze/whatsapp?cid=4812&phone=9185xxxxxxxx&status=OO&cb=viz_641d71936c1b5' \
WhatsApp
WSPs