ScalixScalix Docs
Sign up

Cron API

Cron API to create, update, list, and trigger scheduled jobs in Scalix Cloud and review each schedule's execution history.

REST API endpoints for Cron. 7 operations.

List cron schedules

plaintext
GET /v1/cron/schedules

Returns all scheduled jobs for the caller's project.

Auth: Bearer API key

Responses

StatusDescription
200Schedule list
401Missing or invalid API key
500Internal error

operationId: listCronSchedules

Create a cron schedule

plaintext
POST /v1/cron/schedules

Creates a new scheduled job.

Auth: Bearer API key

Request body

application/json (required) — schema CronScheduleCreateRequest.

Create a scheduled job. action_type + action_config are a PAIR — the config keys are validated per type (audit 2026-10-21: this body was a bare object in the contract and the shipped CLI posted the wrong key, so every CLI create 400'd). Mirrors platform-services cron::api::CreateScheduleRequest.

FieldTypeRequiredDescription
namestringYes
descriptionstring | nullNo
cron_expressionstringYesFive-field cron expression (minute hour day month weekday). The key is cron_expression — NOT expression.
timezonestring | nullNoIANA timezone for the schedule; defaults to UTC when omitted.
action_typeCronActionType enum: function, webhookYesOnly function and webhook.
action_configobjectYesPer-type config. function: {"function_id": "<id>"} (required) — the function is invoked with the fixed payload {"trigger":"cron", "project_id":…}. webhook: {"url": "<public https url>"} (required, SSRF-validated at create and pinned per delivery) plus optional "secret" (HMAC header x-scalix-signature: sha256=<hex>) and "headers" (string map). Webhook deliveries are ALWAYS POST; a method key is ignored.

Responses

StatusDescription
201Schedule created
400Invalid body (e.g. expression instead of cron_expression, or action_type outside function/webhook)
401Missing or invalid API key
500Internal error

operationId: createCronSchedule

Delete a cron schedule

plaintext
DELETE /v1/cron/schedules/{id}

Removes a scheduled job by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSchedule id

Responses

StatusDescription
200Schedule deleted
401Missing or invalid API key
500Internal error

operationId: deleteCronSchedule

Get a cron schedule

plaintext
GET /v1/cron/schedules/{id}

Returns a single scheduled job by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSchedule id

Responses

StatusDescription
200Schedule details
401Missing or invalid API key
500Internal error

operationId: getCronSchedule

Update a cron schedule

plaintext
PUT /v1/cron/schedules/{id}

Updates an existing scheduled job.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSchedule id

Request body

application/json (required) — schema CronScheduleUpdateRequest.

Update a scheduled job. The action pair is immutable — delete and recreate to change what runs. Mirrors cron::api::UpdateScheduleRequest.

FieldTypeRequiredDescription
namestring | nullNo
descriptionstring | nullNo
cron_expressionstring | nullNo
enabledboolean | nullNoPause (false) / resume (true).

Responses

StatusDescription
200Schedule updated
401Missing or invalid API key
500Internal error

operationId: updateCronSchedule

List schedule executions

plaintext
GET /v1/cron/schedules/{id}/executions

Returns the execution history of a scheduled job.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSchedule id

Responses

StatusDescription
200Execution history
401Missing or invalid API key
500Internal error

operationId: listCronExecutions

Trigger a cron schedule

plaintext
POST /v1/cron/schedules/{id}/trigger

Runs a scheduled job immediately, outside its normal schedule.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesSchedule id

Responses

StatusDescription
200Schedule triggered
401Missing or invalid API key
500Internal error

operationId: triggerCronSchedule