Environment›Create Environments
Selenium Automation API
Automated Screenshots API
App Automation API (Real Devices)
Smart UI
Cypress Automation
User Management
HyperExecute
Accessibility Testing
Analytics
Performance Testing
Audit logs
Environment
Create Environments
Create configuration with environment name and variables. Note that supported variable values (Browser, OS, Device) are not publicly available currently, reach out to support if needed.
POST
/api/v1/environments
Create Environments
curl --request POST \--url "https://test-manager-api.lambdatest.com/api/v1/environments" \--header "Authorization: Basic <encoded-value>" \--header "Content-Type: application/json" \--data '{"configurations": [{"name": "Web Desktop Chrome","platform": "web","is_custom": false,"environments": [{"os": "Windows","os_version": "11","browser": "Chrome","browser_version": "120","resolution": "1920x1080","platform_type": "desktop"}]},{"name": "Mobile iOS Safari","platform": "real-device-mobile","is_custom": false,"environments": [{"os": "ios","os_version": "17.0","browser": "Safari","device": "iPhone 15 Pro","brand": "Apple","platform_type": "mobile"}]},{"name": "Custom Android App","platform": "real-device-mobile","is_custom": true,"custom_app": true,"app_auto_update": false,"app_package": "com.example.app","environments": [{"os": "android","os_version": "13","device": "Samsung Galaxy S23","brand": "Samsung","platform_type": "mobile"}]}]}'
{"message": "Environments created successfully","type": "success","environment_id": [123,124,125]}
Body
application/jsonconfigurationsarrayrequired
Response
application/jsonEnvironments created successfully
messagestring
typestring
environment_idarray
Create Environments
curl --request POST \--url "https://test-manager-api.lambdatest.com/api/v1/environments" \--header "Authorization: Basic <encoded-value>" \--header "Content-Type: application/json" \--data '{"configurations": [{"name": "Web Desktop Chrome","platform": "web","is_custom": false,"environments": [{"os": "Windows","os_version": "11","browser": "Chrome","browser_version": "120","resolution": "1920x1080","platform_type": "desktop"}]},{"name": "Mobile iOS Safari","platform": "real-device-mobile","is_custom": false,"environments": [{"os": "ios","os_version": "17.0","browser": "Safari","device": "iPhone 15 Pro","brand": "Apple","platform_type": "mobile"}]},{"name": "Custom Android App","platform": "real-device-mobile","is_custom": true,"custom_app": true,"app_auto_update": false,"app_package": "com.example.app","environments": [{"os": "android","os_version": "13","device": "Samsung Galaxy S23","brand": "Samsung","platform_type": "mobile"}]}]}'
{"message": "Environments created successfully","type": "success","environment_id": [123,124,125]}