Get task with the ClickUp API
Returns a task with its status, assignees, dates, tags, custom field values, checklists and attachments.
- Identifier
- clickup_get_task
The request
POST https://connect.reportei.com/api/tools/clickup_get_task/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"task_id": "<task_id>"
}
}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 |
|---|---|---|---|
| task_id | string | Yes | Id of the task, from List tasks or Search tasks, or its custom task id when custom_task_ids is true. |
| custom_task_ids | boolean | No | True when task_id is a custom task id, such as DEV-42, the custom_id that List tasks returns. Requires team_id. |
| team_id | integer | No | Id of the Workspace, from List workspaces, which returns it as text: send it as a number. Needed only with custom_task_ids. |
| include_subtasks | boolean | No | True to include the subtasks of the task. |
| include_markdown_description | boolean | No | True to also return the description in Markdown, in markdown_description. |
Supported connections
Your customer connects their ClickUp 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/clickup, 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/clickup_get_task. It becomes your agent's tool definition with no conversion.
Other ClickUp tools
- List workspacesGETLists the Workspaces (called teams in API v2) that the user authorized for the connection, each with its id and its members. The user ids of the members are the ones the assignee arguments take.
- List spacesGETLists the Spaces of a Workspace, with the task statuses each Space defines. The status names are what the status arguments of the task tools take.
- List foldersGETLists the Folders of a Space. Subfolders come in the same flat list, with parent_folder holding the id of the Folder they sit in.
- List listsGETLists the Lists of a Folder. Lists that sit directly in a Space, outside any Folder, come from List folderless lists.
- List folderless listsGETLists the Lists that sit directly in a Space, outside any Folder.
- Create listPOSTCreates a List in a Folder. Requires name. The List takes the task statuses of its Folder or Space.
- List tasksGETLists the tasks whose home is a List, up to 100 per page, leaving out closed tasks and subtasks unless asked. Page through with page while last_page in the response is false. Dates are Unix time in milliseconds.
- Search tasksGETSearches the tasks of a whole Workspace by date, such as the tasks due this week in every List, up to 100 per page and leaving out closed tasks unless asked. Page through with page until a response brings fewer than 100 tasks. Dates are Unix time in milliseconds.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
