Skip to content

List tasks

Request

Retrieve tasks for the location with keyset pagination. Filter by status, type, assignee, related patient, due-date range, creation-date range, and system vs manual. Sorted by creation date.

Security
PartnerApiKey and PartnerOAuth
Path
accountIdinteger, (int64)required

Account identifier

locationIdinteger, (int64)required

Location identifier

Query
statusstring

Filter by status

Enum:"OPEN""COMPLETED""DELETED"
typestring

Filter by task type

Enum:"OTHER""LABS""BILLING""PRESCRIPTION""INTAKE""SCHEDULING""CSL""CLINICAL_CHART""REMOTE_CARE""FOLLOW_UP"
assigneeStaffIdinteger, (int64)

Filter by assignee staff ID

patientIdinteger, (int64)

Filter by related patient ID

dueDateFromstring

Only tasks due on or after this date (YYYY-MM-DD)

Example:dueDateFrom=2025-01-01
dueDateTostring

Only tasks due on or before this date (YYYY-MM-DD)

Example:dueDateTo=2025-12-31
createdOnFromstring

Only tasks created on or after this UTC timestamp (ISO-8601)

Example:createdOnFrom=2025-01-15T14:00:00Z
createdOnTostring

Only tasks created on or before this UTC timestamp (ISO-8601)

Example:createdOnTo=2025-01-15T14:00:00Z
systemboolean

Filter by system-generated (true) vs manually-created (false)

sortDirstring(?i)ASC|DESC

Sort direction (by creation date)

Default:"DESC"
Enum:"ASC""DESC"
cursorstring, [ 0 .. 2048 ] characters

Pagination cursor from previous response

limitinteger, (int32), [ 1 .. 1000 ]

Number of results per page (max 1000)

Default:20
Example:limit=20
curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/task?status=OPEN&type=OTHER&assigneeStaffId=0&patientId=0&dueDateFrom=2025-01-01&dueDateTo=2025-12-31&createdOnFrom=2025-01-15T14%3A00%3A00Z&createdOnTo=2025-01-15T14%3A00%3A00Z&system=true&sortDir=ASC&cursor=string&limit=20' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Tasks retrieved successfully

Bodyapplication/json
nextCursorstring

Opaque cursor for the next page. Null if no more results.

tasksArray of objects(TaskDTO)

Tasks in this page

Response
{ "nextCursor": "string", "tasks": [ {} ] }