Signals an event with associated data, unblocking any clients waiting for this event. This enables coordination between different browser sessions, workflows, or external processes.
curl --request POST \ --url https://api.anchorbrowser.io/v1/events/{event_name} \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data '{ "data": { "message": "Task completed", "result": "success", "timestamp": "2024-01-01T12:00:00Z" } }'
{ "data": { "status": "success" } }
API key passed in the header
The name of the event to signal
"workflow_completed"
Event signaled successfully
The response is of type object.
object