List schedules

List all cron schedules attached to a script.


GET/api/scripts/{script}/schedules

List all schedules

Returns a paginated list of every schedule on a script. Each schedule holds a cron expression and the list of servers it targets.

Request

GET
/api/scripts/{script}/schedules
curl -X GET "https://ploi.io/api/scripts/{script}/schedules" \
  -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"
    }
  ]
}