Skip to main content

When to use polling

Polling is the simplest way to get execution results. Call GET /v1/executions/{id} in a loop until the status reaches a terminal state.
Polling is rate-limited and intended for testing, prototyping, and small-scale applications where you want to validate your idea quickly. For production applications at scale, use webhooks instead — they deliver results instantly with zero wasted API calls and no rate limit concerns.

Basic polling loop

Rate limit headers

Every response includes rate limit information:
If you hit the limit, you’ll receive a 429 Too Many Requests with a Retry-After header telling you how many seconds to wait.

Fetching the result

Once status is COMPLETED, fetch the full result:
Download any files using the file download flow.