Method: tasklists.list

Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.

HTTP request

GET https://tasks.googleapis.com/tasks/v1/users/@me/lists

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
maxResults

integer

Optional. Maximum number of task lists returned on one page. The default is 1000 (max allowed: 1000).

pageToken

string

Optional. Token specifying the result page to return.

Request body

The request body must be empty.

Response body

A page of task lists.

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "etag": string,
  "nextPageToken": string,
  "items": [
    {
      object (TaskList)
    }
  ]
}
Fields
kind

string

Type of the resource. This is always "tasks#taskLists".

etag

string

ETag of the resource.

nextPageToken

string

Token that can be used to request the next page of this result.

items[]

object (TaskList)

Collection of task lists.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/tasks
  • https://www.googleapis.com/auth/tasks.readonly

For more information, see the Authorization guide.

TaskLists

A page of task lists.

JSON representation
{
  "kind": string,
  "etag": string,
  "nextPageToken": string,
  "items": [
    {
      object (TaskList)
    }
  ]
}
Fields
kind

string

Type of the resource. This is always "tasks#taskLists".

etag

string

ETag of the resource.

nextPageToken

string

Token that can be used to request the next page of this result.

items[]

object (TaskList)

Collection of task lists.