Skip to main content
Polling allows you to monitor session progress and retrieve results by periodically checking the session status. This is an alternative to webhooks that’s useful when you can’t receive incoming HTTP requests or prefer a pull-based approach.

Usage

Response structure

When polling session status, you’ll receive a response with the following fields:
boolean
required
true while the session is running, false when complete
boolean | null
required
Session outcome: null while running, true if successful, false if failed
object
Metadata set in the workflow definition
object
Custom metadata you provided when starting the session
array
Metadata for files downloaded during the session
array
Data collected by scraper actions during the session
object | null
Structured output fields from workflow execution. null while the session is in progress, populated at session close.
string | null
A summary of what the agent accomplished. null while the session is in progress, populated at session close.
boolean
true if the session is currently paused (waiting to be resumed), false otherwise
string
The pause key identifier if the session is paused, empty string otherwise

Polling with timeout

For production use, always implement a timeout to prevent infinite polling:

Monitoring file downloads

The file_metadata field updates in real-time as file_metadata are downloaded during the session. You can use this to track download progress: