cURL
curl --request GET \ --url http://127.0.0.1:8765/v1/recipes \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "recipe": "<string>", "input": {} } '
HTTP API endpoints for recipe runner server
# Start recipe server praisonai serve recipe --host 127.0.0.1 --port 8765
http://127.0.0.1:8765
curl http://127.0.0.1:8765/v1/recipes
{ "recipes": [ {"name": "research", "description": "Deep research agent"}, {"name": "code-review", "description": "Code review agent"} ] }
curl http://127.0.0.1:8765/v1/recipes/research
{ "name": "research", "description": "Deep research agent", "schema": { "type": "object", "properties": { "topic": {"type": "string"} }, "required": ["topic"] } }
curl -X POST http://127.0.0.1:8765/v1/recipes/run \ -H "Content-Type: application/json" \ -d '{"recipe": "research", "input": {"topic": "AI agents"}}'
{ "result": "Research findings on AI agents...", "duration_ms": 5432 }
curl -X POST http://127.0.0.1:8765/v1/recipes/stream \ -H "Content-Type: application/json" \ -H "Accept: text/event-stream" \ -d '{"recipe": "research", "input": {"topic": "AI agents"}}'
event: progress data: {"step": "Researching...", "percentage": 25} event: progress data: {"step": "Analyzing...", "percentage": 50} event: result data: {"result": "Research findings..."}
curl -X POST http://127.0.0.1:8765/v1/recipes/validate \ -H "Content-Type: application/json" \ -d '{"recipe": "research", "input": {"topic": "AI"}}'
{ "valid": true, "errors": [] }
# List recipes praisonai recipes list # Run a recipe praisonai recipes run research --input '{"topic": "AI"}' # Describe a recipe praisonai recipes describe research
serve.yaml
host: 127.0.0.1 port: 8765 auth: api-key api_key: your-secret-key recipes: - research - code-review preload: true rate_limit: 100