The Stages API provides read-only access to details of your sales pipeline stages.

Stages are key components of a sales pipeline. Each stage can have any number of Deals associated with it. When you sign up to Sell, we create a single pipeline with 7 stages which you can freely modify via the web frontend.

The table below shows the default state of the pipeline.

NameCategoryActivePositionLikelihood
Prospectingincomingtrue15
Qualifiedin_progresstrue210
Quotein_progresstrue320
Closurein_progresstrue750
Wonwonfalse8n/a
Lostlostfalse9n/a
Unqualifiedunqualifiedfalse10n/a

JSON format

NameRead OnlyTypeDescription
idtruenumberThe unique identifier of the stage.
namefalsestringHuman-friendly name of the stage.
categoryfalsestringThe unique category name of the stage.
activefalsebooleanIndicator whether or not the stage contains finalized deals.
positionfalsenumberThe stage's position in the pipeline.
likelihoodfalsenumberThe likelihood that a deal will be won, set for the stage as percentage.
pipeline_idfalsenumberUnique identifier of the pipeline that contains this stage.
created_attruestringDate and time of creation in UTC ISO8601 format.
updated_attruestringDate and time of last update in UTC ISO8601 format.

Retrieve all stages

GET /v2/stages

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

Parameters

NameRequiredTypeInDescription
pipeline_idfalsenumberQueryThe unique identifier of the pipeline that contains this stage.
pagefalsenumberQueryThe page number to start from. Page numbering starts at 1, and omitting the page parameter will return the first page.
per_pagefalsenumberQueryThe number of records to return per page. The default limit is 25 and the maximum number that can be returned is 100.
sort_byfalsestringQueryComma-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=position:desc. Possible values: pipeline_id, id, name, category, position, likelihood
idsfalsestringQueryComma-separated list of stage IDs to be returned in a request.
namefalsestringQueryName of the stage you're searching for. This parameter is used in a strict sense.
activefalsebooleanQueryParameter that determines whether to return active or inactive stages.

Allowed for

  • Agents

Using cURL

curl -v -X GET https://api.getbase.com/v2/stages?pipeline_id=1 \-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": "Prospecting",        "category": "incoming",        "position": 1,        "likelihood": 5,        "active": true,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 2,        "name": "Qualified",        "category": "in_progress",        "position": 2,        "likelihood": 10,        "active": true,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 3,        "name": "Quote",        "category": "in_progress",        "position": 3,        "likelihood": 20,        "active": true,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 4,        "name": "Closure",        "category": "in_progress",        "position": 4,        "likelihood": 50,        "active": true,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 5,        "name": "Won",        "category": "won",        "position": 5,        "active": false,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 6,        "name": "Unqualified",        "category": "unqualified",        "position": 6,        "active": false,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    },    {      "data": {        "id": 7,        "name": "Lost",        "category": "lost",        "position": 7,        "active": false,        "pipeline_id": 1,        "created_at": "2015-04-10T13:30:41Z",        "updated_at": "2015-04-10T13:30:41Z"      },      "meta": {        "type": "stage"      }    }  ],  "meta": {    "type": "collection",    "count": 7,    "links": {      "self": "https://api.getbase.com/v2/stages?per_page=25&page=1"    }  }}