Comprehensive testing and integration guides for all M4 Connect APIs. Each endpoint includes interactive forms, live request/response examples, and detailed field documentation.
POST /api/notion/[locationId]/[requestType]Integrate Notion data with GHL through the Notion M4 Connect API. Sync property records, create multiple contacts from Notion fields, and establish associations between contacts and properties. Supports property-sync request type with comprehensive field mapping.
POST /api/swipehome/[locationId]Test and explore the SwipeHome API for creating title requests. Submit contact information and property details to create opportunities in GHL. Supports case-insensitive request types with comprehensive form-based testing interface.
POST /api/widget/[locationId]Embed customizable forms and widgets on your website. Capture leads directly into GHL with configurable fields, automatic contact creation, and optional opportunity generation.
POST /api/ghl/[locationId]Direct API access to GHL resources for advanced use cases. Create and manage contacts, opportunities, custom objects, and associations with full GHL functionality and comprehensive error handling.
POST /api/sweepandgo/[uuid]Receive webhook events from SweepAndGo with CORS support. Route events through a Notion page configuration to process and transform SweepAndGo data for downstream systems.
POST /api/hubspot-webhook/[uuid]Receive webhook events from HubSpot CRM. Integrate HubSpot contact and deal events with your M4 Connect workflows through Notion-based configuration.
POST /api/v1/[locationId]/buyers/blastSend bulk SMS and email messages to buyer contacts through GHL. Automate buyer blast campaigns with automatic message processing, address masking, and comprehensive job tracking.
All API requests require the m4-connect-key header with your API token set to the M4_CONNECT_API_SHARED_TOKEN environment variable.
Each API request requires a valid GHL Location ID in the URL path. This identifies which location the request should be processed for.
All APIs accept JSON request bodies with field-specific data. Refer to each API's documentation page for detailed field requirements and examples.