Skip to content

feat(api): webhooks can subscribe to sessions.navigations.blocked - #237

Merged
kunwar-bot merged 1 commit into
mainfrom
kunwarsodhi/webhook-navigation-blocked-example
Dec 1, 2026
Merged

kunwar-bot merged 1 commit into
mainfrom
kunwarsodhi/webhook-navigation-blocked-example

Conversation

@kunwar-bot

Copy link
Copy Markdown
Contributor

Summary

Adds examples/webhook_navigation_blocked.py: registers a webhook for sessions.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/webhooks for 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.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kunwar-bot
kunwar-bot requested a review from a team as a code owner December 1, 2026 23:19

@jordin jordin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kunwar-bot
kunwar-bot merged commit db9df2b into main Dec 1, 2026
10 checks passed
@kunwar-bot
kunwar-bot deleted the kunwarsodhi/webhook-navigation-blocked-example branch December 1, 2026 23:39
@browserbase-stlc-bot browserbase-stlc-bot Bot mentioned this pull request Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants