API reference
List staff
GET /api/pub/v1/staff, every active staff member, with the trigger address of each one that has the API channel on.
GET
https://api.dhanu.ai/api/pub/v1/staffEvery active staff member in the workspace. apiAddress is the value to use in
POST /staff/{address}/trigger, or
null when that staff member’s API channel is switched off; id is what
POST /tasks takes as staffId.
curl https://api.dhanu.ai/api/pub/v1/staff \
-H "Authorization: Bearer $DHANU_API_KEY"const staff = await dhanu.staff.list();staff = dhanu.staff.list() Response
200 OK
{ "staff": [ { "id": "…", "name": "Anisha", "role": "Analyst", "status": "active", "apiAddress": "stf_…" } ] }
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. |