Create a schedule
Start an instance or a job later. Send run_at to run once, or cron (with timezone) to repeat. spec is the body of POST /instances or POST /jobs and is checked now, so a schedule that is accepted can launch. Every schedule needs spec.max_runtime_minutes, so nothing it starts runs unbounded. Runs start within about 2 minutes of their time, as you, through the credential you created it with: revoking that API key or ending that agent sign-in pauses the schedule. At most 50 schedules per environment and 200 per workspace.
Authorizations
Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.
Body
Send exactly one of run_at (once) or cron (repeating).
instance, job The body each run sends, checked now by the same rules as the create endpoint: a JobCreateRequest for kind: job, an InstanceCreateRequest for kind: instance. max_runtime_minutes is required for both (job: 1 to 1440; instance: 5 to 10080).
Run once at this time. Must be a real calendar date (2027-02-30 is refused), in the future and at most 365 days ahead.
Repeat on this 5-field cron expression, read in timezone. Occurrences must be at least 15 minutes apart. Supports *, a-b, */n, a-b/n, lists a,b, names JAN-DEC and SUN-SAT, day-of-week 0 to 7 (0 and 7 are Sunday).
IANA timezone, e.g. America/New_York. A time skipped by a daylight saving change runs at the same offset after the gap (02:30 runs at 03:30); a time that happens twice runs once, the first time.
Repeating only. Skip a run while the previous run's instance or job is still live.
skip, allow Defaults to spec.name, or instance-schedule / job-schedule.
1 - 63Create it paused with false.
Response
Schedule created.
Starts an instance or a job later: once at run_at, or on every occurrence of cron in timezone. Runcrate checks schedules every 2 minutes, so a run starts within about 2 minutes of its time, as run_as through run_as_credential, in the environment it was created in. When many schedules are due at once, each workspace gets its turn.