API reference
List workflows
GET /api/pub/v1/workflows, saved workflows with the typed fields their forms ask for.
GET
https://api.dhanu.ai/api/pub/v1/workflowsThe saved workflows the key’s creator can see. Each carries fields, the typed
form (text, textarea, select, checkboxes, toggle, number, file) that
run validates values against.
curl https://api.dhanu.ai/api/pub/v1/workflows \
-H "Authorization: Bearer $DHANU_API_KEY"const workflows = await dhanu.workflows.list();workflows = dhanu.workflows.list() Errors
| Code | Status | Meaning |
|---|---|---|
invalid_api_key | 401 | The bearer key is missing or unknown. |
api_key_revoked | 401 | The key was revoked. |
api_key_expired | 401 | The key passed its expiry date. |
api_key_ip_not_allowed | 403 | The caller's IP is outside the key's allowlist. |
developer_access_revoked | 403 | The key's creator lost developer access in the workspace. |
api_key_project_scope | 403 | The key covers no active projects, or projectId is outside its scope. |