{"openapi":"3.1.0","info":{"title":"Google Tasks API (AAuth Connect)","version":"v1","description":"The Google Tasks API lets you manage your tasks and task lists.","x-discovery-revision":"20260927","x-upstream":"https://tasks.googleapis.com/"},"servers":[{"url":"https://tasks.connect.aauth.dev"}],"paths":{"/lists":{"get":{"operationId":"list_task_lists","x-google-operation":"tasks.tasklists.list","summary":"Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.","description":"Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.","parameters":[{"name":"maxResults","in":"query","description":"Maximum number of task lists returned on one page. Optional. The default is 1000 (max allowed: 1000).","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"pageToken","in":"query","description":"Token specifying the result page to return. Optional.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskLists"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks.readonly"]}]},"post":{"operationId":"create_task_list","x-google-operation":"tasks.tasklists.insert","summary":"Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time.","description":"Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskList"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskList"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks"]}],"x-aauth-access-mode":"auth-token"}},"/lists/{tasklist}/tasks/{task}":{"delete":{"operationId":"delete_task","x-google-operation":"tasks.tasks.delete","summary":"Deletes the specified task from the task list. If the task is assigned, both the assigned task and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there.","description":"Deletes the specified task from the task list. If the task is assigned, both the assigned task and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"task","in":"path","description":"Task identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks"]}],"x-aauth-access-mode":"per-call"},"get":{"operationId":"get_task","x-google-operation":"tasks.tasks.get","summary":"Returns the specified task.","description":"Returns the specified task.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"task","in":"path","description":"Task identifier.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks.readonly"]}]},"patch":{"operationId":"update_task","x-google-operation":"tasks.tasks.patch","summary":"Updates the specified task. This method supports patch semantics.","description":"Updates the specified task. This method supports patch semantics.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"task","in":"path","description":"Task identifier.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks"]}],"x-aauth-access-mode":"auth-token"}},"/lists/{tasklist}/tasks":{"post":{"operationId":"create_task","x-google-operation":"tasks.tasks.insert","summary":"Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.","description":"Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"parent","in":"query","description":"Parent task identifier. If the task is created at the top level, this parameter is omitted. An assigned task cannot be a parent task, nor can it have a parent. Setting the parent to an assigned task results in failure of the request. Optional.","required":false,"schema":{"type":"string"}},{"name":"previous","in":"query","description":"Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks"]}],"x-aauth-access-mode":"auth-token"},"get":{"operationId":"list_tasks","x-google-operation":"tasks.tasks.list","summary":"Returns all tasks in the specified task list. Doesn't return assigned tasks by default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.","description":"Returns all tasks in the specified task list. Doesn't return assigned tasks by default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"dueMin","in":"query","description":"Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.","required":false,"schema":{"type":"string"}},{"name":"dueMax","in":"query","description":"Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.","required":false,"schema":{"type":"string"}},{"name":"showDeleted","in":"query","description":"Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.","required":false,"schema":{"type":"boolean"}},{"name":"completedMax","in":"query","description":"Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.","required":false,"schema":{"type":"string"}},{"name":"showAssigned","in":"query","description":"Optional. Flag indicating whether tasks assigned to the current user are returned in the result. Optional. The default is False.","required":false,"schema":{"type":"boolean"}},{"name":"maxResults","in":"query","description":"Maximum number of tasks returned on one page. Optional. The default is 20 (max allowed: 100).","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"showHidden","in":"query","description":"Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.","required":false,"schema":{"type":"boolean"}},{"name":"updatedMin","in":"query","description":"Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.","required":false,"schema":{"type":"string"}},{"name":"showCompleted","in":"query","description":"Flag indicating whether completed tasks are returned in the result. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. Optional. The default is True.","required":false,"schema":{"type":"boolean"}},{"name":"pageToken","in":"query","description":"Token specifying the result page to return. Optional.","required":false,"schema":{"type":"string"}},{"name":"completedMin","in":"query","description":"Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tasks"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks.readonly"]}]}},"/lists/{tasklist}/tasks/{task}/move":{"post":{"operationId":"move_task","x-google-operation":"tasks.tasks.move","summary":"Moves the specified task to another position in the destination task list. If the destination list is not specified, the task is moved within its current list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.","description":"Moves the specified task to another position in the destination task list. If the destination list is not specified, the task is moved within its current list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.","parameters":[{"name":"tasklist","in":"path","description":"Task list identifier.","required":true,"schema":{"type":"string"}},{"name":"task","in":"path","description":"Task identifier.","required":true,"schema":{"type":"string"}},{"name":"destinationTasklist","in":"query","description":"Optional. Destination task list identifier. If set, the task is moved from tasklist to the destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks cannot currently be moved between lists.","required":false,"schema":{"type":"string"}},{"name":"previous","in":"query","description":"Optional. New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. The task set as previous must exist in the task list and can not be hidden. Exceptions: 1. Tasks that are both completed and hidden can only be moved to position 0, so the previous field must be empty.","required":false,"schema":{"type":"string"}},{"name":"parent","in":"query","description":"Optional. New parent task identifier. If the task is moved to the top level, this parameter is omitted. The task set as parent must exist in the task list and can not be hidden. Exceptions: 1. Assigned and repeating tasks cannot be set as parent tasks (have subtasks), or be moved under a parent task (become subtasks). 2. Tasks that are both completed and hidden cannot be nested, so the parent field must be empty.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}}},"security":[{"upstreamOAuth":["https://www.googleapis.com/auth/tasks"]}],"x-aauth-access-mode":"auth-token"}}},"components":{"schemas":{"AssignmentInfo":{"type":"object","properties":{"spaceInfo":{"readOnly":true,"description":"Output only. Information about the Chat Space where this task originates from. This field is read-only.","$ref":"#/components/schemas/SpaceInfo"},"linkToTask":{"type":"string","readOnly":true,"description":"Output only. An absolute link to the original task in the surface of assignment (Docs, Chat spaces, etc.)."},"surfaceType":{"readOnly":true,"description":"Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE.","enumDescriptions":["Unknown value for this task's context.","The task is created from Gmail.","The task is assigned from a document.","The task is assigned from a Chat Space."],"type":"string","enum":["CONTEXT_TYPE_UNSPECIFIED","GMAIL","DOCUMENT","SPACE"]},"driveResourceInfo":{"readOnly":true,"$ref":"#/components/schemas/DriveResourceInfo","description":"Output only. Information about the Drive file where this task originates from. Currently, the Drive file can only be a document. This field is read-only."}},"description":"Information about the source of the task assignment (Document, Chat Space)."},"DriveResourceInfo":{"description":"Information about the Drive resource where a task was assigned from (the document, sheet, etc.).","type":"object","properties":{"resourceKey":{"readOnly":true,"type":"string","description":"Output only. Resource key required to access files shared via a shared link. Not required for all files. See also developers.google.com/drive/api/guides/resource-keys."},"driveFileId":{"type":"string","description":"Output only. Identifier of the file in the Drive API.","readOnly":true}}},"SpaceInfo":{"description":"Information about the Chat Space where a task was assigned from.","properties":{"space":{"readOnly":true,"type":"string","description":"Output only. The Chat space where this task originates from. The format is \"spaces/{space}\"."}},"type":"object"},"Task":{"type":"object","properties":{"assignmentInfo":{"readOnly":true,"description":"Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.","$ref":"#/components/schemas/AssignmentInfo"},"selfLink":{"description":"Output only. URL pointing to this task. Used to retrieve, update, or delete this task.","type":"string","readOnly":true},"notes":{"description":"Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.","type":"string"},"links":{"description":"Output only. Collection of links. This collection is read-only.","readOnly":true,"items":{"properties":{"description":{"type":"string","description":"The description (might be empty)."},"link":{"description":"The URL.","type":"string"},"type":{"type":"string","description":"Type of the link, e.g. \"email\", \"generic\", \"chat_message\", \"keep_note\"."}},"type":"object"},"type":"array"},"position":{"description":"Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the \"move\" method to move the task to another position.","readOnly":true,"type":"string"},"completed":{"type":"string","description":"Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed."},"id":{"description":"Task identifier.","type":"string"},"parent":{"description":"Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the \"move\" method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.","type":"string","readOnly":true},"status":{"type":"string","description":"Status of the task. This is either \"needsAction\" or \"completed\"."},"hidden":{"type":"boolean","description":"Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only."},"title":{"description":"Title of the task. Maximum length allowed: 1024 characters.","type":"string"},"etag":{"description":"ETag of the resource.","type":"string"},"webViewLink":{"description":"Output only. An absolute link to the task in the Google Tasks Web UI.","type":"string","readOnly":true},"kind":{"description":"Output only. Type of the resource. This is always \"tasks#task\".","type":"string","readOnly":true},"updated":{"type":"string","description":"Output only. Last modification time of the task (as a RFC 3339 timestamp).","readOnly":true},"deleted":{"type":"boolean","description":"Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False."},"due":{"type":"string","description":"Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn't represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn't possible to read or write the time that a task is scheduled for using the API."}}},"TaskList":{"type":"object","properties":{"title":{"description":"Title of the task list. Maximum length allowed: 1024 characters.","type":"string"},"kind":{"readOnly":true,"description":"Output only. Type of the resource. This is always \"tasks#taskList\".","type":"string"},"selfLink":{"readOnly":true,"type":"string","description":"Output only. URL pointing to this task list. Used to retrieve, update, or delete this task list."},"id":{"description":"Task list identifier.","type":"string"},"updated":{"type":"string","readOnly":true,"description":"Output only. Last modification time of the task list (as a RFC 3339 timestamp)."},"etag":{"type":"string","description":"ETag of the resource."}}},"TaskLists":{"type":"object","properties":{"kind":{"type":"string","description":"Type of the resource. This is always \"tasks#taskLists\"."},"etag":{"type":"string","description":"ETag of the resource."},"items":{"description":"Collection of task lists.","items":{"$ref":"#/components/schemas/TaskList"},"type":"array"},"nextPageToken":{"type":"string","description":"Token that can be used to request the next page of this result."}}},"Tasks":{"type":"object","properties":{"kind":{"description":"Type of the resource. This is always \"tasks#tasks\".","type":"string"},"items":{"description":"Collection of tasks.","type":"array","items":{"$ref":"#/components/schemas/Task"}},"etag":{"description":"ETag of the resource.","type":"string"},"nextPageToken":{"description":"Token used to access the next page of this result.","type":"string"}}}},"securitySchemes":{"upstreamOAuth":{"type":"oauth2","description":"Upstream Google OAuth scope used by the proxy (agents use AAuth, not this scheme).","flows":{"authorizationCode":{"authorizationUrl":"https://accounts.google.com/o/oauth2/v2/auth","tokenUrl":"https://oauth2.googleapis.com/token","scopes":{"https://www.googleapis.com/auth/tasks":"tasks","https://www.googleapis.com/auth/tasks.readonly":"tasks.readonly"}}}}}}}