Edges offers three ways to execute actions or workflows via API.
Each suits a different use case:
đč 1. Live Mode (Synchronous)
When to use it: You want results instantly, in real-time.
What to expect: Youâll receive paginated data immediately.
Heads up: Youâll need to handle rate limiting (429 errors) and pagination yourself.
đč 2. Async Mode (Asynchronous)
When to use it: You donât need instant results and prefer background processing.
What to expect: Weâll send a callback to your webhook when the run completes.
Bonus: We handle pagination for you. The results are included in the callback payload.
đč 3. Schedule Mode (CRON)
When to use it: You want to automate recurring jobs (e.g., daily, weekly).
What to expect: Runs are triggered based on your CRON expression. Results are sent to your webhook just like async mode.
đ Run Lifecycle: What Happens After Launch
Runs (especially async and scheduled) go through different statuses:
CREATED â Not yet in queue
QUEUED â Waiting to run
RUNNING â In progress
SUCCEEDED â All good â
FAILED, BLOCKED, or STOPPED â Something went wrong đ«
PARTIAL_SUCCEEDED â Mixed results; some data is available
Use this info to track progress and build custom logic.
đ Key Endpoints
Here are the most common endpoints youâll use to manage runs:
Action | Method | Endpoint |
List all runs | GET (paginated) | /v1/api/runs/list |
Get a runâs details | GET | /v1/api/runs/get?uid=... |
Resume a run | POST | /v1/api/runs/{run_uid}/resume |
For scheduled runs:
Action | Method | Endpoint |
List all schedules | GET (paginated) | /v1/api/schedules/list |
Get a schedule | GET | /v1/api/schedules/get?uid=... |
Manage (pause/resume) | POST | /v1/api/schedules/manage |
đ© Callback Format (Async / Scheduled)
Youâll receive a callback like this when a run is done:
{
"run": {
"run_uid": "string",
"status": "SUCCEEDED" // or FAILED, etc.
},
"results": [],
"error": null
}Same format every time. Simple and predictable.
đ§ CRON Tips
CRON lets you automate actions on a custom scheduleâno manual launching needed.
You build your schedule using five fields:
âminute hour day month day-of-week
How it works:
minute: 0â59
hour: 0â23 (21 = 9 PM)
day: 1â31
month: 1â12
day-of-week: 0â6 (0 or 7 = Sunday, 1 = Monday, etc.)
Examples:
Every day at 2:30 AM:
30 2 * * *Every weekday at 9 PM (MondayâFriday):
0 21 * * 1-5
Need help?
Use crontab.guru to build and check your CRON schedule.
Or just ask our support teamâweâre happy to help review your setup!
đ Need More Details?
Check out the full guide here: https://docs.edges.run/v1/runs/overview