# List an agent's schedules and runs

Source: https://docs.vlayers.ai/reference/hosting/list-agent-schedules

`GET /v1/agents/{id}/schedules` · scope `workspace:read`

Lists the schedules the agent's serving version declares in its manifest (a cron expression in UTC, at most once a minute, calling a published endpoint of kind `schedule`), when each fires next, and the recent runs with how each ended. A run that fell due and was not run is listed as `skipped` with its reason. Schedules are changed by publishing a new version.

Requires an API key with the `workspace:read` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The agent id. Example: `"0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78"` |

## Request

cURL:

```bash
curl "https://api.vlayers.ai/v1/agents/$AGENT_ID/schedules" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { schedules } = await voicelayer.hosting.listAgentSchedules('<agent-id>');
console.log(schedules);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.list_agent_schedules("<agent-id>")
print(result.schedules)
```

## Response `200`

```json
{
  "agentId": "0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78",
  "versionId": "0192f5c1-5e6f-7a8b-9c0d-1e2f3a4b5c67",
  "schedules": [
    {
      "name": "daily-digest",
      "cron": "0 9 * * *",
      "endpoint": "digest",
      "missed": "skip",
      "nextRunAt": "2026-10-20T15:04:05.000Z",
      "lastRun": {
        "schedule": "daily-digest",
        "fireAt": "2026-10-20T15:04:05.000Z",
        "runKey": "sched:0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78:daily-digest:2026-10-20T15:04:05.000Z",
        "status": "done",
        "attempts": 1,
        "reason": null,
        "httpStatus": 200,
        "startedAt": "2026-10-20T15:04:05.000Z",
        "endedAt": "2026-10-20T15:04:05.000Z",
        "manual": false
      }
    }
  ],
  "recentRuns": [
    {
      "schedule": "daily-digest",
      "fireAt": "2026-10-20T15:04:05.000Z",
      "runKey": "sched:0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78:daily-digest:2026-10-20T15:04:05.000Z",
      "status": "done",
      "attempts": 1,
      "reason": null,
      "httpStatus": 200,
      "startedAt": "2026-10-20T15:04:05.000Z",
      "endedAt": "2026-10-20T15:04:05.000Z",
      "manual": false
    }
  ]
}
```
