Retrieve a Schedule

Parameters

idstring

The unique identifier of the schedule to retrieve

Returns

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

GET/schedules/{id}
curl -X GET https://api.next-cron.com/schedules/49d10214-f4f1-497a-94b7-c0e597ad3fea \
   -H "Authorization: Bearer $YOUR_API_KEY"
Response
{
  "id": "49d10214-f4f1-497a-94b7-c0e597ad3fea",
  "name": "My Schedule",
  "scheduledAt": "2024-03-20T15:00:00Z",
  "status": "Pending",
  "endpoint": "https://www.example.com/api/webhook",
  "data": {
    "userId": "123"
  },
  "tags": [
    "tag1",
    "tag2"
  ],
  "createdAt": "2024-03-19T10:30:00Z"
}