Skip to main content

Overview

Completes a waitpoint token, unblocking any run that is currently paused on wait.forToken(). An optional data payload can be included and will be returned to the waiting run as the result. If the token is already completed, this is a no-op and returns success: true.
This endpoint accepts both secret API keys and the short-lived public JWT embedded in the token’s url. This makes it safe to call directly from frontend clients or email links without exposing your secret key.

Endpoint

Path parameters

string
required
The ID of the waitpoint token to complete, prefixed with waitpoint_.

Request body

All fields are optional.
any
Any JSON-serializable value to pass back to the run waiting on this token. The data is available as result.output inside the run after wait.forToken() returns.

Response

boolean
Always true when the request succeeds.

Examples

Response example

Receiving the data in your task

After completing the token, the waiting run resumes and wait.forToken() returns: