POST
/
api
/
scraping
/
text-document
/
{bot_id}
curl --request POST \
  --url https://backend.chatfly.co/api/scraping/text-document/{bot_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content": "<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 importing a text document.

content
string
required

Content of the text document.

Response

200
application/json
Successful Response

Schema for representing the response of a bot's text document.

id
string
required

Unique identifier for the text document.

bot_id
string
required

Unique identifier for the associated bot.

content
string
required

Content of the text document.

num_token
integer
required

Number of tokens in the document.

created_at
string
required

Timestamp indicating when the document was created.