# Scheduled and repeating pushes

> Send a push later, or on a repeating schedule, by adding at, delay, or repeat to your push URL.

Add `at`, `delay`, or `repeat` to any push, and Opush holds it on the server instead of sending it right away. When the time comes, Opush sends it like a normal push. The schedule parameters don't appear in the notification.

```bash
# Every weekday at 09:50
curl "https://opu.sh/YOUR_KEY/Standup/Starts%20in%2010%20minutes?at=09:50&repeat=weekdays"

# In one hour
curl "https://opu.sh/YOUR_KEY/Drink%20water?delay=3600&id=water"

# Cancel the one above
curl "https://opu.sh/YOUR_KEY?id=water&delete=1"
```

## Parameters [#parameters]

<TypeTable
  type={{
    at: {
      type: "string",
      description: "When to send. See the formats below. Use either at or delay, not both.",
    },
    delay: {
      type: "number",
      description: "Send after this many seconds.",
    },
    repeat: {
      type: "string",
      description: "hourly, daily, weekdays (Monday to Friday), weekly, or monthly.",
    },
    tz: {
      type: "string",
      description: "IANA time zone, like Asia/Taipei or America/New_York. Defaults to the device's time zone.",
    },
  }}
/>

### Formats for `at` [#formats-for-at]

| Format | Example | Meaning |
|---|---|---|
| Unix time in seconds | `1793782800` | That exact moment |
| ISO 8601 with an offset | `2026-11-04T09:00:00+08:00`, `2026-11-04T01:00:00Z` | That exact moment |
| Local date and time | `2026-11-04T09:00` or `2026-11-04 09:00` | That time in `tz` |
| Time only | `09:00` | Today at 09:00 in `tz`, or tomorrow if 09:00 has passed |

Times without an offset are read in `tz`. If you leave out `tz`, Opush uses the time zone the device reported.

## Repeating pushes [#repeating-pushes]

With `repeat`, the first push goes out at `at` (or after `delay`). If you give only `repeat`, the first push goes out one period from now.

- Repeats follow the local clock in `tz`. A daily 09:00 push stays at 09:00 when daylight saving time starts or ends.
- `weekly` repeats on the same weekday as the first push.
- `monthly` on the 31st moves to the last day of shorter months, then goes back to the 31st.
- If the server was down for a while, Opush skips to the next time after now. It doesn't send the missed ones.

## The response [#the-response]

A scheduled push returns `message: "scheduled"` with the schedule:

```json
{
  "code": 200,
  "message": "scheduled",
  "timestamp": 1793779200,
  "data": { "id": "sch_…", "fire_at": "2026-11-04T01:50:00Z", "repeat": "weekdays" }
}
```

`fire_at` is the next send time, in UTC.

These return `400`:

- `at` is more than a minute in the past
- `at` is more than a year ahead
- `at` or `tz` can't be read, or `repeat` isn't one of the five values
- Both `at` and `delay` are set

## Replacing and cancelling [#replacing-and-cancelling]

Give the push an `id` to manage it later.

- **Replace**: schedule again with the same `id` on the same device. The new schedule replaces the old one.
- **Cancel**: send `delete=1` with the same `id`. This cancels the pending schedule and also [recalls](/docs/push/update-and-recall) any notification with that `id`.

```bash
# Change the reminder to 10:00 every day
curl "https://opu.sh/YOUR_KEY/Drink%20water?id=water&at=10:00&repeat=daily"

# Stop it
curl "https://opu.sh/YOUR_KEY?id=water&delete=1"
```

## See and cancel schedules [#see-and-cancel-schedules]

| Where | How |
|---|---|
| iPhone app | The **Send** tab lists pushes scheduled to your devices. You can cancel them there. |
| Web console | **Push** › **Scheduled pushes** at [app.opu.sh](https://app.opu.sh). |
| A script | Send `delete=1` with the push's `id`. |
| AI agents (MCP) | `notify` takes `at`, `delay`, `repeat` and `tz` to schedule. When the agent is signed in to your account, it can also use `list_schedules` and `cancel_schedule`. |

The lists include schedules made by scripts with `at`, `delay`, or `repeat`. For encrypted pushes they show that the push is encrypted instead of the title and body.

You can also schedule from the app. When you write a new push on the **Send** tab, turn on **Schedule** and pick a time and repeat. This works when the recipient is on an Opush server.

## Encrypted pushes [#encrypted-pushes]

Scheduling works with [encrypted pushes](/docs/push/encryption). Opush stores the `ciphertext` or `sealed` value as it is and never decrypts it. Keep `at`, `delay`, `repeat`, `tz`, and `id` outside the encrypted part, in plain text. The server can't read anything inside.

## Good to know [#good-to-know]

- Opush checks schedules every minute. A push can arrive up to about a minute after the time you set.
- If the device has hit its push limit or the server is busy at send time, Opush tries again a minute later.
- How many pending schedules each device can have depends on your plan. Over the limit, the request returns `403`. Waiting won't help: cancel a schedule first.
- Team channel URLs don't support schedule parameters yet.
