Overview
The Webhooks API allows you to configure endpoints that receive real-time HTTP notifications when events occur in your InstaView account. Webhooks provide an event-driven alternative to polling, enabling immediate integration with your systems.Resource Structure
Required Scopes
Creating Webhooks
Basic Webhook
Comprehensive Webhook Configuration
Listing Webhooks
List All Webhooks
Monitor Webhook Health
Updating Webhooks
Partial Update
Update Custom Headers
When updating headers, the entire headers array is replaced. Include all
headers you want to keep.
Event Types
Event Type Reference
Event Selection Strategy
- Minimal
- Standard
- Comprehensive
Subscribe only to completion events:Use case: Simple integrations that only need final results
Circuit Breaker
The circuit breaker protects both systems from cascading failures:How It Works
1
Failures Accumulate
Each failed delivery increments
consecutiveFailures2
Circuit Opens
After threshold failures,
circuitOpenedAt is set and deliveries stop3
Deliveries Paused
No new deliveries are attempted while circuit is open
4
Manual Reset
Use the reset endpoint to re-enable after fixing issues
Monitoring Circuit State
Resetting Circuit Breaker
Testing Webhooks
Send Test Ping
The webhook must be subscribed to the
ping event (type 2) for testing to
work.Test Response Structure
Deleting Webhooks
Delete a Webhook
Custom Headers
Supported Headers
You can add custom headers for authentication or routing:Sensitive Headers
The following headers are automatically encrypted at rest:AuthorizationX-API-KeyX-SecretAPI-Key
isMasked: true and their values are hidden.
Header Limits
- Maximum 50 custom headers per webhook
- Header names: 1-255 characters
- Header values: 1-4096 characters
Configuration Fields
The HTTPS endpoint URL to receive webhook notifications (max 2048 characters)
Array of event type IDs to subscribe to (0-5)
Human-readable name for the webhook (max 255 characters)
Description of the webhook’s purpose
Custom headers to include in requests (max 50 headers)
Whether the webhook is active (default: true, can be updated)
Response Fields
Unique identifier for the webhook configuration
The API key ID this webhook belongs to
Company ID this webhook is associated with. Null if webhook receives events for all companies (global webhook).
Maximum retry attempts for failed deliveries (system-configured)
Request timeout in milliseconds (system-configured, default 30000)
Current count of consecutive delivery failures
ISO 8601 timestamp when circuit breaker was triggered (null if closed)
HMAC signing secret (only returned on creation, hex-encoded)
Error Scenarios
Invalid URL
Invalid URL
Invalid Event Type
Invalid Event Type
Webhook Not Found
Webhook Not Found
Access Denied
Access Denied
Test Requires Ping Event
Test Requires Ping Event
Common Patterns
Webhook Setup Flow
Health Check Automation
Best Practices
Use Descriptive Names
Name webhooks clearly (e.g., “Production ATS Sync”, “Staging Test”)
Monitor Failures
Set up alerts for
consecutiveFailures > 0Test Before Production
Always test webhooks with ping before relying on them
Secure Secrets
Use a secrets manager for signing secrets
Next Steps
Webhooks Guide
Learn about webhook payloads and signature verification
API Reference
Complete webhook endpoint documentation
Interviews
Understand interview events
Scopes
Configure webhook permissions