Strategy API docs
Make your first strategy run.
Use your API key in the X-DASEF-API-Key header. Each successful billable POST request consumes one strategy run from your credits or monthly quota.
Header-based API key authCredits and monthly quotas enforcedJSON output for apps and workflows
Authentication
Use the API key from your purchase email.
Keep the key private. Do not put it in browser code, public repositories, screenshots, or client-side logs.
Base URL
https://dasef-engine.onrender.com
Required header
X-DASEF-API-Key: dasef_live_REPLACE_ME
Example
Generate a Strategy DAG.
This is the quickest way to confirm your key, credits, and endpoint are working.
curl -X POST "https://dasef-engine.onrender.com/v1/dag/generate" \
-H "Content-Type: application/json" \
-H "X-DASEF-API-Key: dasef_live_REPLACE_ME" \
-d '{
"input": {
"input_type": "raw_text",
"raw_text": "I run a small SaaS and need a clearer product roadmap, better onboarding, and a stronger acquisition plan."
},
"dag_type": "diagnostic",
"product_mode": "saas"
}'Usage
Check remaining credits or quota.
This endpoint does not consume a strategy run.
curl "https://dasef-engine.onrender.com/v1/account/usage" \ -H "X-DASEF-API-Key: dasef_live_REPLACE_ME"
Credits
Pay-as-you-go keys stop when prepaid credits reach zero.
Subscriptions
Subscription keys track monthly quota and monthly usage.
Docs first
Use the example request before connecting the API inside your own product.
Error codes
Common API responses.
| Status | Meaning | Action |
|---|---|---|
| 401 | Missing or invalid API key | Check the X-DASEF-API-Key header. |
| 402 | No credits or monthly quota remaining | Buy more credits or upgrade plan. |
| 403 | Key revoked, expired, or blocked | Contact support. |
| 413 | Request too large | Reduce input size. |
| 429 | Rate limited | Wait and retry. |