POST
/
v1
/
events
/
{event_name}
/
wait
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"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

event_name
string
required

The name of the event to wait for

Example:

"workflow_completed"

Body

application/json

Response

200
application/json

Event was signaled successfully

The response is of type object.