## Create a contact pipeline

**post** `/v1/contacts/pipelines`

> [!WARNING]
This endpoint is in beta and isn't available to every workspace yet. Its parameters and response schemas may change, including breaking changes.

Creates a pipeline on the object type. Each stage receives a UUIDv4 unless the caller supplies its ID.

A name, slug or stage ID that another pipeline on the object type has is refused with 409 and a `code` of `crm.pipeline.name_taken`, `crm.pipeline.slug_taken` or `crm.pipeline.stage_id_taken`. Stage IDs on an object type must also be distinct after ignoring case, hyphens, and underscores. A new collision with an existing stage returns 409 `crm.pipeline.stage_id_taken`; one between two new stages in the request returns 422. A stage ID that newly conflicts with another stage’s label, in either its stored or published spelling, is refused with 409 `crm.pipeline.stage_id_taken`. A name or stage ID can be taken once the other pipeline gives it up, so the request can be sent again then. A workspace without multiple pipelines is refused with 403 `crm.pipeline.configuration_disabled`.

Requires a workspace owner or admin.

**[Required scopes](/using-the-api/scopes/):** `contacts:read` and `config:create`

**[Rate limit category](/using-the-api/rate-limits/):** Write

### Body Parameters

- `name: string`

  Display name of the pipeline, unique among pipelines on the object type.

- `description: optional string`

  Description of the pipeline. Send null to clear it; an empty or whitespace-only string returns 422.

- `forecastEnabled: optional boolean`

  Whether stages carry a forecast. Defaults to false.

- `slug: optional string`

  Key of the pipeline, fixed once created. A slug another pipeline on the object type already has is refused with 409 `crm.pipeline.slug_taken`, so a create sent again after a lost response is recognized. Derived from `name` when left out.

- `stages: optional array of object { category, color, icon, 4 more }`

  Stages in display order. Defaults to none.

  - `category: "ACTIVE" or "COMPLETED"`

    Lifecycle group of the stage, in-progress (`ACTIVE`) or done (`COMPLETED`).

    - `"ACTIVE"`

    - `"COMPLETED"`

  - `color: "RED" or "ORANGE" or "YELLOW" or 7 more`

    Color the stage is displayed in.

    - `"RED"`

    - `"ORANGE"`

    - `"YELLOW"`

    - `"LIME"`

    - `"GREEN"`

    - `"BLUE"`

    - `"INDIGO"`

    - `"PURPLE"`

    - `"COPPER"`

    - `"GRAY"`

  - `icon: "BACKLOG" or "QUALIFICATION" or "DISCOVERY" or 4 more`

    Icon the stage is displayed with.

    - `"BACKLOG"`

    - `"QUALIFICATION"`

    - `"DISCOVERY"`

    - `"ACTIVE"`

    - `"NEGOTIATION"`

    - `"CLOSED_WON"`

    - `"CLOSED_LOST"`

  - `label: string`

    Display name of the stage.

  - `id: optional string`

    Omit the ID to create a new stage with a random UUIDv4. To keep or edit a stage, send its published ID. A caller-chosen ID starts with `opt_` followed by either a UUID in any letter case or groups of lowercase letters and digits separated by single hyphens or underscores. The ID must be unique on the object type, ignoring case, hyphens, and underscores.

  - `description: optional string`

    Description of the stage. Null clears it.

  - `forecastPercentage: optional number`

    Forecast weighting from 0 to 100. Only allowed when `forecastEnabled`. Null clears it.

### Returns

- `ContactCreatePipelineResponse object { id, description, forecastEnabled, 3 more }`

  - `id: string`

    Unique identifier of the pipeline.

  - `description: string`

    Description of the pipeline, or null.

  - `forecastEnabled: boolean`

    Whether stages carry a `forecastPercentage`. Turning it off clears every stage forecast.

  - `name: string`

    Display name of the pipeline.

  - `slug: string`

    Key derived from the name when the pipeline was created, unique on the object type. Pipelines provisioned by Lightfield use a `$` prefix (e.g. `$default-pipeline`).

  - `stages: array of object { id, label, category, 4 more }`

    Stages in display order. Each `id` is the option ID records hold in `$stage`.

    - `id: string`

      Unique identifier of the select option.

    - `label: string`

      Human-readable display name of the option.

    - `category: optional "ACTIVE" or "COMPLETED"`

      Lifecycle group of the option, in-progress (`ACTIVE`) or done (`COMPLETED`), `ACTIVE` when none was set. Absent on selects whose options are not grouped.

      - `"ACTIVE"`

      - `"COMPLETED"`

    - `color: optional "RED" or "ORANGE" or "YELLOW" or 7 more`

      Color the option is displayed in, `GRAY` when none was chosen. Absent on selects whose options take no color.

      - `"RED"`

      - `"ORANGE"`

      - `"YELLOW"`

      - `"LIME"`

      - `"GREEN"`

      - `"BLUE"`

      - `"INDIGO"`

      - `"PURPLE"`

      - `"COPPER"`

      - `"GRAY"`

    - `description: optional string`

      Description of the option, or null.

    - `forecastPercentage: optional number`

      Forecast weighting of the option from 0 to 100, or null when none is set. Absent on selects whose options take no forecast.

    - `icon: optional "BACKLOG" or "QUALIFICATION" or "DISCOVERY" or 4 more`

      Icon the option is displayed with, `BACKLOG` when none was chosen. Present only on $stage.

      - `"BACKLOG"`

      - `"QUALIFICATION"`

      - `"DISCOVERY"`

      - `"ACTIVE"`

      - `"NEGOTIATION"`

      - `"CLOSED_WON"`

      - `"CLOSED_LOST"`

### Example

```http
curl https://api.lightfield.app/v1/contacts/pipelines \
    -H 'Content-Type: application/json' \
    -H 'Lightfield-Version: 2026-03-01' \
    -H "Authorization: Bearer $API_KEY" \
    -d '{
          "name": "name"
        }'
```

#### Response

```json
{
  "id": "id",
  "description": "description",
  "forecastEnabled": true,
  "name": "name",
  "slug": "slug",
  "stages": [
    {
      "id": "id",
      "label": "label",
      "category": "ACTIVE",
      "color": "RED",
      "description": "description",
      "forecastPercentage": 0,
      "icon": "BACKLOG"
    }
  ]
}
```
