API Reference

Retrieve a list of tasks

Description

Returns a paginated list of tasks.

GET /tasks

🚧

Required OAuth Scopes:

task:read

Parameters

ParameterInTypeRequiredDescription
$filterquerystringfalseThe properties to filter the results by.
$orderByquerystringfalseOne or more comma-separated expressions to indicate the order in which to sort the results.
$maxpagesizequeryintegerfalseThe maximum number of results to retrieve
$nextquerystringfalsePagination cursor for next set of results.

Filter Options

Available logical operators: and

NamePredicates Supported
assigneeeq
completed.dateTimeeq, lt, gt, le, ge
created.dateTimeeq, lt, gt, le, ge
dueDateeq, lt, gt, le, ge
location.fileeq
location.fileSegmenteq
modified.dateTimeeq, lt, gt, le, ge
statuseq
titlecontains

Sorting Options

NameOrders Supported
assigneeasc, desc
completed.dateTimeasc, desc
created.dateTimeasc, desc
dueDateasc, desc
modified.dateTimeasc, desc
statusasc, desc
titleasc, desc

Code Samples

curl -X GET https://api.app.wdesk.com/platform/v1/tasks  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/tasks  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/tasks" \
 --output-document -  \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://api.app.wdesk.com/platform/v1/tasks', headers = headers)

print(r.json())

Returns

200 - OK

Returns a JSON object with data and @nextLink properties. data contains a list of Task objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn't appear. If the request returns no results at all, data contains an empty array.

Example Responses


{
  "data": [
    {
      "id": "129g274495354cf18edb6b3ea3d023b2",
      "title": "Review Document",
      "description": "Review document for spelling and grammar",
      "status": "Completed",
      "dueDate": "2019-10-30T00:00:00Z",
      "sourceUrl": "https://app.wdesk.com/tasks/d/UVdOauIzVaVkQjdxTmzNNUOEUTQOakEnTnpJTE9ENXkuEkdGeaF4OENNJEV3NUTBmA?token=NTc0NDU2MTg1MjM0ODUyTM",
      "completed": {
        "dateTime": "2019-10-29T15:03:27Z"
      },
      "modified": {
        "dateTime": "2019-10-29T15:03:27Z"
      },
      "assignee": {
        "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
        "displayName": "Jane Doe",
        "email": "[email protected]"
      },
      "created": {
        "user": {
          "id": "V3ZVc2VyFzV3NiQ5NDA2NjIzNxk2njH",
          "displayName": "John Doe",
          "email": "[email protected]"
        },
        "dateTime": "2019-10-28T15:03:27Z"
      },
      "location": {
        "file": "124efa2a142f472ba1ceab34ed18915f",
        "fileSegment": "465ttdh2a142y75ehsft5ab34edf5675"
      }
    },
    {
      "id": "120h274405355cf18ecb6b3ea3d023a7",
      "title": "Add example",
      "description": "Add an example of an object",
      "status": "Completed",
      "dueDate": "2019-10-29T00:00:00Z",
      "sourceUrl": "https://app.wdesk.com/tasks/d/UVdOauIzVaVkQjdxTmzNNUOEUTQOakEnTnpJTE9ENXkuEkdGeaF21ENNJEU3NUTBmB?token=NTc0NDU2MTk1MjM3ODDyTZ",
      "completed": {
        "dateTime": "2019-10-28T15:03:27Z"
      },
      "modified": {
        "dateTime": "2019-10-28T15:03:27Z"
      },
      "assignee": {
        "id": "V1ZVd2VyFzU3NiQ1NDA4NjIzNzk2MjD",
        "displayName": "Jane Doe",
        "email": "[email protected]"
      },
      "created": {
        "user": {
          "id": "V3ZVc2VyFzV3NiQ5NDA2NjIzNxk2njH",
          "displayName": "John Doe",
          "email": "[email protected]"
        },
        "dateTime": "2019-10-27T15:03:27Z"
      },
      "location": {
        "file": "124efa2a142f472ba1ceab34ed18915f",
        "fileSegment": "465ttdh2a142y75ehsft5ab34edf5675"
      }
    }
  ],
  "@nextLink": "{opaqueUrl}"
}