Cron & Schedules

Velora jobs use 5-field cron expressions — and optionally a 6th year field to scope a job to a specific year. schedule_cron is required on create and can be updated later with PATCH.
Field order
text
┌─────── minute       (0–59)
│ ┌───── hour         (0–23)
│ │ ┌─── day of month  (1–31)
│ │ │ ┌─ month         (1–12)
│ │ │ │ ┌ day of week  (0–7,  Sun = 0 or 7)
│ │ │ │ │ ┌ year       (1970–2199, optional)
* * * * * [year]

Year field (optional)

Add a 6th field to limit a job to a specific year. The scheduler will fire the job only within that year and will not reschedule it afterwards.
ExpressionMeaning
*/5 * * * * 2027Every 5 minutes, within 2027 only
0 9 * * 1-5 2027Weekdays at 09:00, within 2027 only
0 0 1 1 * 2030At midnight on 1 Jan 2030
The year value must not be more than one year in the past relative to the current date. Jobs with an explicitly past year (e.g. 2024 when today is 2026) are rejected at create/update time. One year of leeway is allowed to account for timezone differences.

Validation and behavior

  • schedule_cron is required when creating a job.
  • timezone defaults to UTC if omitted.
  • When schedule_cron changes via PATCH, next_run_at is recomputed.
  • Pause/resume does not change cron; it only changes job status.
  • A year-scoped job stops rescheduling once the year has no more future occurrences.
  • Expressions must be valid cron syntax; invalid values return a validation_error with guidance.

Common expressions

ExpressionMeaning
*/5 * * * *Every 5 minutes
0 * * * *Every hour, on the hour
0 9 * * 1-5Weekdays at 09:00
0 0 * * *Daily at midnight
0 12 1 * *1st of each month at noon
30 6 * * 1Every Monday at 06:30
0 9,17 * * 1-5Weekdays at 09:00 and 17:00
*/5 * * * * 2027Every 5 min, within 2027 only
0 9 * * 1-5 2027Weekdays at 09:00, within 2027 only

Special characters

CharacterExampleMeaning
** * * * *Any value — match all
*/n*/15 * * * *Every n units (every 15 min)
a-b0 9 * * 1-5Range (Mon through Fri)
a,b0 9,17 * * *List of specific values

Timezones

All schedules run in UTC by default. Set timezone to an IANA timezone string to run the job at a local time. The cron expression is interpreted in that timezone.
Run at 09:00 New York time on weekdays
json
{
  "schedule_cron": "0 9 * * 1-5",
  "timezone": "America/New_York"
}

Create example

js
const res = await fetch("https://api.velora.dev/api/v1/jobs", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: "'{\n\"name\": \"Weekday report\",\n\"target_url\": \"https://example.com/hooks/report\",\n\"schedule_cron\": \"0 9 * * 1-5\",\n\"timezone\": \"America/New_York\"\n}'",
});
const data = await res.json();
console.log(data);

Year-scoped create example

Add a 6th year field to run the job only within a specific year.
js
const res = await fetch("https://api.velora.dev/api/v1/jobs", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: "'{\n\"name\": \"2027 campaign\",\n\"target_url\": \"https://example.com/hooks/campaign\",\n\"schedule_cron\": \"0 9 * * 1-5 2027\",\n\"timezone\": \"America/New_York\"\n}'",
});
const data = await res.json();
console.log(data);

Update schedule example

js
const res = await fetch("https://api.velora.dev/api/v1/jobs/JOB_ID", {
  method: "PATCH",
  headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: "'{\n\"schedule_cron\": \"0 8 * * 1-5\",\n\"timezone\": \"Europe/London\"\n}'",
});
const data = await res.json();
console.log(data);
Common IANA timezone strings: UTC, America/New_York, America/Los_Angeles, Europe/London, Europe/Berlin, Asia/Tokyo, Asia/Singapore, Australia/Sydney.

© 2026 Velora · API Documentation