WACM.in Logo
Back to API Overview
REST API v1MCP Supported (3 Tools)

Customer Journeys & Pipelines API

Manage Kanban sales pipelines, lead nurturing stages, and event-driven WhatsApp campaign broadcasts triggered on stage progression.

Overview & Architecture

The Journies API allows developers to programmatically track leads through visual funnel pipelines, move contacts across stages, and trigger automated WhatsApp campaign templates on entry. Stages can also have no campaign attached (campaign_id = null) to track pipeline milestones (such as Deal Won or Under Review) without forcing outbound messages.

Multi-Stage Funnels

Define sequential stages with custom sort orders. Contacts can belong to multiple pipelines independently.

Nullable Campaigns

Choose whether entering a stage triggers an automated broadcast or merely updates internal CRM milestone status.

API Endpoints

GET/api/v1/journies

List all customer journey pipelines and their stage hierarchies for the authenticated workspace.

Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number for paginated results (default: 1)
limitintegerOptionalNumber of pipelines per page (default: 25, max: 100)
searchstringOptionalFilter journeys by pipeline name
Response 200 OK
{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Enterprise Sales Pipeline",
      "description": "High-value B2B lead funnel",
      "contacts_count": 42,
      "stages": [
        {
          "id": 10,
          "name": "Inquiry Received",
          "order": 1,
          "campaign_id": 4,
          "contacts_count": 12
        },
        {
          "id": 11,
          "name": "Closed Won",
          "order": 2,
          "campaign_id": null,
          "contacts_count": 30
        }
      ]
    }
  ]
}
GET/api/v1/journies/{id}

Retrieve full details of a journey pipeline, including attached API campaigns per stage.

Parameters

ParameterTypeRequiredDescription
journey_idintegerRequiredPipeline ID (passed in route or query param)
include_contactsbooleanOptionalWhen true, returns contact cards grouped in stages
POST/api/v1/journies/contacts

Adds a contact to the pipeline's initial stage (lowest order). If the stage has an attached campaign, the entry broadcast is dispatched immediately.

Parameters

ParameterTypeRequiredDescription
journey_idintegerRequiredTarget pipeline ID
phonestringOptionalContact phone with country code. Required if contact_id omitted
contact_idintegerOptionalExisting contact ID. Required if phone omitted
Example Request Payload
{
  "journey_id": 1,
  "phone": "+919876543210"
}
POST/api/v1/journies/move-contact

Moves a contact between stages within a journey. Automatically detaches from the previous stage and fires ContactMovedToStage.

Parameters

ParameterTypeRequiredDescription
stage_idintegerRequiredDestination stage ID
contact_idintegerOptionalTarget contact ID (or provide phone)
phonestringOptionalTarget contact phone number
Example Request Payload
{
  "stage_id": 11,
  "contact_id": 12
}
GET/api/v1/journies/contact-stages

Retrieve all current journey stage memberships for a specific contact across all active pipelines.

Parameters

ParameterTypeRequiredDescription
phonestringOptionalFilter by contact phone
contact_idintegerOptionalFilter by contact ID
Response 200 OK
{
  "status": "success",
  "data": {
    "contact": {
      "id": 12,
      "name": "Aarav Sharma",
      "phone": "+919876543210"
    },
    "stages": [
      {
        "stage_id": 11,
        "stage_name": "Demo Completed",
        "order": 2,
        "campaign_id": null,
        "journey_id": 1,
        "journey_name": "Enterprise Sales Pipeline"
      }
    ]
  }
}

Model Context Protocol (MCP) Integration

The official npm package @codingmantra/wacm-mcp provides 3 dedicated read tools for customer journeys:

list_journies

List pipelines, stages, and contact distribution.

get_journey

Inspect a specific pipeline and its stages by ID.

get_contact_stages

Check which pipeline stages a contact belongs to.

AI & LLM Integration Hub

LLM Ready

Feed WACM API specs directly to Cursor, Claude, ChatGPT, Antigravity, or custom AI agents.

Download .mdOpenAPI 3.1
Machine-Readable Feeds:/llms.txt /llms-full.txt