waitpoints
Complete a waitpoint token
Changed onCompletes a waitpoint token, unblocking any run that is waiting for it via wait.forToken(). An optional data payload can be passed and will be returned to the waiting run. If the token is already completed, this is a no-op and returns success: true.
This endpoint accepts both secret API keys and short-lived JWTs (public access tokens), making it safe to call from frontend clients.
post/api/v1/waitpoints/tokens/{waitpointId}/complete
Request
- Base URLhttps://api.trigger.dev
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
waitpointIdstring required
The ID of the waitpoint token to complete.
Request body
Example request
{
"data": {
"status": "approved",
"comment": "Looks good to me!"
}
}Response
Waitpoint token completed successfully
Changes
- info
endpoint added
- info