API Reference
SaaS Config API
API endpoints for configuring your target application.
GET
/api/saas-configGet the current SaaS configuration
Response
{
"name": "My E-commerce App",
"description": "Online store with user accounts...",
"url": "https://my-store.com",
"repoUrl": "https://github.com/myorg/my-store",
"directives": [
"Focus on checkout flow",
"Test with guest users"
],
"auth": {
"type": "session"
}
}POST
/api/saas-configSet the full SaaS configuration
Request Body
{
"name": "My E-commerce App",
"description": "Online store with user accounts, product catalog, shopping cart, and Stripe checkout",
"url": "https://my-store.com",
"repoUrl": "https://github.com/myorg/my-store",
"directives": [
"Focus on the checkout flow",
"Test with both logged-in and guest users"
],
"auth": {
"type": "session",
"credentials": {
"username": "test@example.com",
"password": "testpass"
}
}
}Response
{
"success": true,
"message": "Configuration saved"
}POST
/api/saas-config/quickQuick setup with minimal configuration
Request Body
{
"name": "My SaaS App",
"description": "E-commerce platform with user auth, product catalog, and checkout",
"url": "https://my-app.com"
}Response
{
"success": true,
"message": "Quick configuration saved"
}PATCH
/api/saas-configUpdate specific configuration fields
Request Body
{
"url": "https://staging.my-store.com"
}Response
{
"success": true,
"message": "Configuration updated"
}POST
/api/saas-config/directiveAdd a new directive
Request Body
{
"directive": "Pay special attention to the new refund feature"
}Response
{
"success": true,
"directives": [
"Focus on checkout flow",
"Pay special attention to the new refund feature"
]
}POST
/api/saas-config/repositorySet the repository URL for code analysis
Request Body
{
"url": "https://github.com/myorg/my-app"
}Response
{
"success": true,
"message": "Repository URL set. Clone will start on next analysis."
}POST
/api/saas-config/local-pathSet a local path for code analysis
Request Body
{
"path": "/path/to/your/project"
}Response
{
"success": true,
"message": "Local path set"
}Configuration Fields
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Application name |
| description | string | Yes | Detailed description |
| url | string | Yes | Application URL |
| repoUrl | string | No | Repository URL |
| directives | string[] | No | Custom instructions |
| auth | object | No | Authentication config |
