Lyro

Upsert Lyro data source

This API endpoint allows you to upload or update a data source for the Lyro AI Agent. Data sources provide knowledge that Lyro uses to answer customer questions.

If a data source with the same URL already exists, it will be updated with the new content and title. Otherwise, a new data source will be created.

The content should be provided as HTML and will be processed by the Lyro AI Agent.

put/lyro/data-sources/website

Request

  • Base URL
    https://api.tidio.com
  • URL
    https://api.tidio.com/lyro/data-sources/website
  • Auth
    API key in header X-Tidio-Openapi-Client-Id and API key in header X-Tidio-Openapi-Client-Secret

Request body

urlstring required

Unique URL identifier for the data source

contentstring required

HTML content of the data source

titlestring required

Title of the data source

Example request

{
  "url": "https://example.com/help/shipping-policy",
  "content": "<html><h1>Shipping Policy</h1><p>We ship worldwide within 3-5 business days.</p></html>",
  "title": "Shipping Policy"
}

Response

Entity was created and their id is returned

idstring uuid

Example response

{
  "id": "a1b4ca4c-1108-4432-b256-1e4cf2bf6f9e"
}

Changes

No recorded changes to this operation across all 1 revision of this API.