---
title: "Read queued attempts in a time range"
description: "PubNio API schedule.list: read queued attempts in a time range. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read queued attempts in a time range

Read queued attempts in a time range with [`GET /api/v1/schedule`](https://pubnio.com/api/v1/docs#tag/schedule/GET/api/v1/schedule). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

Returns current queued attempts in ascending scheduled order. The inclusive range must be at most 90 days; a wider range returns ScheduleRangeTooWide. Any workspace actor can read it.

| Parameter     | In    | Type   | Required |
| ------------- | ----- | ------ | -------- |
| `workspaceId` | query | UUID   | Yes      |
| `from`        | query | string | Yes      |
| `to`          | query | string | Yes      |
| `accountId`   | query | UUID   | No       |
| `queueId`     | query | UUID   | No       |
| `cursor`      | query | string | No       |
| `limit`       | query | string | No       |

## Response

- HTTP 200: `ScheduleList` with `data`, `hasMore`, `nextCursor`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const week = await workspace.schedule.list({
  from: "2026-12-01T00:00:00Z",
  to: "2026-12-08T00:00:00Z",
});
```

### Python

```python
week = workspace.schedule.list(
    from_="2026-12-01T00:00:00Z",
    to="2026-12-08T00:00:00Z",
)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/schedule?workspaceId=$WORKSPACE_ID&from=2026-12-01T00%3A00%3A00Z&to=2026-12-08T00%3A00%3A00Z" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio schedule list --from 2026-12-01T00:00:00Z --to 2026-12-08T00:00:00Z
```

### MCP execute

```js
async () => {
  const response = await codemode.request({
    method: "GET",
    path: "/api/v1/schedule",
    query: {
      workspaceId: codemode.workspaceId,
      from: "2026-12-01T00:00:00Z",
      to: "2026-12-08T00:00:00Z",
    },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Up to 100 items a page; pass `nextCursor` back as `cursor`. See [Pagination](https://pubnio.com/docs/concepts/pagination/).

## Related

- [Schedule operations](https://pubnio.com/docs/reference/#schedule)
- [Publishing](https://pubnio.com/docs/publishing/)

Source: https://pubnio.com/docs/reference/schedule-list/index.mdx
