Skip to main content
SessionUpload terminal logs to our lambda storage
TestMu AI
StatusCommunityBlog
Session

Upload terminal logs to our lambda storage

You can upload any test/terminal report generated by the testing framework in json,xml,txt and other common format. The file uploaded can then be viewed in the automation dashboard page under LOGS sections. The file size should not exceed 2MB

POST
/sessions/{session_id}/terminal-logs
Upload terminal logs to our lambda storage
curl --request POST \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/terminal-logs" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'file=<file>'
{
"data": "File have been uploaded successfully to our lambda storage",
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

session_idstringrequired

Session ID

Body

multipart/form-data

To upload terminal logs file

filestring<binary>

Response

application/json

Successful operation

datastring
statusstring
Upload terminal logs to our lambda storage
curl --request POST \
--url "https://api.lambdatest.com/automation/api/v1/sessions/{session_id}/terminal-logs" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: multipart/form-data" \
--form 'file=<file>'
{
"data": "File have been uploaded successfully to our lambda storage",
"status": "success"
}