---
title: "Schedule API"
description: "Register schedules and inspect or operate their runs."
category: "Reference"
---

Base URL: your SDK-facing API, locally `http://localhost:8081`. Read [authentication and conventions](https://pipelogiq.com/docs-next/api/) first. [Download OpenAPI 3.0](https://pipelogiq.com/openapi.yaml) for the full machine-readable contract.

For a complete request example, follow [Create or update a schedule](https://pipelogiq.com/docs-next/schedules/#create-or-update-a-schedule). Use this reference to look up individual operations and response codes.

## GET /schedules

List the application's schedules



**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `status` | query | No | string | `Active`, `Paused`, or `Archived`; omitted returns all statuses. |
| `cursor` | query | No | string | Pass the previous response's `nextCursor` unchanged; omit for the first page. |
| `limit` | query | No | integer | Page size from 1 to 200; defaults to 50. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | A page of schedules, each with a recent-run health summary | [ScheduleListResponse](https://pipelogiq.com/docs-next/api/schemas/#schedulelistresponse) |
| `400` | Invalid status filter or limit | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## PUT /schedules/{name}

Create or update a schedule

Idempotent upsert keyed on the application-scoped, case-insensitive name.

An unchanged body returns `200` without bumping `definitionVersion` or
moving `nextRunAt`, so re-applying the same schedule on every deploy is a
no-op. A changed body returns `200` with a new version and a re-planned
next run. A new name returns `201`. Re-applying an archived schedule
brings it back Active.

`definition` requires a name and 1–100 stages with names and handler names. Stage input is limited to 262,144 bytes; context values to 65,536 bytes. Validation differs between legacy creation, idempotent creation, and schedules: a successful upsert does not validate handler availability or an acyclic dependency graph.


**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Request body

Required.

Content type: `application/json`. [ScheduleUpsertRequest](https://pipelogiq.com/docs-next/api/schemas/#scheduleupsertrequest)

```yaml
$ref: "#/components/schemas/ScheduleUpsertRequest"
```

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | The existing schedule was updated or left unchanged | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `201` | A new schedule was created | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `400` | Validation failed, with per-field messages | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `500` | The schedule could not be stored | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## GET /schedules/{name}

Get one schedule



**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | Definition, policies, next and last run, health summary | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `400` | Invalid schedule name | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## GET /schedules/{name}/runs

List a schedule's run history



**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |
| `cursor` | query | No | string | Pass the previous response's `nextCursor` unchanged; omit for the first page. |
| `limit` | query | No | integer | Page size from 1 to 200; defaults to 50. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | A page of runs, newest first | [ScheduleRunListResponse](https://pipelogiq.com/docs-next/api/schemas/#schedulerunlistresponse) |
| `400` | Invalid schedule name or limit | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | — |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## POST /schedules/{name}/pause

Pause a schedule

Stops creating pipelines. The definition and history are kept.

**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | The paused schedule | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `401` | Missing or invalid API key | — |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## POST /schedules/{name}/resume

Resume a schedule

Recomputes `nextRunAt` from the current time. Ticks missed during the pause are not replayed, regardless of the catch-up policy.


**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | The resumed schedule | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `400` | The stored schedule can no longer be planned | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | — |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `409` | The schedule has no future run (a Once schedule already past) | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## POST /schedules/{name}/archive

Archive a schedule

Terminal. Re-applying the definition with PUT brings it back Active.

**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `200` | The archived schedule | [Schedule](https://pipelogiq.com/docs-next/api/schemas/#schedule) |
| `401` | Missing or invalid API key | — |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |

## POST /schedules/{name}/trigger

Run a schedule immediately

Creates a run with `trigger: Manual` right away. It does not move the
schedule's cursor, and overlap and catch-up policies do not apply — a
manual run was explicitly asked for. The optional `input` replaces the
first stage's input.


**Authentication:** `X-API-Key` header (application key).

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `name` | path | Yes | string | Application-scoped schedule name, matched case-insensitively. |

### Request body

Optional.

Content type: `application/json`. [ScheduleTriggerRequest](https://pipelogiq.com/docs-next/api/schemas/#scheduletriggerrequest)

```yaml
$ref: "#/components/schemas/ScheduleTriggerRequest"
```

### Responses

| Status | Meaning | Schema |
| --- | --- | --- |
| `201` | The manual run and its pipeline | [ScheduleTriggerResponse](https://pipelogiq.com/docs-next/api/schemas/#scheduletriggerresponse) |
| `400` | Invalid payload | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `401` | Missing or invalid API key | — |
| `404` | No such schedule in this application | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
| `409` | The schedule is archived | [ProblemDetails](https://pipelogiq.com/docs-next/api/schemas/#problemdetails) |
