API reference
List tasks
GET /api/pub/v1/tasks, page through the tasks the key's creator can see, newest first.
GET
https://api.dhanu.ai/api/pub/v1/tasksThe tasks the key’s creator can see in the workspace, newest first, one page at a time.
Request
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | No | Rows per page, 1 to 100; defaults to 50. At least 1, at most 100. |
cursor | string | No | The nextCursor from the previous page, verbatim. |
curl "https://api.dhanu.ai/api/pub/v1/tasks?limit=20" \
-H "Authorization: Bearer $DHANU_API_KEY"const page = await dhanu.tasks.list({ limit: 20 });page = dhanu.tasks.list(limit=20) Response
200 OK: { data, nextCursor, hasMore } as on every list endpoint.
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. |
invalid_cursor | 422 | The cursor was not one this endpoint issued. |