EleAPI's Resource center
  • 🏠Introduction
  • πŸ“’eleapi Resource Center
    • πŸƒβ€β™‚οΈHow eleapi works?
      • πŸ“–Starting with eleapi
      • πŸ“–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 eleapi
            • πŸ’³Update WA account Payment Method
            • πŸ¦Έβ€β™€οΈAssign System User to WhatsApp Account
            • πŸ“ƒGetting all the necessary details from Meta Developer Dashboard
          • πŸ“–Make Your Telegram Chatbot
        • πŸ“–Edit Your Chat Flow
        • πŸ“–Train Your AI Chatbot
          • πŸ“–Train your AI eleapi using websites
          • πŸ“–Train your AI eleapi by uploading files.
          • πŸ“–Train your AI eleapi using frequently asked questions (FAQs).
          • πŸ“–Train your bot using the conversation history.
          • πŸ“–Train your AI eleapi using other sources.
        • πŸ“–Bot Settings
          • πŸ“–Website Bot settings
            • πŸ“–Design
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–Triggers
            • πŸ“–User Access
            • πŸ“–Chat Window
            • πŸ“–AI Settings
          • πŸ“–WhatsApp eleapi Settings
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–AI Settings
          • πŸ“–Telegram Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
          • πŸ“–Facebook Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
        • πŸ“–Marketing Automation
          • πŸ“–Broadcasts on WhatsApp, Telegram & Facebook
          • πŸ“–Drip Campaigns on WhatsApp, Telegram & Facebook
        • πŸ“–Install your Website Chatbot
          • Install Website Bot on WordPress
        • πŸ“–3rd Party Apps Integrations
          • Agile CRM integration with eleapi
          • Apptivo CRM integration with eleapi
          • Autopilot CRM integration with eleapi
          • Bitrix24 CRM Integration with eleapi
          • CalendarHero integration with eleapi
          • Capsule CRM integration with eleapi
          • Chakra CRM integration with eleapi
          • Close CRM integration with eleapi
          • Copper CRM integration with eleapi
          • Drip CRM integration with eleapi
          • EngageBay CRM integration with eleapi
          • Drip CRM integration with eleapi
          • ExtraaEdge integration with eleapi
          • FirstPromoter integration with eleapi
          • Flowlu integration with eleapi
          • Freshworks CRM integration with eleapi
          • Freshdesk CRM integration with eleapi
          • Frontapp integration with eleapi
          • GetResponse integration with eleapi
          • Go High Level Integration with eleapi
          • Google Analytics integration with eleapi
          • Google Calendar Integration with eleapi
          • Google Contacts Integration with eleapi
          • Google Tasks integration with eleapi
          • Groove CRM integration with eleapi
          • Google Sheets integration with eleapi
          • Helpcrunch CRM integration with eleapi
          • HelpShift integration with eleapi
          • Hubspot CRM integration with eleapi
          • Infobip CRM integration with eleapi
          • Jira CRM integration with eleapi
          • Insightly CRM integration with eleapi
          • MoEngage CRM integration with eleapi
          • NetHunt integration with eleapi
          • Nimble CRM integration with eleapi
          • Nutshell CRM integration with eleapi
          • Onpipeline integration with eleapi
          • Nocrm integration with eleapi
          • Pipedrive CRM integration with eleapi
          • Salesflare CRM integration with eleapi
          • SendInBlue integration with eleapi
          • Shipway Integration with eleapi
          • Wealthbox CRM integration with eleapi
          • SupportBee CRM integration with eleapi
          • Zendesk CRM integration with eleapi
          • Zoho CRM integration with eleapi
          • Zoho Desk integration with eleapi
          • Zoho Projects integration with eleapi
      • πŸ“–Inbox
        • πŸ“–Managing Contacts, Chats & Conversation
        • πŸ“–Creating Groups
      • πŸ“–Teams
      • πŸ“–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 eleapi
      • πŸ”€Manage & Use Custom Attributes
      • πŸ–₯️Call external APIs in your chat flows
      • πŸ‘¨β€πŸ’ΌManging team roles & Users
      • πŸ“¨Send WhatsApp notifications using the eleapi 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 eleapi
  • API to update a chat/lead data
  • Get leads listing and Its meta data
  • API to get listing of chats/leads
  • Got any questions?
  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 7 months ago

Get the essentials first!

To use the eleapi 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.eleapi.io/BotId/CustomerId

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

For Chatbot Script

// Chatbot Script Structure

<script id="eleapi-messenger-widget" src="https://cdn.eleapi.io/eleapi.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 eleapi

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 eleapi. 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 enquiries@eleapi.io

Got any questions?

πŸ› οΈ
πŸ“„
❓