Skip to content
dhanu docs
Browse pages

API reference

List tasks

GET /api/pub/v1/tasks, page through the tasks the key's creator can see, newest first.

GEThttps://api.dhanu.ai/api/pub/v1/tasks

The tasks the key’s creator can see in the workspace, newest first, one page at a time.

Request

ParameterTypeRequiredNotes
limitintegerNoRows per page, 1 to 100; defaults to 50. At least 1, at most 100.
cursorstringNoThe 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

CodeStatusMeaning
invalid_api_key401The bearer key is missing or unknown.
api_key_revoked401The key was revoked.
api_key_expired401The key passed its expiry date.
api_key_ip_not_allowed403The caller's IP is outside the key's allowlist.
developer_access_revoked403The key's creator lost developer access in the workspace.
api_key_project_scope403The key covers no active projects, or projectId is outside its scope.
invalid_cursor422The cursor was not one this endpoint issued.