cURL
curl --request POST \ --url https://app.livechatai.com/api/v2/data-sources/url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "https://www.example.com/about-us", "agentId": "clx1234567890abcdef" } '
{ "status": "success", "data": { "message": "Added successfully", "item": { "id": "ds_1234567890", "source": "WEBSITE", "isGeneratedByAI": false } } }
Add a website URL as a data source to train your agent. The system will crawl and extract content from the provided URL.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Details for the URL data source.
URL of the webpage to be added as data source
"https://www.example.com/about-us"
Unique identifier of the agent
"clx1234567890abcdef"
URL data source created successfully
"success"
Show child attributes
"Added successfully"
"ds_1234567890"
"WEBSITE"
false