Para agentes de IA: markdown desta página — /docs-content-en/errors/request.md índice da documentação — /llms.txt
Os artigos da documentação estão disponíveis atualmente em inglês.
Request and data
A detailed breakdown of the codes the Vibecode API returns for a malformed request body, a missing filter, and a call to a record that does not exist.
The summary table of all Vibecode API codes — Error codes.
`VALIDATION_ERROR` (400)
The body or query parameters failed schema validation. Most V1 endpoints handle this through Zod, so the message names the specific fields that failed validation.
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "fields.title: Required; fields.stageId: Expected string, received number"
}
}
Causes:
- Required fields are missing.
- The value type does not match the schema (a string instead of a number, a wrong date format).
- The
Content-Type: application/jsonheader is missing. A body that does not parse as JSON is rejected with separate codes —INVALID_JSON_BODY,FST_ERR_CTP_INVALID_JSON_BODY, orfst_err_ctp_invalid_json_bodyon AI Router routes. Which one arrives depends on the route — see the summary table of codes.
Solution:
- Check the request body against the endpoint schema in the API overview or on the specific endpoint page.
- Pass numbers without quotes and dates in ISO 8601 format (
2026-04-29T10:00:00). - Add the
Content-Type: application/jsonheader.
`INVALID_PARAMS` (400)
Bitrix24 or the route handler found an invalid parameter value. Bitrix24 errors of the form INVALID_PARAMS: ... arrive under this same code.
{
"success": false,
"error": {
"code": "INVALID_PARAMS",
"message": "Path parameter :id must be a positive integer"
}
}
Causes:
- An invalid path parameter value (for example, a non-number where a number is expected).
- Bitrix24 rejected a request parameter (for example, an unsupported value of an enum field).
- A write puts an object or an array into a field declared scalar (
string,number,boolean,date,datetime). Bitrix24 stores such a value as the stringArray, losing the data without an error, so the request is refused before the call. The check runs on entity create and update under/v1/<entity>, on both batch write surfaces and on import. - An employee update puts into
personalPhotoa value Bitrix24 cannot read as file content: an empty or whitespace-only string, the literalfalse, the booleanstrueandfalse, the number0, a string with fewer than two base64-alphabet characters, an inline[file name, base64]pair whose content is one of those, and any other structure whose second value is missing,nullor unreadable (the nested{fileData: [...]}, an empty array, a one-element array, an explicitnullor a structure in the content element). Bitrix24 treats each of them as a command to remove the current photo, so Vibecode refuses the value before the call. To keep the photo, omit the field; to remove it, callDELETE /v1/users/:id/personal-photo.
Boundaries of the value checks:
- A name absent from the entity schema (custom fields
UF_*,propertyNNN, a typo) is not checked — it has no declared type. - A number or a boolean in a string field is accepted: Bitrix24 stores
123456and1, and nothing is lost. The shape check acceptsnulltoo. The exception isusers.personalPhotoon UPDATE: the booleanstrueandfalse, the number0and every other value Bitrix24 cannot turn into a file (an empty string, a whitespace-only string, the literalfalse, a string with fewer than two base64-alphabet characters, and an inline pair with such content) are refused withINVALID_PARAMSon all three update surfaces — the singlePATCH /v1/users/:id, the per-entity batch write andPOST /v1/batch.nullstands apart from them: it is refused only on UPDATE inPOST /v1/batch, because the global batch encoder would turn it into an empty command. On the single PATCH and in the per-entity batch,nullreaches no removal branch and removes no photo, which is why it is not refused there. - For the remaining scalar types the check also judges the VALUE against the declared type, not only its shape. A number field accepts a JSON number or a numeric string using a dot as the decimal separator (
"1234.56"); leading and trailing whitespace around such a string is ignored (" 1234.56 "is accepted), but a comma ("1234,56"— the ru/de/fr/es/it/br convention) is not: the value is refused withINVALID_PARAMSpointing at the dot, rather than silently reinterpreted. A boolean field accepts the JStrue/falseor a recognized string form, case-insensitive and trimmed ("true"/"false","yes"/"no","y"/"n","1"/"0") — the JSON number1or0does not count as such a form and is refused too. Thetasks.priorityandtasks.statusnumber fields are additionally checked for membership in their declared value list — a value outside the list is refused withINVALID_PARAMS; every otherenumfield in the registry has an open list, and this check does not run on them. The empty string is an exception that applies ONLY to a string field (see above): in a number or boolean field it does not clear the value — it is refused as a type mismatch, because otherwise Bitrix24 would turn it into0orfalseunder a success response. Fields declareddateanddatetimedo not yet get this value check: a structured value (an object, an array) in them is still refused (see above), but a malformed string is not — it travels to Bitrix24 as is. - A string field with a declared length limit (today only
order-statuses.color, limited to 10 characters) refuses a value past the limit withINVALID_PARAMSrather than silently truncating it to the database column width. A string field without a declared limit is not checked for length. - Fields declared
object,arrayor multi-value take structures as before. - One deliberate exception is the file field:
users.personalPhotoaccepts, on write, an array of exactly two non-empty strings[file name, base64], and only on the single-routePOST /v1/usersandPATCH /v1/users/:id. Any other structure in it — including the nested{fileData: [...]}, which Bitrix24 accepts with success while CLEARING the photo — and the same shape on batch routes are refused: a batch sub-call travels as a query string under the global body cap, and past its length limit the value would be truncated while still answering success. On UPDATE through the single PATCH or either batch route, any value Bitrix24 cannot turn into a file is refused withINVALID_PARAMS: an empty string, a whitespace-only string, the literalfalse, the booleanstrueandfalse, the number0, a string with fewer than two base64-alphabet characters, and the same inline pair when its content is one of those (a shape of two non-empty strings says nothing about the content being decodable). To keep the photo, omit the field; to remove it, callDELETE /v1/users/:id/personal-photo. On CREATE inPOST /v1/users, an empty string does not get the new refusal. Details: Update an employee. ThePOST /v1/users/invitewrapper accepts the same inline pair, translates the field name, and validates it separately with its ownPERSONAL_PHOTO_INVALIDcode, but its body limit is still the GLOBAL one (1 MiB against the 40 MiB of the single routes), so an ordinary phone snapshot hits the size cap there: for a real photo usePOST /v1/usersorPATCH /v1/users/:id. - The refusal shape differs by surface, and so does its reach. The global batch refuses ONLY its own sub-call: the failure arrives in
data.errors["<call id>"]with separatecodeandmessagefields, and neighbouring sub-calls still run. If every sub-call is refused before dispatch, the overall response remains400 INVALID_REQUEST. The per-entity batch write (POST /v1/{entity}/batch) and import refuse the WHOLE request: a400arrives with codeBATCH_ITEM_VALIDATIONorIMPORT_ITEM_VALIDATION, while the element index andINVALID_PARAMSlive insidemessage, shapedItem at index N: INVALID_PARAMS — …. Such a response carries neitherdatanor per-itemresults, and nothing reaches Bitrix24: the check runs before the dispatch. - A few bespoke write routes are not covered yet:
POST /v1/addresses,PATCH /v1/addresses, task comments (/v1/tasks/:taskId/comments),POST /v1/doc-templates, Open Channels config and product rows (/v1/{entity}/:id/products). There the previous behaviour still applies.
Solution:
- Check the endpoint page for the values allowed for each parameter.
- For
filter, use the field list fromGET /v1/<entity>/fields.
`MISSING_REQUIRED_FILTER` (400)
A required filter was not passed on a list endpoint that needs context.
{
"success": false,
"error": {
"code": "MISSING_REQUIRED_FILTER",
"message": "GET /v1/timelines requires filter fields: entityType, entityId. Example: GET /v1/timelines?filter[entityType]=...&filter[entityId]=..."
}
}
Causes:
- The timeline record list requires the pair of parent identifiers
entityType+entityId. - The catalog product and section lists require
iblockId, and the value list of a list property requirespropertyId. - Activity aggregation requires a narrowing filter: the pair
ownerTypeId+ownerId, orresponsibleId, or a date bound oncreatedAt/updatedAt/deadline. Here the requirement is not "all of the above" but "any one of them" — Bitrix24 cannot count every activity of the account within the time allotted to the call. The platform enables the requirement per account. Check the state indata.aggregateFilterRequirement.enforcementin theGET /v1/activities/fieldsresponse.
The check runs before the call to Bitrix24 and applies to GET /v1/{entity}, POST /v1/{entity}/search, and POST /v1/{entity}/aggregate.
Solution:
- Add the required filter parameters listed in
messageor on the endpoint page.
`BATCH_LIMIT_EXCEEDED` (400)
The request exceeds the item limit of a bulk operation. At the /v1/batch level the limit is reported through INVALID_REQUEST referencing Array must contain at most 50 element(s). On domain endpoints for bulk operations (for example, chats, task-comments) there is a separate code, BATCH_LIMIT_EXCEEDED.
{
"success": false,
"error": {
"code": "BATCH_LIMIT_EXCEEDED",
"message": "Maximum 50 dialogs per bulk request (Bitrix24 batch limit)."
}
}
Causes:
- The array holds more than 50 items.
Solution:
- Split the operation into several requests of 50 items each.
- Use batch requests for sequential calls with a single key.
`ENTITY_NOT_FOUND` (404)
The CRM entity record with the given id does not exist or has been deleted.
{
"success": false,
"error": {
"code": "ENTITY_NOT_FOUND",
"message": "Item not found"
}
}
Causes:
- A record with this
idreally does not exist. - The record was deleted by a parallel process.
- The entity was mixed up: the request goes to
/v1/deals/:idwhile the ID belongs to a lead.
Solution:
- Check that the record exists through the entity's list endpoint.
- Restore it from the Bitrix24 recycle bin (through the account interface) if the record was deleted recently.