Subscriptions

POST /v1/bots/{bot_id}/subscriptions

Request

  • Base URL
    https://analytics.api.chatlayer.ai
  • URL
    https://analytics.api.chatlayer.ai/v1/bots/{bot_id}/subscriptions
  • Auth
    HTTP basic

Path parameters

bot_idstring required

the id of the bot

Request body

bot_versionstring
targetstring
secretstring
event_typestring

The event type you want to be notified about. One of TRACKING_EVENT, FLOW_EVENT or MESSAGE_EVENT

event_namesstring[]
versionstring

Example request

{
  "bot_version": "LIVE",
  "target": "https://httpbin.org/post",
  "event_type": "TRACKING_EVENT",
  "version": "v1"
}

Response

A successful response.

Changes

No recorded changes to this operation across all 1 revision of this API.