# List pipelines

> A workspace's pipelines, each with its stages in order.

Source: https://docs.mycrmsim.com/docs/opportunities/list-pipelines

```http
GET https://backend.mysmsgateway.app/api/v1/ext/pipelines
```

- Category: myCRMSIM Opportunities / Opportunities
- Auth: Bearer access token
- Scope: `opportunities.read`

A workspace that has never opened its Pipeline gets the default pipeline created on the first call, as in the myCRMSIM dashboard.

Use a stage `id` from here for Create opportunity and Move stage. `is_won` / `is_lost` mark the closing stages.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 3,
      "name": "Sales",
      "is_default": true,
      "position": 0,
      "stages": [
        {
          "id": 8,
          "name": "New lead",
          "color": "#94a3b8",
          "position": 0,
          "is_won": false,
          "is_lost": false
        },
        {
          "id": 9,
          "name": "Qualified",
          "color": "#22c55e",
          "position": 1,
          "is_won": false,
          "is_lost": false
        },
        {
          "id": 10,
          "name": "Won",
          "color": "#16a34a",
          "position": 2,
          "is_won": true,
          "is_lost": false
        }
      ],
      "created_at": "2026-09-01T10:00:00.000Z",
      "updated_at": "2026-10-01T10:00:00.000Z"
    }
  ]
}
```

## Response 400

workspace_id missing

```json
{
  "success": false,
  "message": "workspace_id is required"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): opportunities.read. This integration was granted: …"
}
```

## Response 404

workspace_id does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```
