Registering the webhook
Use the Create webhook endpoint with"topic": "report":
Webhook payload
When a report run completes, Connectly POSTs the following payload to your endpoint:Recommended handling
1
Acknowledge receipt immediately
Return a
2xx response as soon as you receive the webhook β before doing any processing. Connectly may retry if it doesnβt receive a timely acknowledgement.2
Extract and validate the URL
Read
report.last_run.result.url and check expires_at to confirm the URL is still valid.3
Download the CSV immediately
Perform a GET request to the signed URL right away β it expires within minutes.
4
Handle expiry gracefully
If your handler is delayed and the URL has expired, call the Reports API to retrieve a fresh signed URL for the same report.
