Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params multipart/form-data
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/kb/create_knowledge_base/upload/files' \
--header 'Authorization: Bearer <token>' \
--form 'files=@""' \
--form 'kb_id="0"' \
--form 'chunk_size="250"' \
--form 'chunk_overlap="50"' \
--form 'split_mode=""' \
--form 'max_chunk_length="4000"'
Responses
application/json {
"code": 0,
"msg": "success",
"data": {
"task_id": "ab3c7d65b8be4107ab0e255403887342"
}
}
Modified at 2026-01-13 09:31:35