For AI agents: markdown of this page — /docs-content-en/entities/requisite-presets/list.md documentation index — /llms.txt

List requisite presets

GET /v1/requisite-presets

Returns a list of requisite presets with support for filtering, sorting, and auto-pagination. Used to retrieve the available field-set presets before creating a requisite.

Parameters

Parameter Type Default Description
limit number 50 Number of records (up to 5000). When limit > 50, Vibecode automatically requests multiple pages from Bitrix24
offset number 0 Skip N records. When offset > 0, limit ≤ 500 is recommended
select string Field selection: ?select=id,name,active
sort string Sorting via the short syntax: ?sort=-sort, the minus means descending. For the identifier, use ?sort=-ID in upper case
order object Sorting: ?order[sort]=asc, ?order[name]=desc. Ordering by the identifier uses the upper-case name — ?order[ID]=desc, while the form ?order[id]=desc leaves the result set unchanged
filter object Filtering by the fields from GET /v1/requisite-presets/fields.
Filtering syntax. Example: ?filter[active]=true&filter[countryId]=122

Pagination

When limit > 50, Vibecode automatically paginates the request server-side. The maximum is 5000 records per call. If more records match the filter, meta.hasMore returns true.

Examples

curl — personal key

Terminal
curl "https://vibecode.bitrix24.com/v1/requisite-presets" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth app

Terminal
curl "https://vibecode.bitrix24.com/v1/requisite-presets" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"

JavaScript — personal key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/requisite-presets', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data, meta } = await res.json()
console.log(`Found ${meta.total} presets`)

JavaScript — OAuth app

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/requisite-presets', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { success, data, meta } = await res.json()

Response fields

Field Type Description
success boolean Always true on success
data array Array of presets (all fields — see Requisite preset fields)
meta.total number Total number of records matching the filter
meta.hasMore boolean Whether there are more records beyond limit

Response example

JSON
{
  "success": true,
  "data": [
    {
      "id": 1,
      "entityTypeId": 8,
      "countryId": 122,
      "name": "Company",
      "createdAt": "2020-04-20T10:47:23.000Z",
      "updatedAt": "2021-08-13T14:34:26.000Z",
      "createdBy": 0,
      "modifyBy": 1,
      "active": true,
      "sort": 510,
      "xmlId": "#CRM_REQUISITE_PRESET_DEF_RU_COMPANY#"
    },
    {
      "id": 3,
      "entityTypeId": 8,
      "countryId": 122,
      "name": "Sole proprietor",
      "createdAt": "2020-04-20T10:47:23.000Z",
      "updatedAt": "2021-07-20T14:39:09.000Z",
      "createdBy": 0,
      "modifyBy": 1,
      "active": false,
      "sort": 520,
      "xmlId": "#CRM_REQUISITE_PRESET_DEF_RU_INDIVIDUAL#"
    },
    {
      "id": 5,
      "entityTypeId": 8,
      "countryId": 122,
      "name": "Person",
      "createdAt": "2020-04-20T10:47:23.000Z",
      "updatedAt": "2021-08-13T14:34:34.000Z",
      "createdBy": 0,
      "modifyBy": null,
      "active": true,
      "sort": 530,
      "xmlId": "#CRM_REQUISITE_PRESET_DEF_RU_PERSON#"
    }
  ],
  "meta": {
    "total": 14,
    "hasMore": false
  }
}

Error response example

403 — no scope:

JSON
{
  "success": false,
  "error": {
    "code": "SCOPE_DENIED",
    "message": "This endpoint requires 'crm' scope"
  }
}

Errors

HTTP Code Description
403 SCOPE_DENIED API key lacks the crm scope
401 TOKEN_MISSING API key has no configured tokens
400 INVALID_FILTER Filter syntax error
429 RATE_LIMITED Rate limit exceeded: 300 requests per minute per portal, all API keys of the portal share one limit. The exact value arrives in the x-ratelimit-limit header (the cap is divided across replicas). Retry after the delay in the Retry-After header

Full list of common API errors — Errors.

Known specifics

The entityTypeId field is always 8. All presets belong to the "requisite" entity type — entityTypeId: 8. The value never changes, so it is not useful as a filter criterion.

The countryId field. The value depends on the country of the Bitrix24 account: on an international account the built-in presets Company and Person have countryId: 122. An account set up for another country returns presets with different countryId values. The xmlId values of the built-in presets depend on the account country in the same way.

Inactive presets are included in the list. A preset with active: false is returned in the list by default. To retrieve only active presets, pass filter[active]=true.

See also