curl --request POST \
--url https://api.docketqa.com/modules/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"title": "<string>",
"steps": [
{
"step_number": 123,
"type": "<string>",
"action": "<string>",
"use_vision": true,
"test_blueprint_module_id": 123,
"api_request": {
"url": "<string>",
"method": "<string>",
"headers": {},
"body": {},
"timeout": 123,
"retries": 123,
"backoff_seconds": 123,
"should_refresh_page": true
},
"trigger_run_config": {
"test_blueprint_id": 123
},
"assert_images_count": 123,
"disable_self_healing": true,
"click_count": 123,
"hold_start_duration": 123,
"hold_end_duration": 123
}
],
"device_type": "<string>",
"device_name": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"browser_zoom": 123,
"test_blueprint_category_id": 123,
"folder_path": "<string>"
}
'{
"message": "<string>",
"test_blueprint": {
"id": 123,
"title": "<string>",
"type": "<string>",
"status": "<string>",
"device_type": "<string>",
"device_name": "<string>",
"company_id": 123,
"browser_zoom": 123,
"viewport_width": 123,
"viewport_height": 123,
"test_blueprint_category_id": 123,
"folder_path": "<string>",
"steps": [
{
"id": 123,
"step_number": 123,
"type": "<string>",
"action": "<string>",
"use_vision": true,
"test_blueprint_module_id": 123,
"api_request": {},
"trigger_run_config": {},
"disable_self_healing": true,
"click_count": 123,
"hold_start_duration": 123,
"hold_end_duration": 123,
"assert_images_count": 123,
"attached_file_ids": [
123
]
}
],
"usage_count": 123,
"test_blueprints_using_module": [
{}
],
"created_at": "<string>",
"updated_at": "<string>"
}
}curl --request POST \
--url https://api.docketqa.com/modules/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"title": "<string>",
"steps": [
{
"step_number": 123,
"type": "<string>",
"action": "<string>",
"use_vision": true,
"test_blueprint_module_id": 123,
"api_request": {
"url": "<string>",
"method": "<string>",
"headers": {},
"body": {},
"timeout": 123,
"retries": 123,
"backoff_seconds": 123,
"should_refresh_page": true
},
"trigger_run_config": {
"test_blueprint_id": 123
},
"assert_images_count": 123,
"disable_self_healing": true,
"click_count": 123,
"hold_start_duration": 123,
"hold_end_duration": 123
}
],
"device_type": "<string>",
"device_name": "<string>",
"viewport_width": 123,
"viewport_height": 123,
"browser_zoom": 123,
"test_blueprint_category_id": 123,
"folder_path": "<string>"
}
'{
"message": "<string>",
"test_blueprint": {
"id": 123,
"title": "<string>",
"type": "<string>",
"status": "<string>",
"device_type": "<string>",
"device_name": "<string>",
"company_id": 123,
"browser_zoom": 123,
"viewport_width": 123,
"viewport_height": 123,
"test_blueprint_category_id": 123,
"folder_path": "<string>",
"steps": [
{
"id": 123,
"step_number": 123,
"type": "<string>",
"action": "<string>",
"use_vision": true,
"test_blueprint_module_id": 123,
"api_request": {},
"trigger_run_config": {},
"disable_self_healing": true,
"click_count": 123,
"hold_start_duration": 123,
"hold_end_duration": 123,
"assert_images_count": 123,
"attached_file_ids": [
123
]
}
],
"usage_count": 123,
"test_blueprints_using_module": [
{}
],
"created_at": "<string>",
"updated_at": "<string>"
}
}Show Step object properties
"act" — an AI-driven browser action (e.g. click, type, navigate). Action text must not be empty."assert" — an AI-driven assertion that verifies something on the page."step_module" — execute another module (nested). Requires test_blueprint_module_id."trigger_run" — trigger another test as a sub-run. Requires trigger_run_config."api" — make an HTTP request. Requires api_request."key" — press a keyboard key."type" — type text into the focused element."mouse_move" — move the mouse to coordinates."left_click" — left click at coordinates."left_click_drag" — click and drag from one point to another."right_click" — right click at coordinates."double_click" — double click at coordinates."triple_click" — triple click at coordinates."scroll" — scroll the page."wait" — wait for a duration."deeplink" — open a deep link URL. Only supported when device_type is "android" or "ios"."module" type is not allowed. Use "step_module" for nested modules.api steps, this can be left empty.false.type is "step_module".type: "api".Show API request properties
"GET", "POST", "PUT", "DELETE").60.1.2.5.false.type is "trigger_run".Show Trigger run config properties
5.false.1.0.0."browser" — desktop browser (default)"android" — Android device"ios" — iOS devicedevice_type is "android" or "ios").1440.900.0.75 and 2.0. Defaults to 1.0."/".{
"title": "Login Setup Module",
"viewport_width": 1440,
"viewport_height": 900,
"browser_zoom": 1,
"steps": [
{
"step_number": 1,
"type": "act",
"action": "Navigate to the login page",
"use_vision": false
},
{
"step_number": 2,
"type": "api",
"action": "",
"api_request": {
"url": "https://api.example.com/auth/token",
"method": "POST",
"headers": {},
"body": {
"username": "testuser",
"password": "testpass"
},
"timeout": 60,
"retries": 1,
"backoff_seconds": 2.5,
"should_refresh_page": false
}
},
{
"step_number": 3,
"type": "assert",
"action": "Verify the auth token was returned",
"use_vision": false
}
]
}
"Test blueprint created successfully").Show Properties
"step_module" for modules."active")."browser", "android", or "ios").Show Step response properties
step_module steps).api steps).trigger_run steps).0 for newly created modules).{
"message": "Test blueprint created successfully",
"test_blueprint": {
"id": 964,
"title": "Login Setup Module",
"type": "step_module",
"status": "active",
"device_type": "browser",
"device_name": null,
"company_id": 23,
"browser_zoom": 1.0,
"viewport_width": 1440,
"viewport_height": 900,
"test_blueprint_category_id": null,
"folder_path": "/",
"usage_count": 0,
"test_blueprints_using_module": [],
"steps": [
{
"id": 23103,
"step_number": 1,
"type": "act",
"action": "Navigate to the login page",
"use_vision": false,
"test_blueprint_module_id": null,
"api_request": null,
"trigger_run_config": null,
"disable_self_healing": false,
"click_count": 1
},
{
"id": 23104,
"step_number": 2,
"type": "api",
"action": "",
"use_vision": false,
"test_blueprint_module_id": null,
"api_request": {
"url": "https://api.example.com/auth/token",
"method": "POST",
"headers": {},
"body": { "username": "testuser", "password": "testpass" },
"timeout": 60,
"retries": 1,
"backoff_seconds": 2.5,
"should_refresh_page": false
},
"trigger_run_config": null,
"disable_self_healing": false,
"click_count": 1
},
{
"id": 23105,
"step_number": 3,
"type": "assert",
"action": "Verify the auth token was returned",
"use_vision": false,
"test_blueprint_module_id": null,
"api_request": null,
"trigger_run_config": null,
"disable_self_healing": false,
"click_count": 1
}
],
"created_at": "2025-12-13T18:58:45.895773+00:00",
"updated_at": "2025-12-13T18:58:45.895781+00:00"
}
}