Waits for a specific event to be signaled by another process, workflow, or session. This endpoint blocks until the event is signaled or the timeout is reached. Useful for coordinating between multiple browser sessions or workflows.
curl --request POST \ --url https://api.anchorbrowser.io/v1/events/{event_name}/wait \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data '{ "timeoutMs": 30000 }'
{ "data": { "message": "Task completed", "result": "success", "timestamp": "2024-01-01T12:00:00Z" } }
API key passed in the header
The name of the event to wait for
"workflow_completed"
Event was signaled successfully
The response is of type object.
object