Create and list test suites and flows programmatically
These endpoints allow you to manage test suites and flows via the API. All requests require an API key in the X-API-Key header. See API Reference for authentication details.
# Get all flowscurl -X GET https://backend.autosana.ai/api/v1/flows \ -H "X-API-Key: YOUR_API_KEY"# Get flows in a specific suitecurl -X GET "https://backend.autosana.ai/api/v1/flows?suite_id=550e8400-e29b-41d4-a716-446655440000" \ -H "X-API-Key: YOUR_API_KEY"
curl -X POST https://backend.autosana.ai/api/v1/flows \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Login with valid credentials", "description": "Positive test: User can log in with correct email/password", "instructions": "1. Tap the Sign In button\n2. Enter [email protected] in the email field\n3. Enter password123 in the password field\n4. Tap the Login button\n5. Verify that the home screen appears with Welcome message", "suite_id": "550e8400-e29b-41d4-a716-446655440000" }'
{ "id": "660e8400-e29b-41d4-a716-446655440001", "name": "Login with valid credentials", "description": "Positive test: User can log in with correct email/password", "instructions": "1. Tap the Sign In button\n2. Enter [email protected] in the email field\n3. Enter password123 in the password field\n4. Tap the Login button\n5. Verify that the home screen appears with Welcome message", "type": "single-prompt", "caching_enabled": true, "suite_id": "550e8400-e29b-41d4-a716-446655440000", "position": 0, "created_at": "2025-01-15T10:31:00Z"}