Setting up webhooks
Get notified on your server when uploads finish, images are deleted, imports complete or usage limits approach.
Webhooks send an HTTPS request to your server when something happens in PixViro, so your app can react without checking constantly.
Add an endpoint
- Open Webhooks in the sidebar (under Developers).
- Click Add endpoint and enter a public
https://URL on your server. - Choose the Events you want, or All events (including ones added later).
- Save, then copy the endpoint's Signing secret: your server uses it to check that requests really come from PixViro.
Use Send test to send a test event, and open an endpoint's Deliveries to see each request, its payload and your server's response, and to Redeliver one.
Events you can receive
Uploads and new versions, finished processing, deletions and restores, completed bulk imports and migrations, usage alerts, changes in your usage status, and team changes. The full list is in Webhooks.
If your server is down
Failed deliveries are retried for about 4 days. An endpoint that keeps failing for 3 days is disabled and your team is emailed. Fix the problem, re-enable it, and redeliver what was missed.
Rolling the secret
Roll secret creates a new signing secret. The previous one stays valid for 24 hours, so you have time to update your server.