
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/v1/[locationId]/notion/[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. v1 endpoint validated via the M4 Connect configurator app; the legacy POST /api/notion/[locationId]/[requestType] route is deprecated.
POST /api/v1/[locationId]/webhook/swipehomeTest 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. v1 endpoint validated via the M4 Connect configurator app; the legacy POST /api/swipehome/[locationId] route is deprecated.
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/v1/[locationId]/webhook/sweepandgoReceive webhook events from SweepAndGo and sync client/lead data to GHL. Resolves the GHL token and SweepAndGo access token from the M4 Connect configurator app, keyed by locationId. Replaces the deprecated Notion-page-keyed POST /api/sweepandgo/[uuid] route.
POST /api/v1/[locationId]/webhook/hubspotReceive webhook events from HubSpot CRM. Integrate HubSpot contact and deal events with your M4 Connect workflows. Resolves the GHL token and HubSpot access token from the M4 Connect configurator app, keyed by locationId. Replaces the deprecated Notion-page-keyed POST /api/hubspot-webhook/[uuid] route.
POST /api/v1/[locationId]/webhook/movoto/leads (sync) | POST /api/v1/[locationId]/webhook/movoto/async/leads (async)Receive inbound lead webhooks from Movoto and map the lead to a GHL contact via configurable field mappings. The synchronous endpoint pushes to GHL inline; the async endpoint queues a pending contact sync record for delivery via the existing GHL contact sync workflow.
POST /api/v1/[locationId]/webhook/realtor/leads (sync) | POST /api/v1/[locationId]/webhook/realtor/async/leads (async)Receive inbound "Connections Plus" lead webhooks from Realtor.com and map the lead to a GHL contact via configurable field mappings. The synchronous endpoint pushes to GHL inline; the async endpoint queues a pending contact sync record for delivery via the existing GHL contact sync workflow. Follows the same sync/async pattern as the Movoto webhook.
POST /api/v1/[locationId]/custom/[system]/inbound/[resource] (sync) | POST .../inbound/[resource]/async (async) | POST /api/v1/[locationId]/custom/[system]/outbound/[resource]Generic, location-private webhook + call-out endpoints for a location’s own Custom Systems (configured under Manage Custom Systems in the M4 Connect configurator). Unlike every other endpoint on this page, `system` and `resource` are not fixed - they’re admin-chosen names registered per location, each mapped via configurable field mappings to a GHL contact or opportunity.
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.
GET /api/internal/[locationId]/landportal/property | POST /api/internal/[locationId]/landportal/property/searchSearch for properties using Land Portal API integration. Perform simple searches by parcel number or owner name, or use advanced filtering with complex spatial and temporal conditions. Includes support for FIPS codes, state filtering, and polygon-based geographic queries.
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.