Skip to main content
POST
/
api
/
aibot
/
data-source
/
pdf
Add pdf data-source to chatbot
curl --request POST \
  --url https://app.livechatai.com/api/aibot/data-source/pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "PDF Source Title",
  "content": [
    {
      "text": "PDF source content",
      "page": 1
    }
  ],
  "chatbotId": "c****************1cx4"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

PDF data-source details

title
string
required

Title of the PDF data-source

Example:

"PDF Source Title"

content
object[]
required

Array of objects containing PDF content and page numbers

chatbotId
string
required

Unique identifier of the chatbot

Example:

"c****************1cx4"

Response

PDF data-source added successfully