docs: fix waitpoint token completion request body field#2888
Conversation
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 triggerdotdev#2872
|
WalkthroughThis pull request updates documentation examples in a single file by changing HTTP payload field names from "output" to "data" across multiple language code samples. The modifications appear consistently in curl, Python requests, Ruby, Go, and JavaScript/TypeScript examples. The change affects only the documented payload structure with no alterations to control flow, logic, or higher-level behavior. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@ericallam can you look into this really quick. |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
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
Closes #
✅ Checklist
Testing
[Describe the steps you took to test this change]
This is simple doc fix
Changelog
[Short description of what has changed]
Documentation example for the specific api route had a wrong field, fixed that to have correct field
Screenshots
[Screenshots]


The above image shows the correct request format, but docs previously had incorrect payload.
This is the exact wrong field in docs, that was fixed https://trigger.dev/docs/wait-for-token#from-another-language
💯