GET
/
api
/
public
/
pipeline
Get Pipelines
curl --request GET \
  --url https://api.vambe.me/api/public/pipeline \
  --header 'x-api-key: <x-api-key>'

Overview

This endpoint retrieves all pipelines associated with your account. Pipelines are workflow structures that help organize and track contacts through different stages of your business process (e.g., sales funnel, customer support, onboarding).

Use Cases

  • Display available pipelines: Show all pipelines in your application’s UI
  • Pipeline selection: Allow users to select which pipeline to work with
  • Analytics setup: Get pipeline data for reporting and analytics
  • Integration workflows: Sync pipeline structures with external CRM or automation tools

Authentication

This endpoint requires authentication using an API key. Include your API key in the request header:
x-api-key: your_api_key_here

Response Structure

The endpoint returns an array of pipeline objects. Each pipeline contains:
FieldTypeDescription
idstring (UUID)Unique identifier for the pipeline
namestringName of the pipeline
descriptionstringDetailed description of the pipeline’s purpose
stagesarrayList of stages within the pipeline

Stage Object

Each stage in the stages array contains:
FieldTypeDescription
idstring (UUID)Unique identifier for the stage
namestringName of the stage
descriptionstringDescription of what this stage represents

Example Response

[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Sales Pipeline",
    "description": "Track potential customers through the sales process",
    "stages": [
      {
        "id": "650e8400-e29b-41d4-a716-446655440001",
        "name": "Lead",
        "description": "Initial contact with potential customer"
      },
      {
        "id": "650e8400-e29b-41d4-a716-446655440002",
        "name": "Qualified",
        "description": "Lead has been qualified and shows interest"
      },
      {
        "id": "650e8400-e29b-41d4-a716-446655440003",
        "name": "Proposal",
        "description": "Proposal sent to customer"
      },
      {
        "id": "650e8400-e29b-41d4-a716-446655440004",
        "name": "Closed Won",
        "description": "Successfully closed the deal"
      }
    ]
  },
  {
    "id": "660e8400-e29b-41d4-a716-446655440010",
    "name": "Customer Support",
    "description": "Manage customer support tickets and inquiries",
    "stages": [
      {
        "id": "760e8400-e29b-41d4-a716-446655440011",
        "name": "Open",
        "description": "New support ticket received"
      },
      {
        "id": "760e8400-e29b-41d4-a716-446655440012",
        "name": "In Progress",
        "description": "Ticket is being actively worked on"
      },
      {
        "id": "760e8400-e29b-41d4-a716-446655440013",
        "name": "Resolved",
        "description": "Issue has been resolved"
      }
    ]
  }
]

Common Use Cases

1. Display Pipelines in a Dropdown

const response = await fetch('https://api.vambe.ai/api/public/pipeline', {
  headers: {
    'x-api-key': 'your_api_key_here',
  },
});

const pipelines = await response.json();

// Render in UI
const pipelineOptions = pipelines.map((pipeline) => ({
  value: pipeline.id,
  label: pipeline.name,
}));

2. Get All Stages from All Pipelines

const response = await fetch('https://api.vambe.ai/api/public/pipeline', {
  headers: {
    'x-api-key': 'your_api_key_here',
  },
});

const pipelines = await response.json();

// Flatten all stages
const allStages = pipelines.flatMap((pipeline) =>
  pipeline.stages.map((stage) => ({
    ...stage,
    pipelineName: pipeline.name,
    pipelineId: pipeline.id,
  })),
);

3. Find a Specific Pipeline

const response = await fetch('https://api.vambe.ai/api/public/pipeline', {
  headers: {
    'x-api-key': 'your_api_key_here',
  },
});

const pipelines = await response.json();

// Find by name
const salesPipeline = pipelines.find((p) => p.name === 'Sales Pipeline');

// Find stage within pipeline
const leadStage = salesPipeline?.stages.find((s) => s.name === 'Lead');

Error Responses

Status CodeDescription
400Bad Request - Invalid request format
401Unauthorized - Invalid or missing API key
500Internal Server Error - Something went wrong on our end

Tips

  • Cache the response: Pipeline structures typically don’t change frequently, so consider caching this data
  • Use IDs, not names: Always use pipeline and stage IDs for API calls, as names can be changed by users
  • Empty pipelines: A new account might have default pipelines or no pipelines at all
  • Stage order: Stages are returned in the order they appear in the pipeline workflow

Headers

x-api-key
string
required

API key needed to authorize the request

Response

Successful retrieval of WhatsApp templates.