For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content
Chat TestingUpload Document
TestMu AI
StatusCommunityBlog
Chat Testing

Upload Document

Upload and process multiple documents for a given workflow.

POST
/api/upload-document
Upload Document
curl --request POST \
--url "https://agent-testing.lambdatest.com/api/upload-document" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'files=' \
--form 'workflow_id=<workflow_id>' \
--form 'project_id=<project_id>'
{
"success": true,
"message": "<string>",
"data": {}
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

multipart/form-data
filesarrayrequired
workflow_idstringrequired
project_idstringrequired

Response

application/json

Successful Response

successbooleanrequired

Whether the operation was successful

messagestringrequired

Response message

dataobject

Response data

Upload Document
curl --request POST \
--url "https://agent-testing.lambdatest.com/api/upload-document" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'files=' \
--form 'workflow_id=<workflow_id>' \
--form 'project_id=<project_id>'
{
"success": true,
"message": "<string>",
"data": {}
}