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 TestingStart Test Generation
TestMu AI
StatusCommunityBlog
Chat Testing

Start Test Generation

Start test-scenario generation for the workflow from its processed sources. Generation is asynchronous — poll GET /api/test-scenarios/{workflow_id} for the generated scenarios.

POST
/api/start-test-generation/{workflow_id}
Start Test Generation
curl --request POST \
--url "https://agent-testing.lambdatest.com/api/start-test-generation/{workflow_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"categories": [],
"languages": [],
"target_count": 0,
"scenario_types": [],
"append_mode": true
}'
{
"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.

Path Parameters

workflow_idstringrequired

Body

application/json
project_idstringrequired

Project ID associated with the workflow

categoriesarray

Optional list of categories to generate tests for.

languagesarray

List of languages for scenario generation (e.g., ['English', 'Spanish']). If None, defaults to English only.

target_countinteger

Number of scenarios to generate. If None, auto-calculated from document complexity.

scenario_typesarray

Limit generation to specific scenario types: happy-path, negative, edge-case, integration, red-team. If None or empty, all types are generated.

append_modeboolean

If True, generated scenarios are appended to existing ones. If False (default), existing scenarios are replaced.

Response

application/json

Successful Response

successbooleanrequired

Whether the operation was successful

messagestringrequired

Response message

dataobject

Response data

Start Test Generation
curl --request POST \
--url "https://agent-testing.lambdatest.com/api/start-test-generation/{workflow_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"categories": [],
"languages": [],
"target_count": 0,
"scenario_types": [],
"append_mode": true
}'
{
"success": true,
"message": "<string>",
"data": {}
}