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.
Kind
control:waitForHttpGroupWaits
Credits0.1 credits
Ports out2
How it looks
Settings
| Setting | Required | What it does |
|---|---|---|
| Give up afterttl | Yes | How long to wait before leaving by timeout. |
| Tokentoken | Yes | The 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
| Port | The run leaves by it when |
|---|---|
default | The wake URL was called. |
timeout | Nobody called in time. |
What it adds to the run
Later nodes can read these, in a condition or as {{name}} in a text field.
| Value | Holds |
|---|---|
wakePayload | The body of the call that woke it. |
Example
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
| Code | Means |
|---|---|
WAITFORHTTP_WEAK_TOKEN | The 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.
See also
Parks the run until a named signal arrives from the console, the API or another run.
Outdefaultwith Give up aftertimeoutcontrol:awaitSignalStarts when something outside WBSKT posts to the workflow's own URL. The body becomes the run's input.
Outdefaulttrigger:webhookPauses the run for a fixed time. Waiting costs nothing.
Outdefaultcontrol:delay