[RealtimeKit] add documentation for webhooks#31203
Conversation
Review⏸️ Automatic reviews for this PR are paused. This PR has already received 2 automatic reviews. To run another review, a codeowner can comment
✅ No style-guide issues found in commit CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
There was a problem hiding this comment.
4 issues need fixing before merge. Posted 6 inline suggestions and 2 comments.
MEDIUM
src/content/docs/realtime/realtimekit/webhooks.mdx:17-21— Procedure must use<Steps>.src/content/docs/realtime/realtimekit/webhooks.mdx:29— Workers example must use<TypeScriptExample>.src/content/docs/realtime/realtimekit/webhooks.mdx:123— Workers example must use<TypeScriptExample>.
LOW
src/content/docs/realtime/realtimekit/webhooks.mdx:65— curl blocks must use$VARIABLE_NAMEplaceholders.src/content/docs/realtime/realtimekit/webhooks.mdx:224— curl blocks must use$VARIABLE_NAMEplaceholders.src/content/docs/realtime/realtimekit/recording-guide/monitor-status.mdx:32— curl blocks must use$VARIABLE_NAMEplaceholders.
Consider adding a changelog entry for the new webhooks page.
|
|
||
| Your webhook endpoint must accept JSON `POST` requests. The endpoint can handle multiple event types by switching on the `event` field in the request body. | ||
|
|
||
| ```javascript |
There was a problem hiding this comment.
Workers examples must use <TypeScriptExample>, not bare javascript fences. Convert this example to TypeScript and wrap it with the component.
|
|
||
| Verify `rtk-signature` against the raw request body. Do not reserialize parsed JSON before verification because changes in whitespace or key order can change the signed bytes. | ||
|
|
||
| ```javascript |
There was a problem hiding this comment.
Workers examples must use <TypeScriptExample>, not bare javascript fences. Convert this example to TypeScript and wrap it with the component.
|
Review completed for PR #31203. What the PR changes
Actions taken
Issues flagged
|
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
…status.mdx Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
…status.mdx Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Summary
Add documentation for realtimekit webhooks
Screenshots (optional)
Documentation checklist