uvicorn api:app --reload --port 8000
## API Endpoints
### Health Check
```bash
GET http://localhost:8000/api/healthReturns server health status and agent availability.
POST http://localhost:8000/api/run-test
Content-Type: application/json
{
"url": "https://example.com",
"profile": "AVERAGE",
"device_name": "iPhone 12",
"browser_type": "Chrome",
"resolution": "390x844",
"language": "English",
"ux_requirements": ["Standard Sign-up Flow completion"],
"ui_requirements": ["Color usage matches design tokens"],
"custom_mission": null
}Returns a run_id that can be used to fetch results.
GET http://localhost:8000/api/results/{run_id}Returns complete test results including scores, issues, and assessments.
GET http://localhost:8000/api/status/{run_id}Returns current status of a running test (pending, running, completed, failed).
GET http://localhost:8000/api/historyReturns a list of all test runs with summaries.
DELETE http://localhost:8000/api/results/{run_id}Deletes all data for a specific test run.
python api_test.py