LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clischemasWebhookUrlPolicy
    Class●Since v0.4

    WebhookUrlPolicy

    Copy
    WebhookUrlPolicy()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    require_httpsbool
    allowed_domainslist[str]
    allowed_portslist[int]
    max_url_lengthint
    disable_loopbackbool
    attribute
    require_https: bool

    Enforce HTTPS scheme for absolute URLs; reject http:// when true.

    attribute
    allowed_domains: list[str]

    Hostname allowlist. Supports exact hosts and wildcard subdomains.

    Use entries like "hooks.example.com" or "*.mycorp.com". The wildcard only matches subdomains ("foo.mycorp.com"), not the apex ("mycorp.com"). When empty or omitted, any public host is allowed (subject to SSRF IP checks).

    attribute
    allowed_ports: list[int]

    Explicit port allowlist for absolute URLs.

    If set, requests must use one of these ports. Defaults are respected when a port is not present in the URL (443 for https, 80 for http).

    attribute
    max_url_length: int

    Maximum permitted URL length in characters; longer inputs are rejected early.

    attribute
    disable_loopback: bool

    Disallow relative URLs (internal loopback calls) when true.