Retrieve a Cron Job

Parameters

idstring

The unique identifier of the cron job to retrieve

Returns

Returns the cron job object if a valid identifier was provided. Returns null if the cron job does not exist.

GET/cron/{id}
curl -X GET https://api.next-cron.com/cron/49d10214-f4f1-497a-94b7-c0e597ad3fea \
   -H "Authorization: Bearer $YOUR_API_KEY"
Response
{
  "id": "49d10214-f4f1-497a-94b7-c0e597ad3fea",
  "expression": "0 0 * * *",
  "name": "My Cron Job",
  "invocations": 1249,
  "timezone": "Europe/London",
  "status": "Active",
  "endpoint": "https://www.example.com/api/next-cron",
  "data": null,
  "createdAt": "2024-03-19T10:30:00Z",
  "nextInvocation": "2024-03-20T00:00:00Z"
}