Creating a Webhook Endpoint
You can create webhook endpoints via the API or dashboard.Via API
Via Dashboard
- Navigate to Settings → Webhooks in your organization dashboard
- Click “Create Endpoint”
- Enter your webhook URL
- Select the events you want to receive
- Click “Create”
- Save the webhook secret - you’ll need it to verify webhook signatures
Webhook Formats
Polar supports three webhook formats:Raw (Recommended)
Theraw format delivers the full event payload as JSON with complete object details. This is the recommended format for most integrations.
Discord
Formats the payload as a Discord webhook message with rich embeds. Perfect for sending notifications to Discord channels.Slack
Formats the payload as a Slack webhook message with formatted blocks. Ideal for team notifications in Slack.Managing Endpoints
List Endpoints
Update an Endpoint
You can update the URL, events, or enable/disable an endpoint:Regenerate Secret
If you suspect your webhook secret has been compromised, you can regenerate it:Delete an Endpoint
Endpoint Reliability
Automatic Disabling
Polar automatically disables webhook endpoints after 10 consecutive failed deliveries to protect your integration and our infrastructure. When this happens:- The endpoint is marked as
enabled: false - All pending events for that endpoint are marked as skipped
- Organization admins receive an email notification
- You can re-enable the endpoint after fixing the issue
Re-enabling a Disabled Endpoint
To re-enable a disabled endpoint:- Fix the issue causing delivery failures (e.g., server errors, wrong URL)
- Update the endpoint via API or dashboard:
Best Practices
- Verify signatures on all incoming webhooks (see Delivery)
- Use HTTPS for webhook URLs - HTTP is only allowed for localhost
- Return 2xx quickly - Respond within 10 seconds to avoid timeouts
- Process asynchronously - Queue webhook payloads for background processing
- Be idempotent - You may receive the same event multiple times
- Monitor failures - Check webhook delivery logs in the dashboard regularly
- Keep secrets secure - Store webhook secrets in environment variables, never in code
Next Steps
Event Types
Browse all available webhook events
Delivery & Retries
Learn about delivery guarantees and signature verification
Local Testing
Test webhooks on your local development machine