---
title: "Add One Question Answer"
method: POST
path: "/api/scraping/question-answer/{bot_id}"
tags: ["Scraping"]
---

# Add One Question Answer

`POST /api/scraping/question-answer/{bot_id}`

Import a single question and answer for a bot.

## Path parameters

- `bot_id` string, uuid, required

## Request body

- BotQADocumentSchema — 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`

Successful Response

- BotQADocumentResponseSchema — Schema for representing the response of a bot's question and answer document.
  - `id` string, uuid, required — Unique identifier for the question and answer document.
  - `bot_id` string, uuid, 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, date-time, required — Timestamp indicating when the document was created.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
