Docs Autonomy
Référence APIPlans

Generate a test plan

Creates a placeholder plan and queues AI generation from either a prompt or a git diff. Requires the autonomy:plans:write API key scope.

POST
/api/generate

Creates a placeholder plan and queues AI generation from either a prompt or a git diff. Requires the autonomy:plans:write API key scope.

Authorization

bearerAuth
AuthorizationBearer <token>

Send Authorization: Bearer . The token can be an Autonomy organization API key (aut_xxx) or an OAuth access token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/generate" \  -H "Content-Type: application/json" \  -d '{    "name": "Checkout smoke",    "mode": "auto",    "prompt": "Validate signup, checkout, receipt email, and order history.",    "platforms": [      "web",      "api"    ]  }'
{
  "testPlanId": "string",
  "status": "generating"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}