# POST /pipelines/:pipeline_id/stages

**Resource:** [Pipelines](./pipelines.md)  
**MCP tool:** `create_pipeline_stage`  
**Scopes:** `pipelines:write`  
**Write operation:** yes

Add a new stage to a pipeline. Requires a name. Optional: position (defaults to end), color (hex), is_won_stage, is_lost_stage.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `pipeline_id` | path | string | yes | UUID of the parent pipeline |
| `name` | body | string | yes | Stage name |
| `position` | body | number | no | Display order within the pipeline (0-based) |
| `color` | body | string | no | Hex colour code for the stage chip |
| `is_won_stage` | body | boolean | no | Mark this stage as a "won" terminal stage |
| `is_lost_stage` | body | boolean | no | Mark this stage as a "lost" terminal stage |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/pipelines/:pipeline_id/stages"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","position":"...","color":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`