لوكلاء AI: ملف markdown لهذه الصفحة — /docs-content-en/source-storage/registry.md فهرس التوثيق — /llms.txt
مقالات التوثيق متاحة حاليًا باللغة الإنجليزية فقط.
Source registry and Bitrix24 account state
Where to see every deposited snapshot at once — the page in your Vibecode account and its API counterpart GET /v1/me/sources. Plus a programmatic check of whether source saving is enabled for your Bitrix24 account.
Checking Bitrix24 account state
GET /v1/me returns the data.capabilities.apps.sourceStorage block:
When saving is enabled:
{
"capabilities": {
"apps": {
"sourceStorage": {
"enabled": true,
"requiredBeforeDeploy": false,
"automaticOnDeploy": true,
"limits": {
"maxBlobBytes": 524288000
},
"endpoint": "POST /v1/apps/:id/sources",
"mcpToolName": "save_sources",
"contentTypes": [
"application/gzip",
"application/x-tar",
"application/zip",
"application/octet-stream"
],
"docs": "https://vibecode.bitrix24.com/docs-content-en/source-storage.md"
}
}
}
}
Alongside the limits, the block also returns pointers on how to save: endpoint, mcpToolName, the allowed contentTypes, and the URL of this documentation.
The freshnessWindowMinutes field is present in this block only while publishing verifies the snapshot's age. Its absence reads as "the age is not checked", so the fields the block carries tell you which rule applies to your Bitrix24 account.
When saving is disabled:
{
"capabilities": {
"apps": {
"sourceStorage": {
"enabled": false,
"requiredBeforeDeploy": false,
"automaticOnDeploy": false,
"disabledBy": "platform",
"readOperations": "available",
"reactivation": {
"scope": "platform",
"permission": "platform admin"
}
}
}
}
}
The two field sets are mutually exclusive: with enabled: false the block carries no pointers to saving. The disabledBy field is "platform" (the feature is not enabled at the platform level) or "portal" (the Bitrix24 account owner disabled it). The readOperations: "available" field means that listing versions and downloading remain available even when saving is disabled. The reactivation block indicates at which level (platform or Bitrix24 account) the feature is turned back on and which permissions that requires.
Disabling for a Bitrix24 account
A Bitrix24 account administrator can disable source saving in your Vibecode account: the "Settings" administration section, the "Application source autosave" block. When disabled:
POST /v1/apps/:id/sourcesreturns200 { skipped: true, reason: "DISABLED_FOR_PORTAL" }.POST /v1/apps/:id/publishdoes not check for a snapshot.GET /v1/apps/:id/sourcescontinues to return previously saved versions.GET /v1/apps/:id/sources/:versionId/downloadremains available.
The save history survives re-enabling — previously created versions remain available.
Source registry
The "App sources" page is available in your Vibecode account via the left menu (the package icon). It shows a consolidated list of all deposited snapshots — so you can hand the code over to a new developer or resume an AI session.
Who sees what:
- Bitrix24 account member (MEMBER) — only their own snapshots (the ones they uploaded).
- Bitrix24 account administrator (ADMIN) — all snapshots in the Bitrix24 account, including other members' snapshots. Can download any snapshot.
How to download:
- Open "App sources" in the menu.
- Find the row you need (server or application).
- In the row menu, choose "Download latest version" — the browser downloads the archive.
Application rows carry a "Version history" item in the row menu — it opens the application's version history page in the "Storage" section.
Note: the page works regardless of whether source deposit is enabled at the platform level — historical snapshots are available even if new saves are temporarily disabled.
Aggregated source registry
GET /v1/me/sources
The API counterpart of the "App sources" page in your Vibecode account. Returns a list of source-snapshot owners (servers and legacy apps) across everything the calling key owns. A Bitrix24 account administrator (ADMIN) key sees the whole Bitrix24 account.
Requires an API key bound to a Bitrix24 account. A management key or a key with no account binding → 403 PORTAL_KEY_REQUIRED.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
Parameterpage (query) |
Typenumber | Default1 |
DescriptionPage number. |
Parameterlimit (query) |
Typenumber | Default25 |
DescriptionPage size, maximum 100. |
Parametersearch (query) |
Typestring | Default— | DescriptionFilter by title / server name / owner name. |
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success. |
Fielddata |
Typearray | DescriptionSnapshot owners — servers and legacy apps. The row shape is in the table below. |
Fieldtotal |
Typenumber | DescriptionTotal number of rows matching the request. |
Fieldpage |
Typenumber | DescriptionNumber of the page returned. |
Fieldlimit |
Typenumber | DescriptionPage size the request was processed with. |
The shape of a data[] row:
| Field | Type | Description |
|---|---|---|
Fieldkind |
Typestring | Descriptionserver or legacy-app. |
FieldownerKey |
Typestring | DescriptionThe row's owner ID: the server ID (kind: server) or the app ID (kind: legacy-app). |
Fieldtitle |
Typestring | DescriptionDisplay title (server or application). |
Fieldserver |
Typeobject | null | DescriptionFor kind: server: id, name, displayName, mode in uppercase, status in lowercase, blackholeStatus, deleted. Otherwise null. |
Fieldapp |
Typeobject | null | DescriptionFor kind: legacy-app: id, title. Otherwise null. |
Fielduser |
Typeobject | null | DescriptionOwner: id, name. May be null. |
FieldlatestVersionId |
Typestring | DescriptionIdentifier of the most recent version (vN). |
FieldlatestSavedAt |
Typestring | DescriptionSave time of the latest version (ISO 8601). |
FieldversionsCount |
Typenumber | DescriptionNumber of versions. |
FieldtotalSizeBytes |
Typenumber | DescriptionTotal size of the archives in bytes. |
FieldreachableViaApi |
Typeboolean | DescriptionWhether the record is reachable via the V1 endpoints (see below). |
FieldlistEndpoint |
Typestring | null | DescriptionReady-to-use path to list the owner's versions, or null. |
FieldlatestDownloadEndpoint |
Typestring | null | DescriptionReady-to-use path to download the latest version, or null. |
Response example
HTTP 200:
{
"success": true,
"data": [
{
"kind": "server",
"ownerKey": "8de64f8d-...",
"title": "Prod",
"server": {
"id": "8de64f8d-...",
"name": "srv-prod",
"displayName": "Prod",
"mode": "BLACKHOLE",
"status": "sleeping",
"blackholeStatus": "DISCONNECTED",
"deleted": false
},
"app": null,
"user": { "id": "8f1a2b3c-...", "name": "Alex" },
"latestVersionId": "v4",
"latestSavedAt": "2026-05-21T10:15:30.000Z",
"versionsCount": 4,
"totalSizeBytes": 552960,
"reachableViaApi": true,
"listEndpoint": "/v1/infra/servers/8de64f8d-.../sources",
"latestDownloadEndpoint": "/v1/infra/servers/8de64f8d-.../sources/v4/download"
}
],
"total": 1,
"page": 1,
"limit": 25
}
Error response example
401 — the key was not recognized:
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP403 | CodePORTAL_KEY_REQUIRED |
DescriptionThe key is not bound to a portal — a management key cannot read the registry. |
| HTTP401 | CodeMISSING_API_KEY |
DescriptionThe X-Api-Key header was not sent. |
| HTTP401 | CodeINVALID_API_KEY |
DescriptionThe platform did not recognize the key. |
Full list of common API errors — Errors.
Known specifics
reachableViaApi. The field answers one question: will the CALLING KEY be admitted through the V1 drill-in? The value isfalsein five cases:- A server whose managing key was deleted — an orphan record. The drill-in returns
404. - A soft-deleted legacy app.
- A server, when the request is made with an OAuth application key: such a key opens only the sources of the server it owns itself, even when the server was created with your personal key. The drill-in returns
403 NOT_AUTHORIZED. - An application row, when the request is made with the key of another application: an application key opens only its own application, even when both applications have the same author. The drill-in returns
403 SOURCE_APP_ID_MISMATCH— that refusal arrives before the authorship check, so it has a code of its own. - A server created with another of your personal keys, when your key does not belong to the application bound to that server. This happens even to a Bitrix24 account administrator. The drill-in returns
404.
Such rows have
listEndpointandlatestDownloadEndpointequal tonull, but the row itself stays in the list so that you can see these sources. CheckreachableViaApibefore followinglistEndpoint.The exception to the last case is the Cowork/Code desktop key: it gets
truefor a server that one of the key owner's applications is bound to, as long as the server is not deleted. The pointers lead to the version list and the download. A deleted server staystruefor its managing key and for a Bitrix24 account administrator when the server belongs to another user: read and cleanup operations on its versions keep working — Versions of a deleted server.- A server whose managing key was deleted — an orphan record. The drill-in returns
Server status. For a Black Hole server,
status: "sleeping"is the normal "parked" state (the server wakes on demand), not a failure. Pair it withblackholeStatusto tell "parked, wakes on demand" from a real problem. The value is the fleet-poller-maintained DB status (eventually consistent, ~15 s), not the result of a live check against the provider.Contrast with
GET /v1/infra/servers. That list is scoped strictly to the calling key's servers, so a server bound to another of the owner's keys is absent there but present in this registry — withreachableViaApi: falsewhen your key does not belong to the application bound to that server.