---
title: "Get task details"
method: GET
path: "/v2/tasks/{taskId}"
tags: ["Tasks"]
---

# Get task details

`GET /v2/tasks/{taskId}`

## Request

- Base URL: `https://api.zenzap.co`
- URL: `https://api.zenzap.co/v2/tasks/{taskId}`
- Auth: one of:
  - HTTP bearer and API key in header `X-Signature`
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.zenzap.co/oauth/token` scopes: `task:read`
- TypeScript: <https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/docs/v2/tasks/:taskId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a single task by ID.

## Path parameters

- `taskId` string, uuid, required

## Headers

- `X-Signature` string
- `X-Timestamp` integer

## Response `200`

Task retrieved successfully

- TaskResponse
  - `id` string, uuid: Task ID
  - `topicId` string, uuid: Topic ID the task belongs to
  - `title` string: Task title
  - `description` string: Task description
  - `status` 'Open' | 'Done': Task status
  - `assignee` string: Assignee profile ID (empty if unassigned)
  - `dueDate` integer: Due date as Unix timestamp in milliseconds (0 if not set)
  - `isDueDateTimeSelected` boolean: Whether due date includes time
  - `index` number, double: Internal task ordering index
  - `createdAt` integer: Task creation timestamp (ms)
  - `updatedAt` integer: Task last update timestamp (ms)

## Other responses

- `400`: Bad request - invalid input
- `401`: Unauthorized - invalid or missing API token
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api.md) - [All operations](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zenzap/apis/zenzap-external-integration-api/revisions/37faae2c2036?raw)
