Skip to Content

Complete a waitpoint token via HTTP callback

Required accessNone: this endpoint doesn't need an API key.
POST
/api/v1/waitpoints/tokens/{waitpointId}/callback/{callbackHash}

Completes a waitpoint token using the pre-signed callback URL returned in the url field when the token was created. No API key is required — the callbackHash in the URL acts as the authentication token.

This is designed to be given directly to external services (e.g. as a webhook URL) so they can unblock a waiting run without needing access to your API key. The entire request body is passed as the output data to the waiting run.

If the token is already completed, this is a no-op and returns success: true.

Path Parameters

waitpointId*string

The ID of the waitpoint token.

callbackHash*string

The HMAC hash that authenticates the request. This is embedded in the url returned when creating the token — do not construct it manually.

Request Body

application/json
  1. body

Any JSON object. The entire body is passed as the output data to the run waiting on this token. If the body is not valid JSON, an empty object is used.

Response Body

Waitpoint token completed successfully

application/json
  1. response
success*true

Always true when the request succeeds.

Value intrue
Example Request
# The full URL is returned as `url` when you create a tokencurl -X POST "https://api.trigger.dev/api/v1/waitpoints/tokens/waitpoint_abc123/callback/abc123hash" \  -H "Content-Type: application/json" \  -d '{"status": "approved", "comment": "Looks good to me!"}'
Example Response
{  "success": true}

Was this page helpful?

Last updated

Edit on GitHub