# listStagesOfPipelines

Every owned and shared pipeline and its stages, in order; a large organization's answer is cut short. A stage by name is SEARCH_CONTEXT DEAL_STAGE (every pipeline; a miss is final), and every deal in it, in your own pipelines, findDeals `stageName`. Names repeat: move a deal only within its own pipeline.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listStagesOfPipelines", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

None.

## Response (data, an example)

```json
{
  "currentUser": {
    "myPipelines": [
      {
        "id": "<ID>",
        "name": "…",
        "stages": [
          {
            "id": "<ID>",
            "name": "…",
            "isTerminal": true
          }
        ]
      }
    ],
    "sharedPipelines": [
      {
        "id": "<ID>",
        "name": "…",
        "sharedByOrganizationName": "…",
        "stages": [
          {
            "id": "<ID>",
            "name": "…",
            "isTerminal": true
          }
        ]
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listStagesOfPipelines",
    "variables": {}
  }'
```
