Skip to main content

Edge Functions Reference

Nexus includes 117+ Supabase Edge Functions (Deno runtime) that handle webhooks, integrations, AI processing, and business logic. This reference is auto-generated by scripts/docs-gen/introspect_edge_functions.ts.

To regenerate:

npm run docs:gen

Function inventory

Functions are organized by module:

Messaging — WhatsApp

FunctionMethodAuthDescription
whatsapp-webhookPOSTVerify TokenReceives inbound WhatsApp messages and status updates
wa-webhookPOSTVerify TokenAlternative WhatsApp webhook endpoint
whatsapp-send-messagePOSTBearer JWTSends text/media messages via WhatsApp
wa-sendPOSTBearer JWTAlternative send endpoint
whatsapp-send-templatePOSTBearer JWTSends pre-approved template messages
whatsapp-send-reactionPOSTBearer JWTSends emoji reactions
whatsapp-get-templatesGETBearer JWTFetches available message templates
whatsapp-templatesGETBearer JWTLists templates
whatsapp-reply-statusPOSTBearer JWTHandles reply status updates
whatsapp-status-webhookPOSTVerify TokenReceives delivery status webhooks
whatsapp-message-sentPOSTBearer JWTConfirms message sent status
whatsapp-webhook-coexistencePOSTVerify TokenMulti-number webhook routing
wa-es-callbackGETOAuthEmbedded signup callback
whatsapp-oauth-callbackGETOAuthWhatsApp OAuth callback
save-whatsapp-credentialsPOSTBearer JWTStores WhatsApp connection credentials
fetch-whatsapp-historyGETBearer JWTFetches message history

Messaging — Facebook & Instagram

FunctionMethodAuthDescription
facebook-webhookPOSTVerify TokenReceives Messenger and page events
facebook-send-messagePOSTBearer JWTSends Messenger messages
facebook-fetch-profileGETBearer JWTFetches Facebook user profile
exchange-facebook-tokenPOSTBearer JWTExchanges short-lived for long-lived token
fetch-commentsGETBearer JWTFetches post comments
fetch-postsGETBearer JWTFetches page posts
instagram-webhookPOSTVerify TokenReceives Instagram DMs
instagram-send-messagePOSTBearer JWTSends Instagram DMs
exchange-instagram-tokenPOSTBearer JWTExchanges Instagram token
create-facebook-audiencePOSTBearer JWTCreates Custom Audience

E-commerce — Shopify

FunctionMethodAuthDescription
shopify-webhookPOSTHMACReceives Shopify events
shopify-webhook-publicPOSTHMACPublic Shopify webhook
shopify-ordersGETBearer JWTFetches Shopify orders
shopify-order-updatePOSTBearer JWTPushes order updates
shopify-fulfillPOSTBearer JWTUpdates fulfillment status
shopify-abandonedGETBearer JWTFetches abandoned carts
fetch-shopify-customerGETBearer JWTFetches customer by phone/email
fetch-shopify-customer-by-idGETBearer JWTFetches customer by Shopify ID

Fulfillment & Shipping

FunctionMethodAuthDescription
start-pickingPOSTBearer JWTCreates pick list and assigns picker
scan-itemPOSTBearer JWTRecords item scan during picking
complete-pickPOSTBearer JWTMarks pick list as complete
create-awb-bostaPOSTBearer JWTCreates shipment with Bosta
print-awbGETBearer JWTGenerates printable shipping label
process-order-shipmentPOSTBearer JWTProcesses order for shipment
tracking-webhookPOSTWebhookReceives courier tracking updates
internal-tracking-webhookPOSTInternalInternal tracking handler
logistics-webhookPOSTWebhookGeneral logistics events
return-confirmation-webhookPOSTWebhookReturn confirmation from courier
khazenly-webhookPOSTWebhookKhazenly warehouse events

CRM & Customer Resolution

FunctionMethodAuthDescription
crm-customer-resolverPOSTInternalMerges/resolves customer records
crm-embeddings-workerPOSTInternalGenerates CRM embeddings
crm-healthGETBearer JWTCRM health check
crm-nightly-featuresPOSTScheduledNightly CRM feature computation
crm-recommend-buyersPOSTBearer JWTRecommends likely buyers
link-order-customerPOSTBearer JWTLinks order to customer

AI & Analytics

FunctionMethodAuthDescription
ai-cs-annotatorPOSTInternalAnnotates conversations with AI
ai-business-analysisPOSTBearer JWTBusiness intelligence report
ai-social-generate-reportPOSTBearer JWTSocial media performance report
ai-chat-assistantPOSTBearer JWTAI chat assistant
voice-transcription-workerPOSTInternalTranscribes voice messages
item-intel-workerPOSTInternalProduct intelligence (Neo4j)

VoIP / PBX

FunctionMethodAuthDescription
call-initiatePOSTBearer JWTInitiates outbound call via PBX
call-startPOSTWebhookHandles call start event
pbx-cdrPOSTWebhookReceives CDR records
pbx-cdr-syncPOSTWebhookBulk CDR sync
pbx-extensionsGET/POSTBearer JWTExtension management
pbx-hookPOSTWebhookGeneral PBX event handler

Automation & Scheduled

FunctionMethodAuthDescription
abandoned-carts-scan-sendPOSTScheduledScans and sends abandoned cart reminders
abandoned-carts-managePOSTBearer JWTManages abandoned cart settings
close-stale-sessionsPOSTScheduledCloses idle sessions
session-managementPOSTInternalSession lifecycle management

Social Media

FunctionMethodAuthDescription
social-dispatcherPOSTBearer JWTDispatches social media posts
social-meta-publishPOSTBearer JWTPublishes to Meta platforms
social-meta-syncPOSTBearer JWTSyncs Meta page data
social-meta-sync-metricsPOSTBearer JWTSyncs Meta metrics
social-post-insightsGETBearer JWTFetches post insights
social-media-signPOSTBearer JWTSigns media URLs
social-freepik-searchGETBearer JWTSearches Freepik images
social-freepik-generatePOSTBearer JWTGenerates images via Freepik
social-freepik-importPOSTBearer JWTImports Freepik images

Competition Intelligence

FunctionMethodAuthDescription
competition-analyzePOSTBearer JWTAnalyzes competitor data
competition-auto-searchPOSTScheduledAutomated competitor monitoring
competition-fetch-workerPOSTInternalFetches competitor pages
competition-reportGETBearer JWTGenerates competition report
competition-summaryGETBearer JWTCompetition summary

Platform & Auth

FunctionMethodAuthDescription
create-organizationPOSTBearer JWTCreates a new organization
invitePOSTBearer JWTSends organization invite
accept-invitePOSTPublic (token)Accepts an invite via token
user-registrationPOSTPublicRegisters a new user
auth-hookPOSTInternalAuth event hook
assign-to-default-orgPOSTInternalAuto-assigns user to default org
platform-user-lookupGETAdminLooks up user across platform
send-emailPOSTBearer JWTSends transactional email

Odoo & Other

FunctionMethodAuthDescription
odoo-order-readGETBearer JWTReads orders from Odoo ERP
tiktok-webhookPOSTWebhookTikTok event handler
order-pdf-importPOSTBearer JWTImports orders from PDF
inventory-fetch-imagesGETBearer JWTFetches product images
data-deletion-statusGETPublicMeta data deletion callback status
facebook-data-deletionPOSTPublicMeta data deletion callback

Debug (development only)

FunctionMethodAuthDescription
debug-*VariousInternalDevelopment and troubleshooting utilities (not for production use)
test-*VariousInternalTest utilities
fix-*VariousInternalOne-time fix scripts
verify-dev-authGETInternalDev authentication verification
wa-diagGETInternalWhatsApp diagnostics