EdgeCron API Docs
API ReferenceSchedule Triggers

Create a schedule

POST /schedules

Create a schedule

Create a schedule.

POST
https://api.edgecron.com/v1/schedules

Authentication required

Send `X-Key-ID`, `X-Timestamp`, and `X-Signature` with every request. The signature is lowercase hex HMAC-SHA256 over `timestamp + "\n" + payload`.

Parameters

This endpoint does not define path or query parameters.

Request body

ParametersTypeRequiredDescription
namestringYes-
cron_exprstringYes-
timezonestringNoDefault: UTC.
payloadobjectNoJSON payload forwarded to the target endpoint.
endpoint_idsinteger[]NoTarget endpoint IDs. Empty = all active endpoints
{
  "name": "billing-webhook",
  "cron_expr": "*/5 * * * *",
  "timezone": "UTC",
  "payload": {},
  "endpoint_ids": [
    1
  ]
}

Response

All successful responses use the EdgeCron API envelope.

{
  "code": 0,
  "message": "success",
  "request_id": "req_abc123",
  "data": {
    "id": 101,
    "app_id": "app_123",
    "name": "billing-webhook",
    "cron_expr": "*/5 * * * *",
    "timezone": "Asia/Shanghai",
    "payload": {},
    "status": "active",
    "next_run_at": "2026-07-01T12:00:00Z",
    "created_at": "2026-07-01T12:00:00Z",
    "updated_at": "2026-07-01T12:00:00Z",
    "endpoint_ids": [
      1
    ],
    "endpoint_names": {}
  }
}

Schema

ParametersTypeRequiredDescription
idintegerNoResource identifier.
app_idstringNoApplication identifier.
namestringNo-
cron_exprstringNoExample: */5 * * * *.
timezonestringNoExample: Asia/Shanghai.
payloadobjectNoJSON payload forwarded to the target endpoint.
statusactive / paused / deletedNoAllowed: active, paused, deleted.
next_run_atstring (date-time)No-
created_atstring (date-time)NoCreation timestamp.
updated_atstring (date-time)NoLast update timestamp.
endpoint_idsinteger[]NoTarget endpoint IDs. Empty = all active endpoints
endpoint_namesRecord string to stringNoEndpoint ID → name map for display convenience