POST
/
api
/
v2
/
data-sources
/
qa
curl --request POST \
  --url https://app.livechatai.com/api/v2/data-sources/qa \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "What are your business hours?",
  "answer": "We are open Monday to Friday, 9 AM to 6 PM EST.",
  "agentId": "clx1234567890abcdef",
  "isGeneratedByAI": false,
  "relatedMessageId": "msg_1234567890"
}'
{
  "status": "success",
  "data": {
    "message": "Added successfully",
    "item": {
      "id": "ds_1234567890",
      "source": "QA",
      "isGeneratedByAI": false
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Details for the Q&A data source.

The body is of type object.

Response

200
application/json

Q&A data source created successfully

The response is of type object.