For AI agents: markdown of this page — /docs-content-en/entities/deal-categories/get.md documentation index — /llms.txt
Get a pipeline
GET /v1/deal-categories/:id
Returns a sales pipeline by ID.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id |
number | Pipeline ID. List — GET /v1/deal-categories |
The main pipeline with id 0 is not available via this endpoint — use /v1/categories/2/0 for it.
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/deal-categories/3" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/deal-categories/3" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/deal-categories/3', {
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { success, data } = await res.json()
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/deal-categories/3', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
id |
number | Pipeline ID |
name |
string | Name |
sort |
number | Sort |
isLocked |
boolean | Whether the pipeline is locked — unavailable on the current plan |
createdAt |
datetime | Creation date |
Response example
{
"success": true,
"data": {
"id": 3,
"name": "Corporate sales",
"sort": 200,
"isLocked": false,
"createdAt": "2025-06-01T14:00:00.000Z"
}
}
Error response example
{
"success": false,
"error": { "code": "ENTITY_NOT_FOUND", "message": "Not found" }
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 404 | ENTITY_NOT_FOUND |
Pipeline not found |
| 403 | SCOPE_DENIED |
The API key lacks the crm scope |
| 401 | TOKEN_MISSING |
No API key provided |
Full list of errors — Errors.
See also
- List pipelines — all pipelines
- Update a pipeline — changing the name
- Sales pipelines — entity overview