POST
/
api
/
scraping
/
question-answer
/
{bot_id}
/
many
curl --request POST \
  --url https://backend.chatfly.co/api/scraping/question-answer/{bot_id}/many \
  --header 'Content-Type: application/json' \
  --data '{
  "question_answers": [
    {
      "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 multiple question and answer documents.

question_answers
object[]
required

List of question and answer inputs.

Response

200
application/json
Successful Response
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.