---
title: "List Self-Schedules"
method: GET
path: "/v1/agents/{agent_id}/self-schedules"
tags: ["API v1", "Agents", "Self Schedules"]
---

# List Self-Schedules

`GET /v1/agents/{agent_id}/self-schedules`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/agents/{agent_id}/self-schedules`
- Auth: API key in header `x-api-key`

List the agent's self-scheduled future runs.

## Path parameters

- `agent_id` string, required

## Query parameters

- `status` string, nullable: Filter by status: scheduled, completed, or failed.

## Response `200`

Successful Response

- SelfScheduleView[]
  - `id` string, required: Self-schedule id. Pass it to DELETE to cancel.
  - `agent_id` string, required: Owning agent id.
  - `task_id` string, nullable: Execution thread the run continues, if any.
  - `prompt` string, nullable: Instruction for the scheduled run.
  - `run_at` string, date-time, required: When the run fires (UTC).
  - `status` string, required: scheduled, completed, failed, or cancelled.
  - `cancel_reason` string, nullable: Why the run was cancelled, when status is cancelled.
  - `desktop_device_id` string, nullable: Read-only: the desktop computer running xpander Desktop that the run continues on, when it was booked from one.
  - `created_at` string, date-time, nullable: Creation timestamp.
  - `updated_at` string, date-time, nullable: Last update timestamp.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/4389ec0875d0?raw)
