Skip to content

Instantly share code, notes, and snippets.

View kevteg's full-sized avatar
🐍
pythoning

Kevin Hernández kevteg

🐍
pythoning
View GitHub Profile
@kevteg
kevteg / get_parties_from_webhook_response.py
Created March 11, 2026 00:25
Example to process a trellis webhook response to retrieve the parties of each case
import requests
TRELLIS_API_CASES_ENDPOINT = "https://trellis.law/v2/case/{case_token}/parties"
def get_parties_from_webhook_response(webhook_response, auth_token):
"""
Process the webhook response from Trellis and get the case details.
Args: