GET https://api.cronhooks.io/groups/{groupId}/schedules?skip=0&limit=10
Name | Required |
---|---|
groupId
group id
|
Required |
skip
Number of records to skip.
|
Required |
limit
Number of records to return in response.
|
Required |
curl "https://api.cronhooks.io/groups/3a012d1f-fe83-4855-2860-84f8a85e154c/schedules?skip=0&limit=10" \
-H "Authorization: Bearer <YOUR_API_TOKEN>"
{
"totalCount": 2,
"items": [
{
"id": "3a013346-7e3d-eaa5-feee-371f5f8614ad",
"groupId": "3a012d1f-fe83-4855-2860-84f8a85e154c",
"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"
},
"payload": "{}",
"contentType": "application/json; charset=utf-8",
"isRecurring": true,
"cronExpression": "*/5 * * * *",
"nextRunAt": "2019-02-01T12:48:26.983",
"sendCronhookObject": true,
"sendFailureAlert": true,
"startsAt": "2023-02-01T13:00:00",
"endsAt": "2023-03-01T13:00:00",
"retryCount": "1",
"retryIntervalSeconds": "5",
"creationTime": "2019-02-01T09:35:27.568Z",
"lastModificationTime": "2019-02-01T09:35:27.568Z"
}
]
}