The Pipelines API provides a read only interface to your sales pipeline definition.

Sales pipelines consist of a sequence of Stages. When you sign up to Sell, a single pipeline is created.

JSON format

NameTypeRead onlyDescription
idnumbertrueUnique identifier of the pipeline.
namestringfalseHuman-friendly name of the pipeline.
created_atstringtrueDate and time of when the custom field was created in UTC (ISO8601 format).
updated_atstringtrueDate and time of the last update in UTC (ISO8601 format).
disabledbooleanfalseIndicator whether or not the pipeline is disabled. You cannot add deals to the disabled pipeline.

Retrieve all Pipelines

GET /v2/pipelines

Returns all pipelines available to the user, according to the parameters provided.

NameTypeInRequiredDescription
pagenumberQueryfalsePage number to start from. Page numbering starts at 1, and omitting the page parameter will return the first page. e.g. ?page=2
per_pagenumberQueryfalseNumber of records to return per page. Default limit is 25 and the maximum number that can be returned is 100. e.g. ?per_page=20
idsnumberQueryfalseComma-separated list of IDs to be returned in request. e.g. ?ids=1,2,3
sort_bystringQueryfalseComma-separated list of fields to sort by. The sort criteria is applied in the order specified. The default ordering is ascending. If you want to change the sort ordering to descending, append :desc to the field e.g. sort_by=name:desc. Possible values: id, name
namestringQueryfalseName of the pipeline to search for. This parameter is used in a strict sense. e.g. ?name=Default%20Sales%20Pipeline
disabledstringQueryfalseParameter that determines whether to return disabled or enabled pipelines. e.g. ?disabled=false

Allowed for

  • Agents

Using cURL

curl -v -X GET https://api.getbase.com/v2/pipelines \-H "Accept: application/json" \-H "Authorization: Bearer $ACCESS_TOKEN"

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8Content-Language: en
{  "items": [    {      "data": {        "id": 1,        "name": "Default Sales Pipeline",        "created_at": "2015-04-10T11:43:22Z",        "updated_at": "2015-04-10T11:43:22Z",        "disabled": false      },      "meta": {        "type": "pipeline"      }    }  ],  "meta": {    "type": "collection",    "count": 1,    "links": {      "self": "https://api.getbase.com/v2/pipelines?per_page=25&page=1"    }  }}