From 4d36d20ab7d21358ed51eb833ce3a1d76575a67e Mon Sep 17 00:00:00 2001 From: appdevelopers9a Date: Wed, 14 Jan 2026 23:10:09 +0530 Subject: [PATCH] docs: fix waitpoint token completion request body field Fixed documentation examples to use correct 'data' field instead of 'output' for the waitpoint token completion endpoint. The API schema expects 'data' in the request body, but all code examples (curl, Python, Ruby, Go) incorrectly showed 'output', causing waitpoints to complete with empty/undefined output when users followed the docs. Fixes #2872 --- docs/wait-for-token.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/wait-for-token.mdx b/docs/wait-for-token.mdx index 9e050a3430..98d7ec96e7 100644 --- a/docs/wait-for-token.mdx +++ b/docs/wait-for-token.mdx @@ -177,7 +177,7 @@ You can complete a token using a raw HTTP request or from another language. curl -X POST "https://api.trigger.dev/api/v1/waitpoints/tokens/{tokenId}/complete" \ -H "Authorization: Bearer {token}" \ -H "Content-Type: application/json" \ - -d '{"output": { "status": "approved"}}' + -d '{"data": { "status": "approved"}}' ``` ```python python @@ -186,7 +186,7 @@ import requests response = requests.post( "https://api.trigger.dev/api/v1/waitpoints/tokens/{tokenId}/complete", headers={"Authorization": f"Bearer {token}"}, - json={"output": { "status": "approved"}} + json={"data": { "status": "approved"}} ) ``` @@ -199,7 +199,7 @@ http = Net::HTTP.new(uri.host, uri.port) request = Net::HTTP::Post.new(uri) request["Authorization"] = "Bearer {token}" request["Content-Type"] = "application/json" -request.body = JSON.generate({ output: { status: "approved" } }) +request.body = JSON.generate({ data: { status: "approved" } }) response = http.request(request) ``` @@ -218,7 +218,7 @@ func main() { url := "https://api.trigger.dev/api/v1/waitpoints/tokens/{tokenId}/complete" payload := map[string]interface{}{ - "output": map[string]interface{}{ + "data": map[string]interface{}{ "status": "approved", }, }