Skip to content

List schedules

Retrieve all schedules on this site.

Endpoint

GET /wp-json/nereida-imgrot/v1/schedules

Headers

Authorization: Bearer your-api-key-here
Accept: application/json

Response

{
  "schedules": [
    {
      "id":               "sched_abc123",
      "name":             "Lobby status",
      "endpoint_path":    "image-rotate",
      "endpoint_file":    "status.jpg",
      "url":              "https://yoursite.com/image-rotate/status.jpg",
      "default_image_id": 4521,
      "blocks": [
        { "days": [1,2,3,4,5], "start": "08:00", "end": "17:00", "image_id": 4522 }
      ],
      "created": "2026-04-01T12:00:00Z",
      "updated": "2026-05-01T09:00:00Z"
    }
  ],
  "count": 1
}

Errors

  • 401 — invalid or missing API key.
  • 403 — API access is gated to Enterprise tier; your license is not Enterprise.