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

text_documents
string[]
required

List of text documents.

Response

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