Documentations
This document provides information on how to interact with the API.
Authentication
Before making API requests, ensure authentication by following these steps:
- Visit the authentication endpoint: Sign In (with the provided credentials) to the application.
- Click the "Manage" button on the relevant area to access the admin page.
- In the admin page, click the login button for identification (if not signed in).
Webhooks
Webhooks are used to receive updates when asynchronous operations are completed. Follow these steps to register a webhook:
- After signing in, navigate to the "Register Webhook" page.
- Register the webhook with two URL input fields: the actual webhook URL and the Grant URL.
- Both URLs should be exposed from your server and share the same domain. The Grant URL should support "OPTIONS" requests with the ‘X-dialog-engine-whtoken’ header, and the token in the header should match the token provided in the input field during registration.
- This token verification is done to avoid abuse during webhook registration. If the grant URL returns the response header as expected, the webhook will be registered.
API Key
Generate an API Key to authenticate API calls:
- Visit the "Generate API Key" page.
- Press the "Generate API Key" button to create a new API Key.
- Use any generated API key as an Auth header during API calls.
API Usage
Refer to the API documentation for detailed information:
API Swagger Docs: Swagger
curl -X 'GET' \
'http://192.168.145.211/dialog/api/v1/DialogEngine' \
-H 'accept: */*' \
-H 'Authorization: Bearer {API-key}'
A sample response could look like the following:
[{"id":241,"title":"Sample Dialog","status":"Success"}]
More References
Get Started Docs
Sample console application link
API Documenations
Swagger API docs are available here