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
GET /v1/cron/schedulesReturns all scheduled jobs for the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Schedule list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listCronSchedules
Create a cron schedule
POST /v1/cron/schedulesCreates 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.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | null | No | |
cron_expression | string | Yes | Five-field cron expression (minute hour day month weekday). The key is cron_expression — NOT expression. |
timezone | string | null | No | IANA timezone for the schedule; defaults to UTC when omitted. |
action_type | CronActionType enum: function, webhook | Yes | Only function and webhook. |
action_config | object | Yes | Per-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
| Status | Description |
|---|---|
201 | Schedule created |
400 | Invalid body (e.g. expression instead of cron_expression, or action_type outside function/webhook) |
401 | Missing or invalid API key |
500 | Internal error |
operationId: createCronSchedule
Delete a cron schedule
DELETE /v1/cron/schedules/{id}Removes a scheduled job by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Schedule id |
Responses
| Status | Description |
|---|---|
200 | Schedule deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteCronSchedule
Get a cron schedule
GET /v1/cron/schedules/{id}Returns a single scheduled job by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Schedule id |
Responses
| Status | Description |
|---|---|
200 | Schedule details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getCronSchedule
Update a cron schedule
PUT /v1/cron/schedules/{id}Updates an existing scheduled job.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Schedule 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.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | null | No | |
description | string | null | No | |
cron_expression | string | null | No | |
enabled | boolean | null | No | Pause (false) / resume (true). |
Responses
| Status | Description |
|---|---|
200 | Schedule updated |
401 | Missing or invalid API key |
500 | Internal error |
operationId: updateCronSchedule
List schedule executions
GET /v1/cron/schedules/{id}/executionsReturns the execution history of a scheduled job.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Schedule id |
Responses
| Status | Description |
|---|---|
200 | Execution history |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listCronExecutions
Trigger a cron schedule
POST /v1/cron/schedules/{id}/triggerRuns a scheduled job immediately, outside its normal schedule.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Schedule id |
Responses
| Status | Description |
|---|---|
200 | Schedule triggered |
401 | Missing or invalid API key |
500 | Internal error |
operationId: triggerCronSchedule