POST
/
api
/
scraping
/
question-answer
/
{bot_id}
curl --request POST \
  --url https://backend.chatfly.co/api/scraping/question-answer/{bot_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "question": "<string>",
  "answer": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "question": "<string>",
  "answer": "<string>",
  "num_token": 123,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

bot_id
string
required

Body

application/json

Schema for representing a bot's question and answer document.

question
string
required

Question in the document.

answer
string
required

Answer to the question.

Response

200
application/json
Successful Response

Schema for representing the response of a bot's question and answer document.

id
string
required

Unique identifier for the question and answer document.

bot_id
string
required

Unique identifier for the associated bot.

question
string
required

The question in the document.

answer
string
required

The answer to the question.

num_token
integer
required

Number of tokens in the document.

created_at
string
required

Timestamp indicating when the document was created.