Repository navigation
feat(api): webhooks can subscribe to sessions.navigations.blocked - #237
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
jordin
approved these changes
Dec 1, 2026
jordin
left a comment
Member
There was a problem hiding this comment.
Fine as an example. It registers the webhook for sessions.navigations.blocked through the generated client, prints only the secret's first 6 characters, and says to store the secret for signature checks. Lint and the type check pass. A feat(api) squash title to give release-please its changelog line for the generated commit is a sensible use of an example PR.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds
examples/webhook_navigation_blocked.py: registers a webhook forsessions.navigations.blocked, the event Browserbase sends for each navigation a session's navigation policy blocks.The event type reached this SDK from the API spec, but that generated commit's subject isn't a conventional commit, so release-please doesn't count it. This PR's squash title,
feat(api): webhooks can subscribe to sessions.navigations.blocked, gives the next release its changelog line.Only
examples/changes; no generated code.Testing
The API side is live: a webhook registered through
POST /v1/webhooksfor this event type received a delivery for each blocked navigation, with the session ID, the URL and the decision time.This example file itself has not been run; CI lints and type-checks it.