Webhook Integration
Webhooks let you build real-time integrations that respond to Pictify events. Instead of polling for changes, receive instant notifications when renders complete, fail, or bindings update.Use Cases
- Update database when images are ready
- Trigger workflows after batch completion
- Send notifications on render failures
- Sync with CDN when content changes
- Log analytics for monitoring
Quick Start
1. Create Endpoint
Build a webhook receiver:2. Subscribe to Events
3. Test Your Endpoint
Use the dashboard to send a test webhook:- Go to Settings > Webhooks
- Find your subscription
- Click Send Test
- Verify your endpoint received it
Event Types
render.completed
Fired when an image, GIF, or PDF finishes rendering.- Update CMS with image URL
- Invalidate CDN cache
- Notify users their image is ready
render.failed
Fired when a render fails.- Alert on failures
- Retry with different parameters
- Log for debugging
batch.completed
Fired when a batch job finishes.- Process batch results
- Send completion notification
- Trigger next workflow step
binding.updated
Fired when a binding successfully refreshes.- Invalidate cached pages
- Log data changes
- Trigger dependent updates
binding.failed
Fired when a binding fails to refresh.Filtering Events
Subscribe only to events you care about:Filter by Template
Filter by Type
Handler Patterns
Database Updates
Cache Invalidation
Slack Notifications
Workflow Orchestration
Error Handling
Idempotent Handlers
Webhooks may be delivered multiple times. Make handlers idempotent:Graceful Degradation
Handle errors without crashing:Queue Processing
For heavy workloads, queue webhooks:Security
Always Verify Signatures
Use HTTPS
Always use HTTPS endpoints in production:Validate Event Data
Debugging
Webhook Logs
View webhook delivery logs in the dashboard:- Go to Settings > Webhooks
- Click on a subscription
- View Delivery Logs
- Timestamp
- Response status
- Response body
- Response time