Get All Tasks Created by You

Purpose

This API is used to retrieve all tasks created by you, providing details for each task such as its ID, title, description, due date, owner, assignee, priority, status, project name, and ID under which it falls, as well as subtasks and attachment details if available.

OAuth Scope

Use the scope

ZohoMail.tasks.ALL (or) ZohoMail.tasks.READ

to generate the Authtoken.

ALL - Full access to tasks.

READ - Retrieve all the tasks created by you.

Request URL

Method: GET

https://mail.zoho.com/api/tasks/

Query Parameters

  • view* string
    • Specifies to retrieve the tasks that have been assigned to the user.
    • Provide the value as createdbyme.
  • action* string
    • Specifies the action to be performed.
    • Provide the value as view.
  • limit integer
    • Specifies the number of tasks to retrieve.
    • Possible Values: (1 - 499)
    • Default value : 20
  • from integer
    • Specifies the task number from which retrieval has to be done. e.g.: If you want to retrieve tasks starting from the 50th task to the 70th task, the 'from' value should be 50, and the 'limit' value should be 20.
    • Possible values : (0 - Number of tasks available).
    • Default value : 0

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

Copiedcurl "https://mail.zoho.com/api/tasks/?view=createdbyme&action=view&from=1&limit=1" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Response

Copied{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "paging": {
      "nextPage": "/api/tasks/?view=createdbyme&action=view&from=1&limit=1"
    },
    "tasks": [
      {
        "owner": {
          "name": "Rebecca",
          "id": 42522589
        },
        "numberOfSubtasks": 0,
        "modifiedTime": "2018-10-30T15:36:27+05:30",
        "attachments": [],
        "subtasks": [],
        "dueDate": "30/10/2018",
        "description": "Blog posts and announcements",
        "project": {
          "name": "General",
          "id": "4497000000053001"
        },
        "title": "Revamp Announcements",
        "priority": "Normal",
        "tags": [],
        "createdAt": "2018-10-25T13:36:51+05:30",
        "followers": [],
        "namespaceId": "42522589",
        "id": "4497000001134001",
        "assignee": {
          "name": "Paula M",
          "id": 42522589
        },
        "status": "In Progress"
      }
    ]
  }
}