Haptik Docs

Haptik Docs

  • Tools
  • Integrations

›Pre-requisites

Getting Started

  • What is a Webhook

Pre-requisites

  • API Security
  • Protocols
  • Payload Information

Setup

  • How to create/update a Haptik User
  • How to send message to Haptik
  • How to send file to Haptik
  • How to send feedback to Haptik

Bot Deployment

  • Using Platform Deployments

Miscellaneous

  • Synchronous Webhooks
  • How to re-enable Webhook

Protocols

Due to the critical and confidential nature of the data being exchanged, all clients must adhere to the stated rules for implementing a webhook to eliminate potential risks.

Webhook Requirements

Your webhook should meet the following minimum performance requirements

  • Must be a HTTPS endpoint
  • Respond to all webhook events with a 200 OK
  • Respond to all webhook events in 5 seconds or less

Security Requirements

The HTTP request will contain an X-Hub-Signature header which contains the SHA1 signature of the request payload computed using the HMAC algorithm and the secret_key shared in advance, and prefixed with sha1=.

Your callback endpoint should verify this signature to validate the integrity and origin of the payload.

Error Handling and Recovering

If any of the below 3 conditions are observed by Haptik Systems when:

  1. We cannot connect to your webhook
  2. Your webhook takes more than '5' seconds to return the response
  3. Your webhook returns non 2xx status code

then

  1. We will retry the request 6 times over the course of 60 minutes (Retry intervals: 5 seconds, 25 seconds, 125 seconds, 625 seconds, 1410 seconds, 1410 seconds).
  2. If the repeated webhook call are unsuccessful even after the last attempt we will automatically disable the webhook.
  3. Once the webhook is disabled, then new requests will be queued for a max duration of 60 minutes. Once the webhook is enabled by you, then we will attempt to deliver the requests.
  4. You can visit the Haptik Dashboard or use the REST API to activate the webhook if it is disabled.

Note: There can be multiple delivery requests within a short time span and it is the client's responsibility to maintain ordering and QoS in case of failure to accept messages.

Last updated on 4/16/2021
← API SecurityPayload Information →
  • Webhook Requirements
  • Security Requirements
  • Error Handling and Recovering
Haptik Inc.
Tools
Conversation StudioSmart Agent ChatIntelligent Analytics
Integrations
iOS SDKAndroid SDKWeb SDKWhatsAppFacebookBot API
Others
HSLSLAExternal Agent Chat Tool
Copyright © 2021 Haptik Inc.