External APIs
Introduction
This page explains how to interact with OpenDialog via external APIs. It covers exporting user interaction data using user_id
and generating customised webchat short URLs in bulk.
Interaction API
The Interaction API makes it possible to retrieve information about interactions between the user and OpenDialog scenarios. The data is requested for over a time period (from
, to
) and is split by user_id
. Example structure can be seen below.
Please see our Postman documentation of the API for further information.
Webchat Short URL API
The Short URL API makes it possible to generate personalised webchat URLs with pre-filled user attributes by hitting the api/generate-webchat-deeplink
endpoint. This enables a tailored experience from the moment a user interacts with OpenDialog.
To generate a short URL, provide a scenarioId
or scenarioAlias
, along with a dataset
containing user attributes. If a userId
is not specified, one will be automatically generated. Example structure can be seen below:
Each request returns a set of unique short URLs that pre-load the specified attributes into the conversation.
For detailed request and response specifications, see our Postman API documentation.
Bearer Token
To access the API you will need a bearer token associated with a user account in the OpenDialog Tenant you want to extract data from.
To access your bearer token visit the Identity & Security page - accessible by clicking on your username in the bottom left-hand corner.
Last updated