QuickReply.ai Official Documentation
  • Introduction
    • QuickReply.ai
  • Getting Started
    • Installation
      • Install QuickReply on Shopify Store
  • Drip Campaigns
    • Drip Campaigns by QuickReply.ai
  • Templates Guide
    • Creating a standard template for WhatsApp
    • Creating a carousel template for WhatsApp
  • Broadcasts Guide
    • Creating a Broadcast
    • Creating a Broadcast using Carousel Template
    • Broadcasts Reports
    • Recover failed messages in a WhatsApp broadcast
      • How does Smart Utility Fallback Work?
  • Click-to-WhatsApp Ads
  • Two-Factor Authentication Guide
  • Uninstallation / Migration
    • Migrating from WhatApp Business API to WhatApp Mobile Apps
  • Customer profies
    • Export Customer Profiles
  • API Documentaion
    • Sync Contacts to CRM API
    • WhatsApp Chat API
    • Send Template API
    • Trigger Drip Campaign API
    • External CRM Integration
    • Fetch Campaign Messages Stats
    • Browse Abandoned Recovery Integrations
  • WhatsApp Green Tick
    • How to get a Green Tick on your WhatsApp number
  • Analytics
    • Order and Revenue Attribution
    • Google Analytics Report
  • Miscellaneous
    • Types of WhatsApp Messages
    • Quality Ratings & Messaging Limits
    • FAQs
    • Account health and blocking
    • What formats of media / image / video or audio are supported on WhatsApp Business API?
  • Segments Guide
    • Customer Segments
      • Customer Segment Filters
  • WhatsApp Display Name & WhatsApp Profile
    • WhatsApp Display Name
  • Customizations
    • Notifications
  • How to
    • Subscribe to push notifications on browser
    • Enable/Disable different notifications for agents
    • Unblock notifications permission
    • Install QuickReply on Mobile
  • Miscellaneous
    • QuickReply.ai - Data privacy and security
  • Message Template Guidelines
  • Video Tutorials on WhatsApp for E-commerce
  • Quality Ratings and Messaging Limits of WhatsApp Business API
  • Phone number requirements, Business Profile & Migration
  • Phone number and profile Messaging Limits FAQs
  • How to enable Facebook Business verification option
  • How to get Facebook Business Manager verified
  • Language Supported
  • Trusted Domains
  • Integration
  • Chat Widget
  • Channels
  • Team
  • How to Collect WhatsApp Business Opt-Ins for your Shopify Store?
  • FAQ Training
  • Keyword Training
  • How to export leads captured on chat by QuickReply.ai?
  • Merge Fields for WhatsApp Campaigns
  • How to send WhatsApp message using REST API - QuickReply.ai
  • How to share Facebook Business Manager Access to QuickReply.ai
  • What are the media file size limits and aspect ratio in WhatsApp Business API?
  • FAQ Training
  • How to integrate Razorpay for COD-to-Prepaid WhatsApp Campaigns?
  • How to integrate CashFree for COD-to-Prepaid WhatsApp Campaigns?
  • How to integrate PayU for COD-to-Prepaid WhatsApp Campaigns?
  • INTEGRATION
    • Social
      • Instagram DM & Messenger
        • Link Facebook page to Instagram account
        • Enable "Allow access to messages" for Instagram DM
    • Analytics
      • Meta Pixel
      • Google Analytics 4 (GA4)
    • CRM
      • HubSpot CRM
      • Zoho CRM
      • LeadSquared CRM
      • Salesforce
        • How to Enable WhatsApp Chat in Salesforce
        • How to Automatically Create Leads from New Chats and Get Notifications in Salesforce
    • CDP
      • MoEngage
  • FLASH RESPONSES
    • Flash Responses
    • Create Flash Response
    • Using Flash Response
  • FAQs
    • FAQ list
      • WhatsApp Messenger
        • "This business is now working to manage this chat", what does this mean?
      • Media
        • How can I send images as an album in WhatsApp Business API?
      • Blocking/ Unblocking
        • Can I reject or block incoming messages to my WhatsApp number on QuickReply.ai?
        • How to block an end-user from sending and receiving messages from your WhatsApp number?
        • Can users block or report WhatsApp Business API number?
Powered by GitBook
On this page
  • Syncing a lead to CRM
  • Pre-requisites
  • Creating a new Lead - CRM API
  • Fetching an Existing Lead - CRM API
  • Updating an Existing Lead - CRM API

Was this helpful?

  1. API Documentaion

External CRM Integration

Syncing a lead to CRM

This page introduces the Lead syncing capabilities of QuickReply.ai with integration to External CRMs having open API/ Webhook infrastructure Whether you're looking to sync Leads to the CRM or send messages from QuickReply.ai via Lead updates within the CRM, by leveraging this integration, you ensure that your data is properly synced in both systems with a bi-directional syncing approach to create seamless workflows.

Pre-requisites

  • Active QuickReply.ai account with WhatsApp enabled

  • Active CRM account with Lead Create/ Update/ Fetch API capabilities

Creating a new Lead - CRM API

POST https://yourdomain.com/crm/create

Headers

Name
Type
Description

Auth-Key*

Authorization Header

This is used to authorize the API requests.

Request Body

Name
Type
Description

phone*

string

Phone Number of the user (With Country Code)

name*

string

Full Name of the user

email

string

Email of the user

custom_fields

Key-Value Pairs

Extra Attributes which you want to sync to the CRM, where the key-names are the respective schema field names in the CRM

Fields marked with * are Required.

API Response

{
    "lead_id": "7as65dd87a6sd89079asd7d",
    "status": "Successfully Created"
}
{
    "status": "Creation Failed",
    "reason": "Error message"
}

Sample cURL request

curl --location --request POST 'https://yourdomain.com/crm/create' \
--header 'Auth-Key: Dpg3vnsdjfXwoSGNrT576Sfs7' \
--header 'Content-Type: application/json' \
--data-raw '{
  "phone": "+919634687270",
  "name": "Utkarsh",
  "email": "utkarsh@quickreply.ai",
  "custom_fields": {
    "key1": "value1",
    "key2": "value2",
    "key3": "value3"
  }
}'

Fetching an Existing Lead - CRM API

GET https://yourdomain.com/crm/fetch

Headers

Name
Type
Description

Auth-Key*

Authorization Header

This is used to authorize the API requests.

Request Body

Name
Type
Description

phone*

string

To fetch the Lead data using Phone Number (with country code)

email*

string

To fetch the Lead data using Email

lead_id

string

To fetch the Lead data using Lead ID

Fields marked with * are Required.

API Response

{
  "lead_id": "7as65dd87a6sd89079asd7d",
  "lead_fields": {
    "phone": "+919634687270",
    "name": "Utkarsh",
    "email": "utkarsh@quickreply.ai",
    "custom_fields": {
      "key1": "value1",
      "key2": "value2",
      "key3": "value3"
    }
  }
}
{
    "status": "Not Found",
    "reason": "Error message"
}

Sample cURL Request

curl --location --request GET 'https://yourdomain.com/crm/fetch' \
--header 'Auth-Key: Dpg3vnsdjfXwoSGNrT576Sfs7' \
--header 'Content-Type: application/json' \
--data-raw '{
  "phone": "+919634687270",
  "email": "utkarsh@quickreply.ai",
  "lead_id": "7as65dd87a6sd89079asd7d"
}'

Updating an Existing Lead - CRM API

POST/PUT https://yourdomain.com/crm/update/{{lead_id}}

Headers

Name
Type
Description

Auth-Key*

Authorization Header

This is used to authorize the API requests.

Query Parameters

Name
Type
Description

lead_id*

string

Respective Lead ID in the CRM (The same as returned in response from Fetch Lead API)

Request Body

Name
Type
Description

phone*

string

Phone Number of the user (With Country Code)

name*

string

Full Name of the user

email

string

Email of the user

custom_fields

Key-Value Pairs

Extra Attributes which you want to sync to the CRM, where the key-names are the respective schema field names in the CRM

Fields marked with * are Required.

API Response

{
  "lead_id": "7as65dd87a6sd89079asd7d",
  "status": "Successfully Updated"
}
{
    "status": "Update Failed",
    "reason": "Error message"
}

Sample cURL Request

curl --location --request POST 'https://yourdomain.com/crm/update/7as65dd87a6sd89079asd7d' \
--header 'Auth-Key: Dpg3vnsdjfXwoSGNrT576Sfs7' \
--header 'Content-Type: application/json' \
--data-raw '{
  "phone": "+919634687270",
  "name": "Utkarsh",
  "email": "utkarsh@quickreply.ai",
  "custom_fields": {
    "key1": "value1",
    "key2": "value2",
    "key3": "value3"
  }
}'
PreviousTrigger Drip Campaign APINextFetch Campaign Messages Stats

Last updated 11 months ago

Was this helpful?