---
title: "Fetch a scheduled task."
method: GET
path: "/v1/schedules/{name}"
tags: ["Schedules"]
---

# Fetch a scheduled task.

`GET /v1/schedules/{name}`

## Response `200`

Schedule.

- Schedule — Scheduled task as stored by the library. `payload` is base64-encoded. `deadline` is an int64 nanosecond duration offset (the library's `time.Duration` JSON form).
  - `name` string, required
  - `schedule` string, required — Cron expression.
  - `queue` string, required
  - `task_type` string, required
  - `payload` string, byte
  - `deadline` integer
  - `max_tries` integer
  - `created_at` string, date-time, required

## Other responses

- `404` — Resource does not exist.

---

[API](https://skmtc.net/choria-io/apis/asyncjobs-http-api.md) · [All operations](https://skmtc.net/choria-io/apis/asyncjobs-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/choria-io/asyncjobs-http-api/versions/48b17d96adbf/schema)
