API Documentation
Pipelines ¶
Pipelines ¶
For more details about pipelines and how to use them with deal statuses, please refer to the help article.
Pipelines serve as a tool for grouping deal statuses (i.e. folders for better organisation of sales phases).
Following depicts the Pipeline entity relationship diagram:
Supported filter params
- pipeline_type_id (1: sales, 2: production)
GET /api/v2/pipelines
Requests
GET /api/v2/pipelines
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": [
{
"id": "1337",
"type": "pipelines",
"attributes": {
"name": "Pipeline 385",
"created_at": "2025-09-13T06:06:29.858+02:00",
"updated_at": "2025-09-13T06:06:29.858+02:00",
"position": 1,
"icon_id": null,
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "952"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
},
{
"id": "1336",
"type": "pipelines",
"attributes": {
"name": "Sales",
"created_at": "2025-09-13T06:06:29.812+02:00",
"updated_at": "2025-09-13T06:06:29.812+02:00",
"position": 1,
"icon_id": "funnel",
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "952"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/pipelines?page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/pipelines?page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 2,
"page_size": 30,
"max_page_size": 200
}
}
Get pipelinesGET/api/v2/pipelines
GET /api/v2/pipelines/1
Requests
GET /api/v2/pipelines/1339
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1339",
"type": "pipelines",
"attributes": {
"name": "Pipeline 386",
"created_at": "2025-09-13T06:06:29.922+02:00",
"updated_at": "2025-09-13T06:06:29.922+02:00",
"position": 1,
"icon_id": null,
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "953"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
POST /api/v2/pipelines
Requests
POST /api/v2/pipelines
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "pipelines",
"attributes": {
"name": "test name",
"position": 1
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1341",
"type": "pipelines",
"attributes": {
"name": "test name",
"created_at": "2025-09-13T06:06:29.986+02:00",
"updated_at": "2025-09-13T06:06:29.986+02:00",
"position": 1,
"icon_id": null,
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "954"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
POST /api/v2/pipelines
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "pipelines",
"attributes": {
"name": "test name",
"position": 1,
"pipeline_type_id": 1
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1343",
"type": "pipelines",
"attributes": {
"name": "test name",
"created_at": "2025-09-13T06:06:30.049+02:00",
"updated_at": "2025-09-13T06:06:30.049+02:00",
"position": 1,
"icon_id": null,
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "955"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
POST /api/v2/pipelines
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "pipelines",
"attributes": {
"name": ""
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/name"
}
}
]
}
POST /api/v2/pipelines
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "pipelines",
"attributes": {
"name": "too many pipelines",
"position": 1,
"pipeline_type_id": 1
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "403",
"code": "pipelines_limit_exceeded",
"title": "Access Denied",
"detail": "You've exceeded your Pipelines limit. Please delete at least one pipeline in order to create new one.",
"source": {}
}
]
}
Create a pipelinePOST/api/v2/pipelines
URI Parameters
- name
string
(required) Example: Namename
- position
number
(required) Example: 1position
PATCH /api/v2/pipelines/1
Requests
PATCH /api/v2/pipelines/1349
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "pipelines",
"attributes": {
"name": "new name"
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1349",
"type": "pipelines",
"attributes": {
"name": "new name",
"created_at": "2025-09-13T06:06:30.243+02:00",
"updated_at": "2025-09-13T06:06:30.259+02:00",
"position": 1,
"icon_id": null,
"pipeline_type_id": 1
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "958"
}
},
"creator": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
DELETE /api/v2/pipelines/1
Requests
DELETE /api/v2/pipelines/1351
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "409",
"code": "record_is_last_pipeline",
"title": "Conflict error",
"source": {}
}
]
}
DELETE /api/v2/pipelines/1353
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
This response has no content.
Deletes a pipelineDELETE/api/v2/pipelines/{id}
URI Parameters
- id
number
(required) Example: 1pipeline id
Generated by aglio on 13 Sep 2025