Chats API
Create API key
Before using the API, you need to generate an API key. This can be done through the Ebbot application. Navigate to Settings > Integrations > API keys in the sidebar.
To generate a new key, click New in the top-right corner. Give your API key a name, click Save and the keys will be generated. Note that the full API key consists of both the public and the private key separated with a dot (.) and it will only be shown once, so take note while it is displayed.
When making calls to the Ebbot API, the full API key needs to be passed as a header namedx-api-key
:
x-api-key: <public-key>.<secret-key>
Fetching chats and transcripts
Two API endpoints are available:
List Chats: Retrieves a paginated list of chats.
Fetch Transcript: Retrieves the full transcript for a specific chat ID.
Step 1: Retrieve a List of Chats
The URL in the following endpoints needs to be replaced with your actual Ebbot Platform URL. This is the same URL used to reach ebbot app. It can be one of the following URLs:
ebbot.eu
v2.ebbot.app
ca.ebbot.app
Endpoint
page
(optional): Page number for pagination (default is1
).limit
(optional): Number of chat records to retrieve per request (default is15
).
Example Request (curl)
Don't forget to replace <public-key>.<secret-key>
with your actual API key.
Step 2: Retrieve Chat Transcript
Use chat IDs from the chat list response to retrieve detailed transcripts.
Endpoint
Replace {chatid}
with the desired chat ID.
Example Request (curl)
Example Transcript Response
Rate Limit
To ensure optimal performance and availability of the Chats API, a rate limit is enforced:
Limit: 20 requests per minute
Exceeding this limit will cause subsequent requests to time out. Please manage your request rates accordingly to avoid disruptions in service and implement handling mechanisms to pause and retry after the rate limit resets.
Last updated
Was this helpful?