Skip to main content
This guide explains how to create, list, retrieve, update, pause, resume, and delete schedules using the Edges API.

Creating a Schedule

  • Use the API to schedule an action by calling the appropriate action’s /schedule endpoint (e.g., /v1/actions/{action-name}/schedule).
  • You can schedule a one-time run in the future, or set up a recurring schedule using a cron expression.
Parameters:
  • inputs: The inputs for your action (array).
  • callback: Object with a url (required) to receive results.
  • cron: (optional) POSIX cron expression for recurring schedules.
  • schedule_at: (optional) ISO8601 date-time for a one-shot schedule.
  • timezone: (optional) IANA timezone string (e.g., “Europe/Paris”).

Example: Create a recurring schedule

Example: Create a one-time schedule

Creating CRON Expressions

A CRON expression is a string used to define the schedule for recurring jobs. It consists of five fields separated by spaces, representing:
  1. Minute (0-59)
  2. Hour (0-23)
  3. Day of month (1-31)
  4. Month (1-12)
  5. Day of week (0-6, where 0 = Sunday)
Examples:
  • 0 9 * * 1-5 — Every weekday (Monday to Friday) at 9:00 AM
  • 30 2 * * * — Every day at 2:30 AM
  • 0 0 1 * * — On the first day of every month at midnight
  • */30 * * * * — Every 30 minutes
You can use online tools like crontab.guru to build and test your CRON expressions.

Listing Schedules

  • Use GET /v1/schedules to retrieve all schedules.
  • You can filter by status, action_name, user_uid, workspace_uid, and more. Pagination is supported via limit and offset. Sorting is available using the sort parameter (prefix with - for descending order).

Example: List all active schedules for a workspace

When using the sandbox, the workspace UID will be different from your main workspace.

Getting a Specific Schedule

Example: Get a schedule by UID

Managing a Schedule (Pause, Resume, Cancel)

Example: Pause a schedule

Example: Resume a schedule

Example: Cancel (delete) a schedule

Updating a Schedule

  • To update timing or inputs, cancel the existing schedule and create a new one with the desired parameters.

See the API Reference for detailed endpoint usage, parameters, and more examples.