Documentation Index

Fetch the complete documentation index at: https://docs.document360.com/llms.txt

Use this file to discover all available pages before exploring further.

Ask Eddy AI API

Prev Next

The Eddy AI Public API lets you embed Eddy AI's assistive search directly into your own platform or service, so users can query your knowledge base without visiting your documentation site. You call the API endpoint with a prompt and receive an AI-generated answer drawn from your knowledge base content. This gives you full control over the search interface — including how it looks, where it appears, and how it behaves within your product. The API is available through the Document360 API hub.

NOTE

For a full list of languages supported by Eddy AI, see Multilingual support for Eddy AI Search Suite.


When to use the Eddy AI Public API

  • Embedded search in your product — surface knowledge base answers inside your application UI, without redirecting users to a separate documentation site.
  • Custom search interfaces — build a search experience that matches your brand's color scheme, terminology, and layout.
  • Automated support workflows — integrate Eddy AI into chatbots, ticketing systems, or onboarding flows that query your knowledge base programmatically.

Before you begin

  • The Eddy AI Public API must be enabled in your project settings (see How to enable the Public API below).
  • You need an API token with the POST method enabled (see How to create an API token below).
  • The AI assistive search toggle requires at least one delivery checkbox (Public API or others) to remain selected — deselecting all checkboxes will automatically turn off the toggle.

How to enable the Public API

  1. In the Knowledge Base portal, select Settings (⚙) in the left navigation bar.
  2. In the left navigation pane, go to AI features > Eddy AI.
  3. Expand the AI search suite accordion.
  4. In the AI assistive search section, select the Public API checkbox.

Eddy AI settings page showing the AI assistive search section with the Public API checkbox selected.

WARNING

If the Public API is not enabled, all API calls will return a 500 (service error) or 400 (API access disabled) response. Ensure the checkbox is selected before making any API calls.


How to create an API token

You need an API token to authenticate requests to the Eddy AI Public API.

  1. In the Knowledge Base portal, select Settings (⚙) in the left navigation bar.
  2. In the left navigation pane, go to Knowledge base portal > API Tokens.
  3. Click Create API Token, enter a token name, and set the method to POST.
  4. Click Create, then copy the generated API token and store it securely.

How to test the API

You can test the Eddy AI Public API in two ways — through the Document360 API documentation or through the Swagger API hub.

Test via API documentation

  1. Go to the Document360 API documentation.
  2. On the right side of the page, select the Try it section.
  3. In the Token field, enter your API token.
  4. Fill in the Body fields:
Field Description
Prompt The question or query to send to Eddy AI
Version ID The ID of your knowledge base project version
Language code The language code for the query (e.g. en)
  1. Click Try it & see response. The AI-generated response appears below.

Document360 API documentation showing the Try it section with Token, Prompt, Version ID, and Language code fields filled in.

Test via Swagger

  1. Go to the Swagger API hub. The Ask Eddy AI API is listed under Project versions.

  2. In the top-right corner, click Authorize.

  3. In the Available authorizations panel, paste your API token and click Authorize.

  4. Navigate to Project versions > /v2/ProjectVersions/ask-Eddy AI and click Try it out.

    The default request box appears with the following fields to complete:

Field Description
Prompt The question or query to send to Eddy AI
Version ID Retrieve this from the /v2/ProjectVersions endpoint
Language code The language code for the query

To retrieve your Version ID, call the /v2/ProjectVersions endpoint first:

Swagger API hub showing the /v2/ProjectVersions endpoint response with the version ID highlighted.

  1. Click Execute. A successful response contains the AI-generated answer and source article details.

Screen recording of the Swagger API hub — authorizing with an API token and executing the Ask Eddy AI endpoint.

NOTE

If you receive a "service unavailable" error in Swagger, verify that the Public API checkbox is selected in Settings > AI features > Eddy AI > AI search suite.


Best practices

  • Store API tokens securely — treat your API token as a secret. Do not expose it in client-side code or public repositories. Rotate it if it is compromised.
  • Use the correct ID type for your content — standard articles use articleID, but Pagecategory articles require categoryID. Using the wrong ID returns null fields in the response. See the FAQ for details.
  • Specify the language code explicitly — always pass the correct language code in the request body to ensure Eddy AI searches the right language version of your knowledge base.
  • Handle error responses — implement error handling for 400 (API access disabled) and 500 (service error) responses. Both typically indicate the Public API checkbox is not enabled.

FAQ

Why do source article fields return null in the API response?

This happens when you query a Pagecategory article using an articleID. For Pagecategory content, the article_id, article_title, and article_slug fields return null because the content is category-level, not article-level. Use the categoryID instead to retrieve the correct details. A Pagecategory API response looks like this:

{

"category_id": "_categoryid",
"category_title": "Title",
"category_slug": "slug",
"version_name": "v1",
"version_slug": "v1",
"article_id": null,
"article_title": null,
"article_slug": null,
"version_display_name": null
}

Why am I receiving a 400 or 500 error when calling the API?

A 400 (API access disabled) or 500 (service error) response means the Public API is not enabled in your project. Go to Settings > AI features > Eddy AI > AI search suite and confirm the Public API checkbox is selected.