Skip to main content

Python SDK

Official SDK for Python 3.8+.

Installation

pip install midbound_cloud

Webhooks

Verify and parse webhook events with full type safety:
from midbound_cloud import MidboundCloud
from midbound_cloud.types import IdentityEnrichedWebhookEvent

midbound = MidboundCloud()

# Verify signature and parse event
event = midbound.webhooks.unwrap(
    payload,
    headers=request.headers,
    key=os.environ["MIDBOUND_WEBHOOK_SECRET"],
)

# Handle typed events
if isinstance(event, IdentityEnrichedWebhookEvent):
    person = event.data.enrichment.person
    print(person.full_name, person.linkedin_url)

Webhook Example

Full working example with Flask and Firestore

API Usage

See the API Reference for all available methods with auto-generated examples.

Source