Skip to main content
Skip table of contents

API Connection

This guide explains how to connect an external data sources through an API connection to your knowledge.

Prerequisites

In order to set up a successful knowledge integration through an API connection you will need to set up and expose an endpoint in a specific way:

Your endpoint should be setup to accept a GET request and the response of your endpoint should return the required JSON format as illustrated below.

JSON
 [ 
  { 
    "trigger": "this is a question", 
    "content": "this is the answer" 
  },
  ...
] 

Both the trigger and content keys need to have values of the string type. If the provided json response does not adhere to the provided format it will fail to synchronize.

Not setting up the endpoint to the above specification will result in a failure to synchronize the resource.

As a general rule we advise you to structure your JSON file in a FAQ format where you include the question into the trigger field and the answer to the question in the content field.

Setting up a Third-Party REST API Connection

image-20250519-082229.png
  1. Click on the blue plus button and select "Api Connection"

  2. Provide the following details in the shown window:

    1. Enter a Name: Provide a descriptive name for your connection

    2. Enter the Endpoint URL: The full URL of the endpoint you want to connect to.

    3. Configure Headers:
      - Click the "Headers" tab
      - Add key-value pairs for authentication and content type
      - Common headers include:

      1. Authorization: For API keys or tokens (e.g., Bearer your-token-here)

      2. Content-Type: Usually application/json

      3. Accept: The format you want to receive (e.g., application/json)

    4. Configure Query Parameters (optional):
      - Click the "Query" tab
      - Add key-value pairs for any parameters to include in the request URL

  3. Click Save to create the connection

Data Handling

  • Connections are profile-specific and not shared across profiles

  • Connection content is automatically synchronized and made available for knowledge retrieval

Troubleshooting

If your connection fails:

  • Verify your endpoint URL is correct and accessible

  • Check that all authentication credentials are valid

  • Ensure the API response format is compatible with our system.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.