Para agentes de IA: markdown desta página — /docs-content-en/keys-auth/guide.md índice da documentação — /llms.txt
Os artigos da documentação estão disponíveis atualmente em inglês.
API reference for the model
GET /v1/guide
Returns the field contract of all Bitrix24 account entities and API usage rules in one response. The model accesses it for the static field schema before a session token exists — for example, when an application needs to find out field types and constraints before user authorization.
Examples
curl — personal key
curl -H "X-Api-Key: YOUR_API_KEY" \
https://vibecode.bitrix24.com/v1/guide
curl — OAuth application
curl \
-H "X-Api-Key: YOUR_APP_KEY" \
https://vibecode.bitrix24.com/v1/guide
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/guide', {
headers: { 'X-Api-Key': 'YOUR_API_KEY' },
})
const { data } = await res.json()
data.entities.forEach((e) => {
console.log(`${e.name} (${e.scope}) — ${Object.keys(e.operations).join(', ')}`)
})
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/guide', {
headers: { 'X-Api-Key': 'YOUR_APP_KEY' },
})
const { data } = await res.json()
Response fields
The response is split into structural blocks: data.overview — an overview, data.entities — entity contracts, data.paginationCanon — the paging and counting rules shared by every entity, data.importantNotes and data.knownIssues — nuances and constraints, plus pointers to documentation sections. Below are the response envelope, the structure of a data.entities[] element and the nested contract of the fieldsDetailed field.
| Field | Type | Description |
|---|---|---|
success |
boolean | Always true on success |
data |
object | Reference: overview, entity contracts, API usage rules |
data.overview |
string | Overview description of the available API surface |
data.entities |
array | Contracts of entities available to the key |
data.entities[].name |
string | Entity identifier for /v1/<name> paths |
data.entities[].basePath |
string | Entity base path. For dynamic entities, it contains the parameter segment, for example /v1/items/:entityTypeId |
data.entities[].scope |
string | Scope required to access the entity |
data.entities[].bitrixEntity |
string | Entity name on the Bitrix24 side |
data.entities[].operations |
object | Available operations. Keys — list, getById, create, update, delete, search, aggregate, batch. Only supported operations are present |
data.entities[].operations.<op>.method |
string | HTTP method of the operation |
data.entities[].operations.<op>.path |
string | Operation path. Some operations additionally carry params, example, note, requiredParams |
data.entities[].operations.search.paginationStability.counting |
string | How to learn the exact record count for this entity. It arrives with its own text per entity, because it depends on whether that entity offers the aggregate operation |
data.entities[].fields |
object | Compact field map: the field name maps to a type or type, readonly string |
data.entities[].fieldsDetailed |
object | Detailed field contract: the field name maps to an object with type and constraints |
data.entities[].fieldsDetailed.<field>.type |
string | Field type |
data.entities[].fieldsDetailed.<field>.readonly |
boolean | Read-only field. Present when true |
data.entities[].fieldsDetailed.<field>.required |
boolean | Field is required on creation. Present when true |
data.entities[].fieldsDetailed.<field>.createOnly |
boolean | Field is set only on creation and not accepted on update. Present when true |
data.entities[].fieldsDetailed.<field>.nullable |
boolean | The field can come back as null. Present when true |
data.entities[].fieldsDetailed.<field>.importable |
boolean | The field can be set only during import. Present when true |
data.entities[].fieldsDetailed.<field>.properties |
object | Map of nested object fields. Recursively uses type, readonly, nullable, properties, itemSchema |
data.entities[].fieldsDetailed.<field>.itemSchema |
object | Schema of one array element. Present for an array field with a declared element shape and recursively uses type, readonly, nullable, properties, itemSchema |
data.entities[].fieldsDetailed.<field>.enum |
array | Allowed values of an enumeration field |
data.entities[].fieldsDetailed.<field>.enum[].value |
number or string | Value the field accepts |
data.entities[].fieldsDetailed.<field>.enum[].label |
string | English name of the value |
data.entities[].fieldsDetailed.<field>.enum[].description |
string | Explanation of the value. Not present for all values |
data.entities[].responseFormats |
object | Response shape examples for list, get, create operations |
data.entities[].docs |
string | Link to the entity documentation page. Present if the page exists |
data.entities[].requiredListParams |
array | Required query parameters of the list operation. Present for entities that require them |
data.entities[].requiredFilterFields |
array | Required filter fields. Present for entities that require them |
data.paginationCanon |
object | The paging and record-counting rules shared by every entity: withTotal, windowing, defaultOrder, preferredPattern, unstableOffsetError, workaround, cursor, loopBound. The same-named fields inside data.entities[].operations.search carry a pointer here and do not repeat the text |
data.paginationCanon.appliesTo |
string | Which entities the block covers, and which rule arrives next to the entity instead of here |
data.importantNotes |
object | Nuances of working with fields common to several entities — the stageId format, deal money fields and others |
data.knownIssues |
array | Known method constraints, filtered by the key's scopes |
data.knownIssues[].method |
string | Bitrix24 method the constraint applies to |
data.knownIssues[].scope |
string | Method scope |
data.knownIssues[].issue |
string | Constraint description |
data.knownIssues[].workaround |
string | Workaround |
data.accessModeNote |
string | A reminder about read-only mode and the WRITE_BLOCKED_READONLY_KEY code |
data.changelog, data.errors, data.feedback, data.entityApi, data.entitiesIndex, data.optimization, data.filtering, data.batch and other string pointers |
string | Pointers to documentation sections — URL and a short section description |
data.appBlueprints |
string | A pointer to the documentation of ready-made application specifications. Present for any key. The description also names the refusal condition: when the section is disabled for the account, GET /v1/app/blueprints/:slug returns 403 BLUEPRINTS_DISABLED |
data.workflows, data.notifications, data.calls, data.keysAuth and other sections |
object | Sections beyond the entity API. Each contains description, docs with links to documentation and — for most sections — an endpoints array with methods and paths. Some sections carry an important array with the section's limitations instead of endpoints |
data.openLines |
object | The Open Channels section. Present for a key with the imopenlines scope. It contains description, scope, an important array and docs with links to eight section pages. There is no endpoints array in this block |
data.openLines.important |
array | Two limitations of the section: the dashboard statistics methods may return 422 METHOD_NOT_YET_AVAILABLE if the Bitrix24 update has not reached the account yet, and without the statistics-viewing right they return 403 B24_TARIFF_RESTRICTION. GET /v1/guide does not probe the account: this is a general notice, not the status of yours — call the method, a 200 response means it is live there. Channel configuration and operator actions work on any Bitrix24 account |
itemSchema has the same shape in fieldsDetailed and in GET /v1/<entity>/fields responses. The separate items key in a /fields response continues to contain the raw Bitrix24 value directory for enumeration fields and never contains an array element schema.
Response example
The example shows one data.entities element and some of the structural blocks. The full response contains contracts of all entities available to the key.
{
"success": true,
"data": {
"overview": "VibeCode API proxies Bitrix24 REST API. 48 entities across CRM, tasks, users, calendar, disk, chat, and more.",
"entities": [
{
"name": "deals",
"basePath": "/v1/deals",
"scope": "crm",
"bitrixEntity": "deal",
"operations": {
"list": { "method": "GET", "path": "/v1/deals", "params": ["limit", "offset"] },
"getById": { "method": "GET", "path": "/v1/deals/:id" },
"create": { "method": "POST", "path": "/v1/deals" }
},
"fields": {
"id": "number, readonly",
"title": "string",
"amount": "number",
"currency": "string"
},
"fieldsDetailed": {
"id": { "type": "number", "readonly": true },
"title": { "type": "string" },
"amount": { "type": "number" },
"currency": { "type": "string" }
},
"responseFormats": {
"list": "GET /v1/deals → { success: true, data: [{ id, xmlId, lastActivityTime, title, ... }], meta: { total, hasMore } }"
},
"docs": "https://vibecode.bitrix24.com/docs-content/entities/deals.md"
}
],
"importantNotes": {
"stageIdFormat": {
"description": "Deal stageId values use Bitrix24 category prefix format: C{categoryId}:{STAGE_CODE}."
}
},
"knownIssues": [
{
"method": "crm.timeline.comment.list",
"scope": "crm",
"issue": "Ignores >=CREATED filter (date filtering does not work)",
"workaround": "Fetch all comments and filter by date on client side"
}
],
"accessModeNote": "See /v1/me for current accessMode. Write methods return 403 WRITE_BLOCKED_READONLY_KEY when key is READONLY.",
"changelog": "https://vibecode.bitrix24.com/docs-content/changelog.md — API changelog: new features (NEW), fixes (FIX), breaking changes (BC), newest first."
}
}
Error response example
401 — no API key passed:
{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "API key required. Pass via X-Api-Key header."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 401 | MISSING_API_KEY |
The X-Api-Key header is missing |
| 401 | INVALID_API_KEY |
The key is not found |
| 401 | KEY_INACTIVE |
The key is revoked |
| 401 | KEY_EXPIRED |
The key has expired |
| 403 | IP_NOT_ALLOWED |
Request from an address outside the allowed IP list |
Full list of common API errors — Errors.
Known specifics
No session token needed. The vibe_app_ authorization key reads the data.entities[].fieldsDetailed contract with a single X-Api-Key header, without Authorization: Bearer. This distinguishes the endpoint from GET /v1/<entity>/fields, which needs a user context. See Passing the key.
What data.entities contains depends on the key. A key sees only the entities within its scopes. An authorization key additionally gets business process entities available to the application. A management key gets a reference across all scopes and an extra data.managementKeyNote block.
The response is returned in full. The endpoint accepts no query parameters: you cannot request a single entity or a single section of the reference, and an unknown query parameter is ignored without changing the response. To avoid reading the whole response on every run, rely on ETag and conditional requests.
Conditional requests and cache. The response carries an ETag header. A repeat request with If-None-Match and the same value returns 304 Not Modified without a body. The response is cached server-side for about 5 minutes, the response header is Cache-Control: private, max-age=300.
fieldsDetailed is a static contract. It does not contain field display names or Bitrix24 account custom fields UF_CRM_*. For display names and custom fields, use GET /v1/<entity>/fields with a user context.