GoliathDevelopersGet an API key
Reference/Dealsgenerated from the gateway manifest

listStagesOfPipelines

Every owned and shared pipeline and its stages, in order.

POST/api/v1/callREADreadruns as the key's owner
View as Markdown

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.

curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listStagesOfPipelines",
    "variables": {}
  }'
import { GoliathClient } from '@goliath-data/sdk'

const goliath = new GoliathClient({
  apiKey: process.env.GOLIATH_API_KEY!,
  baseUrl: 'https://server.goliathdata.com',
})

const result = await goliath.deals.listStagesOfPipelines()
const res = await fetch('https://server.goliathdata.com/api/v1/call', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.GOLIATH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    operationId: 'listStagesOfPipelines',
    variables: {}
  }),
})
const { data, errors } = await res.json()

Variables

None. Send "variables": {}.

Response

What comes back under data: a list shows as one entry, and a value as its type.

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

Errors

Behaviour

A read. It rejects an Idempotency-Key header with 400 bad_request.