List all schedules

GET https://api.cronhooks.io/schedules?skip=0&limit=10

PARAMETERS

Name Required
skip
Number of records to skip.
Required
limit
Number of records to return in response.
Required

REQUEST

curl "https://api.cronhooks.io/schedules?skip=0&limit=10" \
-H "Authorization: Bearer <YOUR_API_TOKEN>"

Response

{
  "totalCount": 0,
  "items": [
    {
      "id": "3a012d1f-fe83-4855-2860-84f8a85e154c",
      "groupId": "3a0136ac-123f-c222-5b2d-ae5b0c5937a6",
      "title": "Send email to inactive users",
      "description": "Send an email to users who are inactive for more than 60 days and offer a discount for upgrading subscriptions.",
      "url": "https://example.com/webhooks/inactive-email",
      "timezone": "asia/karachi",
      "method": "POST",
      "headers": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
      },
      "payload": "{
        \"additionalProp1\": \"string\",
        \"additionalProp2\": \"string\",
        \"additionalProp3\": \"string\"
      }",
      "contentType": "application/json; charset=utf-8",
      "status": "scheduled",
      "errorMessage": "",
      "isRecurring": false,
      "cronExpression": "",
      "runAt": "2019-02-01T12:48:26.983",
      "sendCronhookObject": true,
      "sendFailureAlert": true,
      "startsAt": "2023-02-01T13:00:00",
      "endsAt": "2023-03-01T13:00:00",
      "retryCount": "3",
      "retryIntervalSeconds": "5",
      "creationTime": "2019-02-01T09:35:27.568Z",
      "lastModificationTime": "2019-02-01T09:35:27.568Z"
    }
  ]
}