Get task with the Google Tasks API
Returns a task with its title, notes, status, due date, completion time, parent and webViewLink, the link to the task in the Google Tasks web app.
- Identifier
- google_tasks_get_task
The request
POST https://connect.reportei.com/api/tools/google_tasks_get_task/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"tasklist": "<tasklist>",
"task": "<task>"
}
}Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| tasklist | string | Yes | Task list id from List task lists. |
| task | string | Yes | Task id from List tasks. |
Supported connections
Your customer connects their Google Tasks account once, with one of the modes below. The same connection serves every tool of the toolkit.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/google_tasks, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
The response
On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.
Ready for AI agents
This tool's input is a JSON Schema, available at GET /api/tools/google_tasks_get_task. It becomes your agent's tool definition with no conversion.
Other Google Tasks tools
- List task listsGETLists the task lists of the account, with id and title. Use the id of an item as tasklist in the other tools. Pass nextPageToken as pageToken to read the next page.
- Create task listPOSTCreates a task list and returns it with its id. An account can have up to 2000 task lists.
- Update task listPATCHRenames a task list.
- List tasksGETLists the tasks of a task list, subtasks included, with id, title, notes, status, due, completed and parent, the id of the parent task of a subtask. Tasks completed in the Google apps are hidden: set showHidden to true to see them. Pass nextPageToken as pageToken to read the next page.
- Create taskPOSTCreates a task in a task list, in the first position unless previous says otherwise. Pass parent to create it as a subtask. Tasks assigned from Google Docs or Chat spaces cannot be created here.
- Update taskPATCHChanges the title, notes, due date or status of a task; only the fields sent change. Set status to completed to complete the task, or to needsAction to reopen it. To change its list, parent or position, use Move task.
- Move taskPOSTMoves a task to another position, under another parent task or to another task list. Without parent the task goes to the top level, and without previous it goes to the first position. Repeating tasks cannot move to another list.
- Delete taskDELETEDeletes a task. A task assigned from Google Docs or Chat spaces is deleted there too.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
