DocsNodesWaitsWait for a call

Wait for a call

Parks the run on a wake URL until something calls it, or the time runs out. Hand the URL to a service that calls back when it's done, like a payment or an approval.

Kindcontrol:waitForHttp
GroupWaits
Credits0.1 credits
Ports out2

How it looks

Settings

SettingRequiredWhat it does
Give up afterttlYesHow long to wait before leaving by timeout.
TokentokenYesThe secret part of the wake URL, at least 24 characters. Press Generate. It's the only thing guarding the URL, so keep it to yourself.

Ports

PortThe run leaves by it when
defaultThe wake URL was called.
timeoutNobody called in time.

What it adds to the run

Later nodes can read these, in a condition or as {{name}} in a text field.

ValueHolds
wakePayloadThe body of the call that woke it.

Example

wake the run
curl -X POST https://api.dev.wbskt.com/api/callbacks/wake/<token> \
  -H "Content-Type: application/json" \
  -d '{ "approved": true }'
One run at a timeThe token is fixed in the workflow, so two runs parked on the same node at once would share a URL. Keep the trigger's concurrency on Queue or Drop if running.

Problems you might see

CodeMeans
WAITFORHTTP_WEAK_TOKENThe token is missing or shorter than 24 characters. Shown when you publish.

Problems found when you publish stop the publish and point at the node. Problems while a run is going fail the node, and its On failure setting decides what happens next. See the error codes for the API's own.