Skip to content

docs(webhooks): end-to-end metadata example (verify → route → result)#400

Open
ZIJ wants to merge 1 commit into
mainfrom
docs/metadata-example
Open

docs(webhooks): end-to-end metadata example (verify → route → result)#400
ZIJ wants to merge 1 commit into
mainfrom
docs/metadata-example

Conversation

@ZIJ

@ZIJ ZIJ commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Adds the worked SDK example the metadata feature was missing: the docs documented the param, response, envelope, and signing separately, but nothing strung them together.

Replaces the verify-only snippet in webhooks.mdx with one concise handler — verify raw body → route on evt.metadataoc.sessions.get(...).result() — plus the create({ ..., metadata }) one-liner. The "ideal teaching shape" from the original spec.

Completes the metadata docs surface (reference was #397; SDK types #398/#399).

🤖 Generated with Claude Code

Replace the verify-only snippet with one handler that verifies the raw body, routes on
the envelope's metadata, and fetches the durable result — the teaching shape for
metadata-driven callbacks. Plus the create-with-metadata one-liner.
@2027-evals

2027-evals Bot commented Jun 22, 2026

Copy link
Copy Markdown

⚠️ Couldn't find a preview deployment for commit b086e4d after 10 minutes.

2027 auto-runs evals against preview deployments of your docs. To enable this, install one of:

  • Mintlify — if you use Mintlify docs
  • Vercel — for Next.js / static sites
  • Netlify — for most static docs

Once a preview is deployed, open a new PR and we'll run the eval automatically.


Evaluating agent experience using 2027.dev · View dashboard

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.

1 participant