Hey everyone,
I’m running into a bit of a snag with my Twilio webhook integration on a Supabase Edge Function. Basically, I can send outbound SMS messages just fine, but when Twilio tries to send inbound messages to my Supabase function, I keep getting a 401 Unauthorized error.
Details:
• The Twilio error code is 11200, meaning Twilio can’t fetch a successful response from my URL.
• My Edge Function is currently returning a 401 because it’s expecting some form of authorization that Twilio doesn’t provide.
What I’ve learned so far:
• I probably need to make the endpoint public (no JWT required) and verify the Twilio signature instead. But I could use some guidance or examples from anyone who’s done this with Supabase Edge Functions.
Any tips or snippets would be super appreciated!