LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_verifySandboxTokenVerifierverify_callback
Method●Since v0.14

verify_callback

Copy
verify_callback(
  self,
  *,
  body: Union[bytes, str],
  signature: str,
View source on GitHub
aud
:
Optional
[
AudienceMatcher
]
=
None
,
issuer
:
Optional
[
str
]
=
None
)
->
SandboxCallback

Parameters

NameTypeDescription
body*Union[bytes, str]

The raw request body, exactly as received.

signature*str

The X-LangSmith-Signature-JWT header value.

audOptional[AudienceMatcher]
Default:None
issuerOptional[str]
Default:None

Verify a proxy callback request and return its parsed payload.

If set, checks the signature's audience, which is the callback URL as configured in the proxy config. A string must match exactly; a predicate is called with each audience and must return True for at least one.

If set, the LangSmith OAuth issuer the signature must be issued by.