Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home

What are the requirements for APIs used on Haptik?

Written by Soham Amburle

Updated on November 26th, 2021

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • Developer Guides
    Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
  • Deployment
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Here we highlight the requirements for APIs that are used on the Haptik for the development of bots. We will be consuming API endpoints in scenarios where data needs to be fetched from the database and presented to the end-user on the bot screen.

In order to call the APIs for development purposes, there are certain prerequisites that are listed below -

  1. All APIs should preferably be Restful APIs that use HTTPS requests to GET, PUT, POST, and DELETE data.
  2. Request and Response must be JSON preferably.
  3. API endpoints must be publicly accessible. In case they are not publicly accessible, Haptik’s IPs must be whitelisted to be able to be accessed.
  4. Each endpoint should contain the following details:
    1. Endpoint URL.
    2. The path to call each endpoint.
    3. Which HTTP methods can be used with each endpoint.
    4. Authentication and other headers are required with each request.
    5. Explanation of what request data is mandatory and what is optional.
    6. Example Request Body.
    7. Example Response Body.
    8. Possible Error Scenarios and Status Codes.
    9. If there is authentication, please provide authentication steps in detail.
  5. APIs should have a stable Staging/Test environment that can be used during development.  
  6. Test accounts/IDs that can be used for testing (as applicable). For eg.  dummy mobile numbers,  sample user IDs, sample tracking IDs, etc.
  7. Technical SPOC who is equipped to answer any queries/clarifications regarding the APIs.

Required API Details for Testing (SAMPLE FORMAT)

Sr. No.
Data
Example
1
API name
API to generate OTP
2
Method
POST
3
Endpoint URL
https://apisit.xyz.com/pchflih/otp/v1/generateOTP
4
Headers
  • Authorization : Bearer <<token>>
  • Content-Type : application/json
5
Request body
Request:
{
    "mobileNo":"9928056506",
    "Attempt id" : "1"
}
6
Success Response
{
    status:"success",
    status_code:"SUCC001",
    message:"Request Successful"
}
7
Error Response
{
    "status": "error",
    "status_code": "ERR002",
    "message": "Request Failed"
}
8
Partner Code
"{partnercode}"
9

Consumer Key, Consumer Secret, User ID and Call back URL

If we are using these or similar, the key name should be properly mentioned. Eg: consumer_key
10

HTTP Status Codes

Code              Message

SUCC001       Request Successful

ERR001          Request Failed

Delete

Note:

These requirements may vary according to APIs.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Step 1 - How to create a bot on Haptik?
  • Introduction to Haptik's Smart Agent Chat
  • Getting Started on Haptik
  • How to log into Haptik?

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0