cURL
curl --request POST \ --url https://api.example.com/api/webhooks/db
Polar webhook endpoint for DB service subscriptions
POST /api/webhooks/db
DB_POLAR_SECRET
export const POST = Webhooks({ webhookSecret: process.env.DB_POLAR_SECRET!, onPayload: async (payload) => { await handlePolarWebhook(payload, 'DB') }, })
UserServiceEntitlement
service: 'DB'