Skip to content

Scheduled Endpoints

Any Wrapd endpoint can be configured with a cron schedule. Scheduled endpoints run automatically at the specified times while still remaining callable on demand via the API.

Add a schedule field to an endpoint with a standard 5-field cron expression:

version: 1
endpoints:
- name: db-backup
method: POST
command: /ops/backup.sh
timeout: 300
schedule: "0 2 * * *" # daily at 2:00 AM UTC

All schedules run in UTC. The cron expression follows the standard 5-field format:

minute hour day-of-month month day-of-week
0 2 * * *

Add the schedule field directly to an endpoint definition:

endpoints:
- name: cleanup
method: POST
command: ./cleanup.sh
schedule: "*/5 * * * *"

Open the endpoint detail sidebar and enter a cron expression in the Schedule field. Click Save. The schedule takes effect on the agent’s next config refresh.

A scheduled endpoint is not limited to automatic runs. It remains callable via the API at any time, just like a regular endpoint. The schedule simply adds automatic execution on top of the normal HTTP trigger.

Terminal window
# Still works, regardless of schedule
curl -X POST https://api.wrapd.sh/v1/yourname/db-backup \
-H "X-API-Key: YOUR_KEY"

Both scheduled and manual executions count toward your monthly execution quota.

If the agent is offline when a scheduled run is due to fire, the run is missed. Wrapd does not queue or retry missed runs. The missed execution is logged in the dashboard with a missed status so you can see what was skipped.

When the agent comes back online, the schedule resumes from the next fire time. There is no catch-up execution for runs missed during downtime.

You can pause a schedule from the dashboard without removing it. In the endpoint detail sidebar, toggle the Pause switch next to the schedule. While paused:

  • The cron expression is preserved but no automatic runs are triggered
  • The endpoint is still callable manually via the API
  • Resuming restarts the schedule from the next fire time

Scheduled endpoints are available on paid plans:

PlanScheduled endpoints
Free0
Pro3
TeamUnlimited

If you exceed your plan’s limit, the agent logs a warning and ignores schedules beyond the cap. Upgrade your plan from Settings in the dashboard.

ExpressionMeaning
*/5 * * * *Every 5 minutes
0 * * * *Every hour, on the hour
0 2 * * *Daily at 2:00 AM UTC
30 9 * * 1-5Every weekday at 9:30 AM UTC
0 0 * * 0Every Sunday at midnight UTC
0 6,18 * * *Twice daily at 6:00 AM and 6:00 PM UTC
0 0 1 * *First day of every month at midnight UTC

A cron expression has five fields separated by spaces:

FieldAllowed valuesSpecial characters
Minute0-59* , - /
Hour0-23* , - /
Day of month1-31* , - /
Month1-12* , - /
Day of week0-6 (0 = Sunday)* , - /

Special characters:

  • * — matches all values
  • , — list separator (e.g. 1,15 means the 1st and 15th)
  • - — range (e.g. 1-5 means 1 through 5)
  • / — step (e.g. */10 means every 10 units)