---
title: "Returns a task schedule by id."
method: GET
path: "/taskschedules/{taskScheduleId}"
tags: ["taskSchedules"]
---

# Returns a task schedule by id.

`GET /taskschedules/{taskScheduleId}`

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `taskScheduleId` string, uuid, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- TaskSchedule
  - `id` string, uuid — The id of the entity.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `userId` string, uuid — The id of the user this task schedule is for.
  - `taskId` string, uuid — The id of the task this task schedule is for.
  - `startDate` string, date-time — The start date and time of this task schedule.
  - `endDate` string, date-time — The end date and time of this task schedule.
  - `plannedDuration` integer — The number of seconds of planned work.

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
