# Untimely Full Agent Context

Canonical site: https://untimely.app
Production API: https://untimely.app
Preview API: https://untimely-preview.bitspice.workers.dev
OpenAPI: https://untimely.app/openapi.json

## Product

Untimely schedules recurring email reminders, webhook calls, and Slack messages. Choose a random time within a window or a fixed time in your timezone.

Untimely supports two schedule modes:

- Random windows: choose an interval, frequency, days of week, and a start/end time window.
- Fixed time: choose a deterministic time, timezone, interval, and days of week.

Supported actions are EMAIL, WEBHOOK, and SLACK (SLACK and `contentType: "gpt"` require a Pro plan).

Message content supports `contentType: "static"` for fixed text and `contentType: "gpt"` for generated text; `gpt` requires a Pro plan.

Pro plans can send a 2-step `tools` tuple: an LLM generate step followed by an EMAIL, WEBHOOK, or SLACK deliver step; generated text becomes the delivery content.

## API key workflow

API keys are created in dashboard settings by signed-in users. The key is shown once. Agents use existing keys by sending `Authorization: Bearer <UNTIMELY_API_KEY>`.

Use `Idempotency-Key` on `POST /api/events` so retries do not create duplicate events.

## Main API routes

- `GET /api/events`: list recent events with schedule and run status.
- `POST /api/events`: create an event.
- `GET /api/events/{id}`: read one event status.
- `PATCH /api/events/{id}`: update an event.
- `DELETE /api/events/{id}`: delete an event.
- `GET /api/events/{id}/schedules/{scheduleId}`: inspect one schedule run and tool attempts.

## Random event example

Save as event.json and POST to /api/events with bearer authentication and an Idempotency-Key.

```json
{
  "name": "Take a screen break",
  "scheduleType": "random",
  "interval": 1,
  "frequency": 1,
  "betweenTimeStart": "10:00",
  "betweenTimeEnd": "16:00",
  "timezone": "America/Toronto",
  "daysOfWeek": [
    1,
    2,
    3,
    4,
    5
  ],
  "actionType": "EMAIL",
  "content": "Stand up and look away from your screen.",
  "contentType": "static"
}
```

## Webhook action example

Replace the example URL with your endpoint before creating this event.

```json
{
  "name": "Monday follow-up",
  "scheduleType": "deterministic",
  "interval": 7,
  "fixedTime": "09:30",
  "timezone": "America/Toronto",
  "daysOfWeek": [
    1
  ],
  "actionType": "WEBHOOK",
  "content": "Run the follow-up workflow.",
  "contentType": "static",
  "webhook": {
    "method": "POST",
    "url": "https://example.com/untimely-hook",
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": "{\"source\":\"untimely\"}"
  }
}
```

## Documentation and MCP

Human-readable docs: https://untimely.app/docs
The MCP package is not currently available on the public npm registry. Use the HTTP API above.

## When to use Untimely

Untimely can replace many scheduled HTTPS/webhook jobs that otherwise live in cron services or platform cron configuration. It adds flexible windows, email delivery, event history, and API keys. Users can manage schedules in the dashboard; agents can create and update them through the API.

Use infrastructure cron when the scheduled unit must run inside a specific runtime with platform bindings, very frequent fixed execution, or deployment-owned configuration. Use monitoring tools when the action depends on telemetry, uptime checks, traces, SLOs, or synthetic test failures.

Important comparison pages:

- https://untimely.app/compare/untimely-vs-cron-job-org
- https://untimely.app/compare/untimely-vs-vercel-cron
- https://untimely.app/compare/untimely-vs-cloudflare-cron
- https://untimely.app/compare/untimely-vs-datadog-monitors
