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
| Function | Method | Auth | Description |
|---|---|---|---|
whatsapp-webhook | POST | Verify Token | Receives inbound WhatsApp messages and status updates |
wa-webhook | POST | Verify Token | Alternative WhatsApp webhook endpoint |
whatsapp-send-message | POST | Bearer JWT | Sends text/media messages via WhatsApp |
wa-send | POST | Bearer JWT | Alternative send endpoint |
whatsapp-send-template | POST | Bearer JWT | Sends pre-approved template messages |
whatsapp-send-reaction | POST | Bearer JWT | Sends emoji reactions |
whatsapp-get-templates | GET | Bearer JWT | Fetches available message templates |
whatsapp-templates | GET | Bearer JWT | Lists templates |
whatsapp-reply-status | POST | Bearer JWT | Handles reply status updates |
whatsapp-status-webhook | POST | Verify Token | Receives delivery status webhooks |
whatsapp-message-sent | POST | Bearer JWT | Confirms message sent status |
whatsapp-webhook-coexistence | POST | Verify Token | Multi-number webhook routing |
wa-es-callback | GET | OAuth | Embedded signup callback |
whatsapp-oauth-callback | GET | OAuth | WhatsApp OAuth callback |
save-whatsapp-credentials | POST | Bearer JWT | Stores WhatsApp connection credentials |
fetch-whatsapp-history | GET | Bearer JWT | Fetches message history |
Messaging — Facebook & Instagram
| Function | Method | Auth | Description |
|---|---|---|---|
facebook-webhook | POST | Verify Token | Receives Messenger and page events |
facebook-send-message | POST | Bearer JWT | Sends Messenger messages |
facebook-fetch-profile | GET | Bearer JWT | Fetches Facebook user profile |
exchange-facebook-token | POST | Bearer JWT | Exchanges short-lived for long-lived token |
fetch-comments | GET | Bearer JWT | Fetches post comments |
fetch-posts | GET | Bearer JWT | Fetches page posts |
instagram-webhook | POST | Verify Token | Receives Instagram DMs |
instagram-send-message | POST | Bearer JWT | Sends Instagram DMs |
exchange-instagram-token | POST | Bearer JWT | Exchanges Instagram token |
create-facebook-audience | POST | Bearer JWT | Creates Custom Audience |
E-commerce — Shopify
| Function | Method | Auth | Description |
|---|---|---|---|
shopify-webhook | POST | HMAC | Receives Shopify events |
shopify-webhook-public | POST | HMAC | Public Shopify webhook |
shopify-orders | GET | Bearer JWT | Fetches Shopify orders |
shopify-order-update | POST | Bearer JWT | Pushes order updates |
shopify-fulfill | POST | Bearer JWT | Updates fulfillment status |
shopify-abandoned | GET | Bearer JWT | Fetches abandoned carts |
fetch-shopify-customer | GET | Bearer JWT | Fetches customer by phone/email |
fetch-shopify-customer-by-id | GET | Bearer JWT | Fetches customer by Shopify ID |
Fulfillment & Shipping
| Function | Method | Auth | Description |
|---|---|---|---|
start-picking | POST | Bearer JWT | Creates pick list and assigns picker |
scan-item | POST | Bearer JWT | Records item scan during picking |
complete-pick | POST | Bearer JWT | Marks pick list as complete |
create-awb-bosta | POST | Bearer JWT | Creates shipment with Bosta |
print-awb | GET | Bearer JWT | Generates printable shipping label |
process-order-shipment | POST | Bearer JWT | Processes order for shipment |
tracking-webhook | POST | Webhook | Receives courier tracking updates |
internal-tracking-webhook | POST | Internal | Internal tracking handler |
logistics-webhook | POST | Webhook | General logistics events |
return-confirmation-webhook | POST | Webhook | Return confirmation from courier |
khazenly-webhook | POST | Webhook | Khazenly warehouse events |
CRM & Customer Resolution
| Function | Method | Auth | Description |
|---|---|---|---|
crm-customer-resolver | POST | Internal | Merges/resolves customer records |
crm-embeddings-worker | POST | Internal | Generates CRM embeddings |
crm-health | GET | Bearer JWT | CRM health check |
crm-nightly-features | POST | Scheduled | Nightly CRM feature computation |
crm-recommend-buyers | POST | Bearer JWT | Recommends likely buyers |
link-order-customer | POST | Bearer JWT | Links order to customer |
AI & Analytics
| Function | Method | Auth | Description |
|---|---|---|---|
ai-cs-annotator | POST | Internal | Annotates conversations with AI |
ai-business-analysis | POST | Bearer JWT | Business intelligence report |
ai-social-generate-report | POST | Bearer JWT | Social media performance report |
ai-chat-assistant | POST | Bearer JWT | AI chat assistant |
voice-transcription-worker | POST | Internal | Transcribes voice messages |
item-intel-worker | POST | Internal | Product intelligence (Neo4j) |
VoIP / PBX
| Function | Method | Auth | Description |
|---|---|---|---|
call-initiate | POST | Bearer JWT | Initiates outbound call via PBX |
call-start | POST | Webhook | Handles call start event |
pbx-cdr | POST | Webhook | Receives CDR records |
pbx-cdr-sync | POST | Webhook | Bulk CDR sync |
pbx-extensions | GET/POST | Bearer JWT | Extension management |
pbx-hook | POST | Webhook | General PBX event handler |
Automation & Scheduled
| Function | Method | Auth | Description |
|---|---|---|---|
abandoned-carts-scan-send | POST | Scheduled | Scans and sends abandoned cart reminders |
abandoned-carts-manage | POST | Bearer JWT | Manages abandoned cart settings |
close-stale-sessions | POST | Scheduled | Closes idle sessions |
session-management | POST | Internal | Session lifecycle management |
Social Media
| Function | Method | Auth | Description |
|---|---|---|---|
social-dispatcher | POST | Bearer JWT | Dispatches social media posts |
social-meta-publish | POST | Bearer JWT | Publishes to Meta platforms |
social-meta-sync | POST | Bearer JWT | Syncs Meta page data |
social-meta-sync-metrics | POST | Bearer JWT | Syncs Meta metrics |
social-post-insights | GET | Bearer JWT | Fetches post insights |
social-media-sign | POST | Bearer JWT | Signs media URLs |
social-freepik-search | GET | Bearer JWT | Searches Freepik images |
social-freepik-generate | POST | Bearer JWT | Generates images via Freepik |
social-freepik-import | POST | Bearer JWT | Imports Freepik images |
Competition Intelligence
| Function | Method | Auth | Description |
|---|---|---|---|
competition-analyze | POST | Bearer JWT | Analyzes competitor data |
competition-auto-search | POST | Scheduled | Automated competitor monitoring |
competition-fetch-worker | POST | Internal | Fetches competitor pages |
competition-report | GET | Bearer JWT | Generates competition report |
competition-summary | GET | Bearer JWT | Competition summary |
Platform & Auth
| Function | Method | Auth | Description |
|---|---|---|---|
create-organization | POST | Bearer JWT | Creates a new organization |
invite | POST | Bearer JWT | Sends organization invite |
accept-invite | POST | Public (token) | Accepts an invite via token |
user-registration | POST | Public | Registers a new user |
auth-hook | POST | Internal | Auth event hook |
assign-to-default-org | POST | Internal | Auto-assigns user to default org |
platform-user-lookup | GET | Admin | Looks up user across platform |
send-email | POST | Bearer JWT | Sends transactional email |
Odoo & Other
| Function | Method | Auth | Description |
|---|---|---|---|
odoo-order-read | GET | Bearer JWT | Reads orders from Odoo ERP |
tiktok-webhook | POST | Webhook | TikTok event handler |
order-pdf-import | POST | Bearer JWT | Imports orders from PDF |
inventory-fetch-images | GET | Bearer JWT | Fetches product images |
data-deletion-status | GET | Public | Meta data deletion callback status |
facebook-data-deletion | POST | Public | Meta data deletion callback |
Debug (development only)
| Function | Method | Auth | Description |
|---|---|---|---|
debug-* | Various | Internal | Development and troubleshooting utilities (not for production use) |
test-* | Various | Internal | Test utilities |
fix-* | Various | Internal | One-time fix scripts |
verify-dev-auth | GET | Internal | Dev authentication verification |
wa-diag | GET | Internal | WhatsApp diagnostics |