Retrieve Tasks Collection

CUSTOM-ENDPOINT

GET https://api.speakap.io/networks/:eid/tasks/

CUSTOM-REQUEST

  • URI: /networks/{networkEID}/tasks/
  • Method: GET
  • Accept: application/json
  • Authentication: OAuth 2.0

Parameters

NameTypeDescription
networkEIDEIDNetwork EID

Filters

Pagination

NameTypeDescription
limitintThe limit of returned tasks (default: 10)
offsetintThe offset for pagination

Task Filters

NameTypeDescription
authorEIDFilter tasks by author (creator) profile EID
authorsEID[]Filter tasks by multiple author profile EIDs
assigneeEIDFilter tasks by assignee profile EID
completedbooleanFilter by completion status (true, false, 1, 0)
exclude_recipientEIDExclude tasks with the given recipient EID
recipientsEIDFilter tasks by recipient EID (user or group)
tagsEID[]Filter tasks by tag EIDs
parentEIDFilter tasks by parent EID

Date Filters

NameTypeDescription
due_date_fromdatetimeFilter tasks with due date from this date (supports now, relative dates)
due_date_todatetimeFilter tasks with due date until this date (supports now, relative dates)
created_at_fromdatetimeFilter tasks created from this date
created_at_todatetimeFilter tasks created until this date

Embedding

NameTypeDescription
embedstringComma-separated list of resources to embed. Options: messages, messages.recipients, messages.author, messages.completedBy, messages.tags

Sorting

By default, tasks are sorted by dueDate (asc), completedAt (desc), created (desc).

NameTypeDescription
sort[dueDate]stringSort by due date. Values: asc, desc
sort[completedAt]stringSort by completion date. Values: asc, desc
sort[created]stringSort by creation date. Values: asc, desc
sort[title]stringSort by title. Values: asc, desc

Examples

Get all tasks assigned to a specific user

GET /networks/{networkEID}/tasks/?embed=messages&assignee={profileEID}

Get all tasks created by a specific author

GET /networks/{networkEID}/tasks/?embed=messages&author={profileEID}

Get completed tasks

GET /networks/{networkEID}/tasks/?embed=messages&completed=true

Get tasks created by author excluding self-assigned

GET /networks/{networkEID}/tasks/?embed=messages&author={profileEID}&exclude_recipient={profileEID}

Get overdue tasks (due date before now)

GET /networks/{networkEID}/tasks/?embed=messages&due_date_to=now

Get tasks due within 24 hours

GET /networks/{networkEID}/tasks/?embed=messages&due_date_from=now&due_date_to=+24 hour

Get tasks with pagination and sorting

GET /networks/{networkEID}/tasks/?embed=messages&limit=10&offset=0&sort[title]=asc

Response

StatusData
200Returns a collection of Task resources
400Bad request: returns an Error object
403Permission denied: returns an Error object
404Network not found: returns an Error object