Schedule Management
The Schedule Management section covers all operations related to creating, updating, and managing scheduled HTTP requests.Get All Schedules
Retrieve all schedules for the authenticated user.Promise<Schedule[]>
Get Schedule by ID
Retrieve a specific schedule by its ID.id(string, required): The unique identifier of the schedule
Promise<Schedule>
Create Schedule
Create a new scheduled HTTP request.name(string, required): A descriptive name for the scheduledescription(string, optional): Additional description of what the schedule doescronExpression(string, required): Valid cron expression defining when to runtimezone(string, required): IANA timezone identifier (e.g., ‘America/New_York’) - View all optionsendpoint(string, required): The HTTP endpoint to callhttpMethod(“GET” | “POST” | “PUT” | “DELETE” | “PATCH”, required): HTTP method to usebody(string, optional): Request body for POST/PUT/PATCH requestsheaders(Record<string, string>, optional): HTTP headers to include in the requestmaxRetries(number, optional): Total attempts including the first, clamped to 1-10 (default: 3)timeoutSeconds(number, optional): Request timeout in seconds, clamped to 1-300 (default: 30)expectedStatusCodes(string, optional): Comma-separated 3-digit codes/ranges counted as success (e.g."200-299,410"). Omit or leave blank for the default rule (status below 400)
Promise<Schedule>
Bulk Create Schedules
Pass an array (1-1000 items) tocreateSchedule to create many schedules in one
request. Validation is all-or-nothing: if any entry is invalid or the batch
exceeds a plan limit, none are created.
Promise<BulkCreateResponse> where BulkCreateResponse is
{ count: number; schedules: { id: string; name: string }[] }
Update Schedule
Update an existing schedule.id(string, required): The unique identifier of the schedule to updatedata(UpdateScheduleData, required): Object containing fields to update
name(string): Update the schedule namedescription(string): Update the descriptioncronExpression(string): Update the cron expressiontimezone(string): Update the timezoneendpoint(string): Update the endpoint URLhttpMethod(“GET” | “POST” | “PUT” | “DELETE” | “PATCH”): Update HTTP methodbody(string): Update request bodyheaders(Record<string, string>): Update HTTP headersmaxRetries(number): Total attempts including the first, clamped to 1-10timeoutSeconds(number): Request timeout in seconds, clamped to 1-300expectedStatusCodes(string): Comma-separated codes/ranges counted as success. Pass""to clear back to the default rule (status below 400)
Promise<Schedule>
Delete Schedule
Delete a schedule permanently.id(string, required): The unique identifier of the schedule to delete
Promise<void>
Toggle Schedule
Enable or disable a schedule without deleting it.id(string, required): The unique identifier of the scheduleenabled(boolean, required): Whether to enable (true) or disable (false) the schedule
Promise<Schedule>
Trigger Schedule
Manually trigger a schedule to run immediately, regardless of its cron schedule.id(string, required): The unique identifier of the schedule to trigger
Promise<string> - the id of the newly created job. Fetch its
details with getJob(id).