SDK & CI/CD
Integrate Spectr into any stack — REST API, Python, TypeScript, GitHub Actions.
REST SDKPOST /api/sdk/run
curl -X POST https://spectr.ai/api/sdk/run \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com",
"model": "claude-sonnet-4-6",
"testType": "ui",
"language": "playwright-ts",
"browser": "chromium",
"steps": [
"Navigate to login page",
"Enter valid credentials and submit",
"Assert dashboard is visible"
]
}'Response
{
"ok": true,
"language": "playwright-ts",
"plan": "1. Navigate to login...\n2. Fill credentials...",
"code": "import { test, expect } from '@playwright/test';\n...",
"validation": "VALID",
"durationMs": 8420,
"model": "claude-sonnet-4-6"
}GitHub Actions Generator
Generate a production-ready .github/workflows/spectr-tests.yml in one click.
SDK capability matrix
| Feature | playwright-ts | pytest-selenium | requests-pytest |
|---|---|---|---|
| UI automation | ✅ | ✅ | — |
| API testing | ✅ | — | ✅ |
| Mobile (Appium) | — | ✅ | — |
| Screenshot diff | ✅ | — | — |
| Multi-browser | ✅ | ✅ | — |
| Async/await | ✅ | — | — |
| CI/CD ready | ✅ | ✅ | ✅ |
| Jira reporting | ✅ | ✅ | ✅ |