Webhooks
TexasVerified receives webhooks from three external services.Stripe
POST /api/stripe/webhook — receives Stripe events for billing lifecycle management.
Required events:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paidinvoice.payment_failedinvoice.payment_action_required
app.apply_billing_event.
Twilio MMS
POST /twilio/mms — Twilio inbound MMS webhook (intake worker).
Receives MMS media from Twilio, resolves the recipient org/location from the inbound address, stores media in R2, records upload_inbounds, and queues OCR for supported file types.
Email (Cloudflare Email Routing)
The intake worker’s email handler receives forwarded email from Cloudflare Email Routing. It extracts MIME attachments, stores OCR-capable files, recordsupload_inbounds, and enqueues OCR processing.