docs: fix waitpoint token completion request body field #2888
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
💯