Reekolect.ai Help Docs
  • 🏠Introduction
  • πŸ“’Reekolect Resource Center
    • πŸƒβ€β™‚οΈHow Reekolect works?
      • πŸ“–Starting with Reekolect
      • πŸ“–Bot Management
        • πŸ“–Create new Bot
          • πŸ“–Website, Live chat or Landing Page Bots
          • πŸ“–WhatsApp Bot Creation with Manual Onboarding
            • βœ…Prerequisites for WhatsApp Bots
            • πŸ”€Create a Meta App
            • βœ”οΈRegister & Verify your WhatsApp Number
            • πŸ”—Subscribe WA webhook with Reekolect
            • πŸ’³Update WA account Payment Method
            • πŸ¦Έβ€β™€οΈAssign System User to WhatsApp Account
            • πŸ“ƒGetting all the necessary details from Meta Developer Dashboard
          • πŸ“–Instagram Bot Creation
          • πŸ“–Facebook Bot Creation
          • πŸ“–Make Your Telegram Chatbot
          • πŸ“–Microsoft Teams Bot
        • πŸ“–Edit Your Chat Flow
          • πŸ“–Creating Multiple Flows
          • πŸ“–Components In Chatflow
            • πŸ“–Request Information
            • πŸ“–Send Information
            • πŸ“–Trigger Actions
        • πŸ“–Pre-Built Chatbot Templates
        • πŸ“–Train Your AI Chatbot
          • πŸ“–Train your AI chatbot using websites
          • πŸ“–Train your AI chatbot by uploading files.
          • πŸ“–Train your AI chatbot using Google Sheets.
          • πŸ“–Train your AI chatbot using frequently asked questions (FAQs).
          • πŸ“–Train your bot using the conversation history.
          • πŸ“–Train your AI chatbot using other sources.
        • πŸ“–Bot Settings
          • πŸ“–Website Bot settings
            • πŸ“–Design
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–Triggers
            • πŸ“–User Access
            • πŸ“–Chat Window
            • πŸ“–AI Settings
            • πŸ“–Transfer Chat to WhatsApp Fucntionality
          • πŸ“–WhatsApp chatbot Settings
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–WhatsApp Profile
            • πŸ“–AI Settings
          • πŸ“–Telegram Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
          • πŸ“–Instagram Bot Settings
          • πŸ“–Facebook Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
        • πŸ“–Marketing Automation
          • πŸ“–WhatsApp Template Setup
          • πŸ“–WhatsApp Catalog Setup
          • πŸ“–Broadcasts on WhatsApp, Telegram & Facebook
          • πŸ“–Drip Campaigns on WhatsApp, Telegram & Facebook
        • πŸ“–Install your Website Chatbot
        • πŸ“–Widget
        • πŸ“–Email Validation
        • πŸ“–Customizing your Landing Page Bot
        • πŸ“–Customize Chat Window
        • πŸ“–AI Settings
        • πŸ“–3rd Party Apps Integrations
          • Agile CRM integration with Reekolect
          • Apptivo CRM integration with Reekolect
          • Autopilot CRM integration with Reekolect
          • Bitrix24 CRM Integration with Reekolect
          • CalendarHero integration with Reekolect
          • Capsule CRM integration with Reekolect
          • Chakra CRM integration with Reekolect
          • Close CRM integration with Reekolect
          • Copper CRM integration with Reekolect
          • Drip CRM integration with Reekolect
          • EngageBay CRM integration with Reekolect
          • Drip CRM integration with Reekolect
          • ExtraaEdge integration with Reekolect
          • FirstPromoter integration with Reekolect
          • Flowlu integration with Reekolect
          • Freshworks CRM integration with Reekolect
          • Freshdesk CRM integration with Reekolect
          • Frontapp integration with Reekolect
          • GetResponse integration with Reekolect
          • Go High Level Integration with Reekolect
          • Google Analytics integration with Reekolect
          • Google Calendar Integration with Reekolect
          • Google Contacts Integration with Reekolect
          • Google Tasks integration with Reekolect
          • Groove CRM integration with Reekolect
          • Google Sheets integration with Reekolect
          • Helpcrunch CRM integration with Reekolect
          • HelpShift integration with Reekolect
          • Hubspot CRM integration with Reekolect
          • Infobip CRM integration with Reekolect
          • Jira CRM integration with Reekolect
          • Insightly CRM integration with Reekolect
          • MoEngage CRM integration with Reekolect
          • NetHunt integration with Reekolect
          • Nimble CRM integration with Reekolect
          • Nutshell CRM integration with Reekolect
          • Onpipeline integration with Reekolect
          • Nocrm integration with Reekolect
          • Pipedrive CRM integration with Reekolect
          • Salesflare CRM integration with Reekolect
          • SendInBlue integration with Reekolect
          • Shipway Integration with Reekolect
          • Wealthbox CRM integration with Reekolect
          • SupportBee CRM integration with Reekolect
          • Zendesk CRM integration with Reekolect
          • Zoho CRM integration with Reekolect
          • Zoho Desk integration with Reekolect
          • Zoho Projects integration with Reekolect
      • πŸ“–Inbox
        • πŸ“–Managing Contacts, Chats & Conversation
        • πŸ“–Chat Windows
        • πŸ“–Orders
        • πŸ“–Contracts
        • πŸ“–Real-time Interactions
        • πŸ“–Creating Groups
      • πŸ“–Analytics
      • πŸ“–Teams
        • πŸ“–Departments
        • πŸ“–Business Hours
        • πŸ“–Team
        • πŸ“–Using Teams in Chatflows
      • πŸ“–Subscriptions
      • πŸ“–My Account
        • πŸ“–Configure Custom Attribute
        • πŸ“–Configure Tags
        • πŸ“–Configure Chat Status
      • πŸ“–Notifications
    • ❓Frequently asked questions (FAQs)
      • Onboarding FAQs
      • Bot Installation FAQs
      • Inbox FAQs
      • Profile, Team & Notifications FAQs
      • Analytics FAQs
      • Chat Flow FAQs
      • Bot Settings FAQs
      • WhatsApp FAQs
      • Subscription FAQs
      • ChatGPT FAQs
    • πŸ› οΈCommon Errors & Troubleshooting
  • πŸ“–Product Guides & Training
    • πŸ‘©β€πŸ’»WhatsApp Cloud API by Meta
      • βš™οΈSetting Up Your Facebook Business Manager
      • πŸ’°Meta Conversation Pricing for WhatsApp Cloud API
      • πŸ‘§Update WhatsApp Bot Profile
      • βœ…Getting a green tick on WhatsApp
    • βš™οΈWhatsApp Bot Creation with Automated onboarding
    • πŸ’‘Must know-how of Reekolect
      • πŸ”€Manage & Use Custom Attributes
      • πŸ–₯️Call external APIs in your chat flows
      • πŸ‘¨β€πŸ’ΌManging team roles & Users
      • πŸ“¨Send WhatsApp notifications using the Reekolect APIs
  • πŸ› οΈAPI References
    • πŸ“„Contacts & Chats APIs
      • Get All Contacts
      • Getting Groups/Segments
      • Add WhatsApp Contact
      • Delete WhatsApp Contact
      • Website Contacts & Meta Data
    • πŸ“„WhatsApp Cloud API
      • GET Templates List
      • POST WhatsApp Template Message
      • POST Send Message API
Powered by GitBook
On this page
  • Get the essentials first!
  • API References
  • Create a lead in the Reekolect
  • API to update a chat/lead data
  • Get leads listing and Its meta data
  • API to get listing of chats/leads
  • Got any questions?
Export as PDF
  1. API References
  2. Contacts & Chats APIs

Website Contacts & Meta Data

This section contains the Leads and Chat API references

PreviousDelete WhatsApp ContactNextWhatsApp Cloud API

Last updated 3 months ago

Get the essentials first!

To use the Reekolect APIs, You need to insure that you have following details with you.

A. UUID - You can get the UUID from the local web session storage as show in the image below:

How to get the UUDI

B. Bot ID & User ID: One can get the Bot ID and User ID from your Bot Script or Bot page URL. Below is the sample Example.

For Chatbot page URL

// Chatbot Page URL Structure

https://page.Reekolect.online/BotId/CustomerId

// The first value after .com is the BotId and second value is the CustomerId.

For Chatbot Script

// Chatbot Script Structure

<script id="Reekolect-messenger-widget" src="https://cdn.Reekolect.online/Reekolect.js" defer>BotId,CustomerId</script>

// The first value after defer> is the BotId & second value is the CustomerId.

C. Auth Token: We haven't automated everything yet. Please contact our support team to get the same.

Now you are ready to run the POC

API References

Please use the below APIs in order to play with your leads and chat data.

Create a lead in the Reekolect

As soon as any user opens up the Bot, It creates one UUId; pass the same along with the other required details to create and update the lead's details.

API to update a chat/lead data

PUT https://api.v7.express-chat.ai/inbox/direct/lead

As soon as any user opens up the Bot, It creates one UUId; pass the same along with the other required details to create and update the lead's details.

Headers

Name
Type
Description

x-bp-token*

String

API Token

Request Body

Name
Type
Description

uuid*

String

Unique ID of a chat user

botId*

String

Unique ID of the bot

customerId*

String

Unique ID of the customer account

agentId

Boolean

Unique ID of the agent assigned

status

String

Valid status for the chat. Available values: 'OPEN', 'INPROGRESS', 'REVIEW', 'ONHOLD', 'DEPENDANCY', 'CLOSED'

picture

String

A valid image HTTP URL

name

String

Name of the lead

email

String

Email of the lead

phone

String

Phone number of the lead

dialCode

String

Dial Code including "+" sign

notes

Array<{title: string, description: string}>

Additional notes for the chat

tags

Array<String>

Additional tags for the chat

attributes

Array<{key: string, value: string}>

Custom attributes for the chat

{
    "success": true,
    "message": "ok",
    "code": 200
}
{
    // Response
}
{
    // Response
}

Get leads listing and Its meta data

To get the listing of the leads and its meta data, Hit the below API with mandatory details.

API to get listing of chats/leads

GET https://api.v7.express-chat.ai/inbox/direct/chats

To get the listing of the leads and its meta data, Hit the below API with mandatory details.

Query Parameters

Name
Type
Description

botId*

String

Unique ID of the bot

customerId*

String

Unique ID of the customer account

page*

String

Page number

type*

String

"lead" to fetch only leads

"non-lead" to fetch non lead chats

Headers

Name
Type
Description

x-bot-token*

String

API Token

{
    "success": true,
    "message": "ok",
    "data": [
        {
            "_id": "63d9ffa77a8d152facbe2f2f",
            "uuid": "7e88d192-9b20-4035-9b68-d4ac3d58a34f",
            "createdAt": "2023-02-01T05:59:03.533Z",
            "isOnline": false,
            "lastMessage": {
                "at": "2023-02-01T06:00:20.000Z",
                "by": "bot",
                "text": "Welcome to Reekolect. I am here to help you."
            },
            "lastSeenAt": "2023-02-01T06:00:21.000Z",
            "profile": {
                "notes": [
                    {
                        "title": "Sample title",
                        "description": "Sample description",
                        "_id": "63db5c4abcbc3be2e95b20ae"
                    }
                ],
                "userDetails": {
                    "name": "Sample name",
                    "picture": "my-picture",
                    "contact": {
                        "email": "Sample email",
                        "phone": {
                            "number": "Sample number",
                            "prefix": "91"
                        }
                    },
                    "city": "Sample city",
                    "country": "Sample country",
                    "gender": "MALE",
                    "tags": [
                        "Sample tag"
                    ],
                    "attributes": [
                        {
                            "key": "ID",
                            "value": "BP001"
                        }
                    ]
                }
            },
            "status": "INPROGRESS",
            "updatedAt": "2023-02-02T06:46:34.119Z",
            "websiteVisits": 1,
            "_agentAssigned": "631aa793bcfa100487d13d0d"
        }
    ],
    "code": 200
}
{
    // Response
}
{
    // Response
}

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at production@Reekolect.co.za

Got any questions?

πŸ› οΈ
πŸ“„
❓