For AI agents: markdown of this page — /docs-content-en/entities/deal-categories/list.md documentation index — /llms.txt
List funnels
GET /v1/deal-categories
Returns a list of the sales funnels in your Bitrix24 account, with sorting and pagination support.
The main funnel with id 0 is not part of this list — it is available via /v1/categories/2.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
Parameterlimit |
Typenumber | Default50 |
DescriptionNumber of records |
Parameteroffset |
Typenumber | Default0 |
DescriptionSkip N records |
Parameterselect |
Typestring | Default— | DescriptionField selection: ?select=id,name,sort |
Parametersort |
Typestring | Default— | DescriptionSorting via the short syntax: ?sort=-sort. A leading minus sign means descending order |
Parameterorder |
Typeobject | Default— | DescriptionSorting: ?order[sort]=asc |
Parameterfilter |
Typeobject | Default— | DescriptionExact-match and $in (IN set) only, by id, name, sort. Operators (>, >=, <, <=, !, %, $ne, $contains, $nin) and filtering by isLocked / createdAt are not supported — you get 400 UNSUPPORTED_FILTER.Filtering syntax. Example: ?filter[name]=Newest |
ParameterwithTotal |
Typeboolean | Default— | DescriptionAccepted, but does not change the response: meta.total is returned for any value of the parameter and at any offset |
Examples
curl — personal key
curl -g "https://vibecode.bitrix24.com/v1/deal-categories?order[sort]=asc" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl -g "https://vibecode.bitrix24.com/v1/deal-categories?order[sort]=asc" \
-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?order[sort]=asc', {
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { success, data, meta } = await res.json()
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/deal-categories?order[sort]=asc', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data, meta } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata |
Typearray | DescriptionArray of funnels |
Fielddata[].id |
Typenumber | DescriptionFunnel ID |
Fielddata[].name |
Typestring | DescriptionName |
Fielddata[].sort |
Typenumber | DescriptionSort order |
Fielddata[].isLocked |
Typeboolean | DescriptionWhether the funnel is locked — unavailable on the current plan |
Fielddata[].createdAt |
Typedatetime | DescriptionCreation date |
Fieldmeta.total |
Typenumber | DescriptionNumber of funnels matching the filter. The main funnel is not counted |
Fieldmeta.hasMore |
Typeboolean | DescriptionWhether there is a next page |
Response example
{
"success": true,
"data": [
{
"id": 1,
"name": "Sales",
"sort": 100,
"isLocked": false,
"createdAt": "2025-01-15T10:30:00.000Z"
},
{
"id": 3,
"name": "Corporate sales",
"sort": 200,
"isLocked": false,
"createdAt": "2025-06-01T14:00:00.000Z"
}
],
"meta": { "total": 2, "hasMore": false }
}
Error response example
403 — the API key lacks the crm scope:
{
"success": false,
"error": { "code": "SCOPE_DENIED", "message": "This endpoint requires 'crm' scope" }
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP400 | CodeUNSUPPORTED_FILTER |
DescriptionAn operator or a non-filterable field in the filter. Filter by exact match or $in on id, name, sort |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key lacks the crm scope |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header is missing |
| HTTP429 | CodeRATE_LIMITED |
DescriptionRate limit exceeded: 300 requests per minute per portal. All API keys of the portal share one limit. The current limit is returned in the x-ratelimit-limit header. Retry after the delay in the Retry-After header |
For the full list of errors, see Errors.
Known specifics
Exact match only in the filter. The filter applies exact match (and the $in set) on id, name, sort. Operators (>, <, !, %), $ne/$contains/$nin and filtering by isLocked / createdAt return 400 UNSUPPORTED_FILTER — so you see immediately that the filter did not apply, instead of getting the whole list unfiltered. In Bitrix24, isLocked is a selection visibility toggle, not an equality field: the value Y returns all funnels, N returns all except locked ones. This field is returned as a boolean. Sorting with order by sort still works.