---
title: "Runs an agent schedule."
method: POST
path: "/agents/{agentId}/schedules/{scheduleId}/run"
tags: ["agentSchedules"]
---

# Runs an agent schedule.

`POST /agents/{agentId}/schedules/{scheduleId}/run`

Immediately starts a new agent session for the selected schedule.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `agentId` string, uuid, required
- `scheduleId` string, uuid, required

## Response `200`

OK

- AiThreadCreatedResponseModel — Describes a created agent thread.
  - `id` string, uuid — The thread id.
  - `threadRunId` string, uuid, nullable — The current run id.
  - `acceptedMessageId` string, uuid, nullable — The accepted first-message id, or null when the thread was created without a message.
  - `type` string, nullable — The thread type.
  - `title` string, nullable — The thread title.
  - `status` 'ready' | 'accepted' | 'queued' | 'failed' — The creation result: ready without a first message, accepted with a first message, queued when the first message waits for a run, or failed to start.
  - `createdOn` string, date-time, nullable — The creation timestamp.
  - `createdBy` string, uuid — The id of the user who created the thread.
  - `updatedOn` string, date-time, nullable — The last update timestamp.
  - `updatedBy` string, uuid — The id of the user who last updated the thread.
  - `agentId` string, uuid, nullable — The custom agent assigned to the thread.
  - `projectId` string, uuid, nullable — The associated project id.
  - `taskId` string, uuid, nullable — The associated task id.
  - `clientId` string, uuid, nullable — The associated client id.
  - `documentId` string, uuid, nullable — The associated document id.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

## Changes

- **2026-09-20** `5332322ffca3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/awork-io/apis/api-v1-reference/changes/agents/:agentId/schedules/:scheduleId/run/post.md)

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/awork-io/apis/api-v1-reference/revisions/eadefd26df12?raw)
