Get a Specific Task

Purpose

This API is used to retrieve detailed information about a particular group or personal task, providing details 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 a particular task details.

Request URL

Method: GET

Group Task:

https://mail.zoho.com/api/tasks/groups/{zgid}/{taskId}

or

Personal Task:

https://mail.zoho.com/api/tasks/me/{taskId}

Path Parameters

  • zgidlong
    • Specifies the unique identifier used for groups in an organization.
    • This parameter can be retrieved from the Get all groups API.
  • taskIdlong

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

CopiedGroup Task:

curl "https://mail.zoho.com/api/tasks/groups/5******048/48184******91002" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Personal Task:

curl "https://mail.zoho.com/api/tasks/me/4818******00091002" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Response

CopiedGroup Task:
{
    "status": {
        "code": 200,
        "description": "success"
    },
    "data": {
        "tasks": [
            {
                "owner": {
                    "name": "Rebecca",
                    "id": 54136518
                },
                "numberOfSubtasks": 0,
                "modifiedTime": "2018-03-28T12:46:33+05:30",
                "attachments": [],
                "reminder": {
                    "dateTime": "2018-03-28T15:00:00+05:30",
                    "emailReminder": false,
                    "popupReminder": true
                },
                "subtasks": [],
                "dueDate": "28/03/2018",
                "description": "Blog posts and announcements",
                "project": {
                    "name": "Blogging",
                    "id": "48184000000005003"
                },
                "title": "Revamp Announcements",
                "priority": "Normal",
                "tags": [],
                "createdAt": "2018-03-27T20:55:31+05:30",
                "followers": [],
                "namespaceId": "54224987",
                "id": "48184000000091002",
                "assignee": null,
                "status": "In Progress"
            }
        ]
    }
}