Skip to main content
POST
Create a Q&A data source

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.

question
string
required

Question for the Q&A data source

Example:

"What are your business hours?"

answer
string
required

Answer for the Q&A data source

Example:

"We are open Monday to Friday, 9 AM to 6 PM EST."

agentId
string
required

Unique identifier of the agent

Example:

"clx1234567890abcdef"

isGeneratedByAI
boolean

Flag indicating if the answer is generated by AI

Example:

false

Optional related message ID

Example:

"msg_1234567890"

Response

Q&A data source created successfully

status
string
Example:

"success"

data
object