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
  • Developer Guides

What are the Haptik API Requisites

Written by Soham Amburle

Updated on April 19th, 2023

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

Table of Contents

Pre-requisites for consuming the APIs for development purposesRequired API Details for Testing

The main objective of this document is to highlight the requirements for APIs that are made available to Haptik for the development of an Intelligent Virtual Agent (IVA). Haptik will consume API endpoints in scenarios where data needs to be fetched and presented to the end-user.

Pre-requisites for consuming the APIs for development purposes

  • All APIs should preferably be Restful APIs that use HTTP requests to GET, PUT, POST, and DELETE data.
  • API documentation containing clear instructions about how to effectively use and integrate with the API endpoint. 
  • The document should explain the various API endpoints, how to construct requests, and what to expect as a response.
    • Each endpoint should contain the following details:
      • Endpoint URL.
      • The path to call each endpoint.
      • Which HTTP methods can be used with each endpoint.
      • Authentication and other headers are required with each request.
      • Explanation of what request data is mandatory and what is optional.
      • Example Request Body.
      • Example Response Body.
      • Possible Error Scenarios and Status Codes.
      • If there is authentication, please provide authentication steps in detail.
  • Request and Response must be JSON preferably.
  • API endpoints must be publicly accessible.
    • In case they are not publicly accessible, Haptik’s IPs must be whitelisted.
  • APIs should have a stable Staging/Test environment that can be used during development.
  • Any test accounts/IDs as applicable - for eg. dummy mobile numbers, sample user IDs, sample tracking IDs, etc that can be used to test out the APIs should be available.

Required API Details for Testing

Sr no.  Data For 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


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How to Send Entity Values to API to Fetch Data
  • How to Use Entity Values on Code Step
  • How to send payment notifications using SETU?
  • How to send payment links using SETU APIs?

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