Get schedule

Fetch a single schedule attached to a script.


GET/api/scripts/{script}/schedules/{schedule}

Get a schedule

Returns the schedule with its cron expression, server list, pause state, and the computed next/last run timestamps.

Request

GET
/api/scripts/{script}/schedules/{schedule}
curl -X GET "https://ploi.io/api/scripts/{script}/schedules/{schedule}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "script_id": 42,
    "cron_expression": "*/5 * * * *",
    "servers": [12, 18],
    "is_paused": false,
    "next_run_at": "2026-05-13T08:55:00+00:00",
    "last_run_at": "2026-05-13T08:50:00+00:00",
    "created_at": "2026-05-12 10:11:22",
    "updated_at": "2026-05-13 08:50:01"
  }
}