import requests

webhook_url = requests.post(
    "https://platform.reducto.ai/configure_webhook",
    headers={"Authorization": "Bearer <<user>>"},
)

# Go to this link to configure your webhook receiving application
print(response.text)

response = requests.post(
    "https://platform.reducto.ai/async_parse",
    json={
        "document_url": "https://pdfobject.com/pdf/sample.pdf",
        "webhook": {"mode": "svix"},
    },
    headers={"Authorization": "Bearer <<user>>"},
)