Generate a test case spec from the agent flow
POSThttps://platform.docana.com/api/v1/agents/:agentId/test-cases/generate-spec/
Accepts an optional JSON body { currentTestCase?: { name?, description?, evalSpec? }, additionalInstructions? } used to seed and steer the LLM generation.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The generated test case spec
Invalid workflow or generated spec failed validation
The API key or session is missing, expired, or malformed.
Insufficient permissions on the application
Agent not found
Generation failure