Para agentes de IA: markdown desta página — /docs-content-en/source-storage/registry.md índice da documentação — /llms.txt
Os artigos da documentação estão disponíveis atualmente em inglês.
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.
Storage overview and the endpoint reference — Source code storage.
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 enabled and which permissions are required.
Disabling for a Bitrix24 account
The Bitrix24 account owner can disable source saving via the administration section (PATCH /api/admin/source-storage with the body { "sourceStorageEnabled": false }, requires an administrator session). 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 will download 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.
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page |
number | 1 |
Page number. |
limit |
number | 25 |
Page size, maximum 100. |
search |
string | — | Filter by title / server name / owner name. |
Response
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
}
Row fields
| Field | Type | Description |
|---|---|---|
kind |
string | server or legacy-app. |
ownerKey |
string | The row's owner ID: the server ID (kind: server) or the app ID (kind: legacy-app). |
title |
string | Display title (server or application). |
server |
object | null | For kind: server: id, name, displayName, mode, status (lowercase), blackholeStatus, deleted. Otherwise null. |
app |
object | null | For kind: legacy-app: id, title. Otherwise null. |
user |
object | null | Owner: id, name. May be null. |
latestVersionId |
string | Identifier of the most recent version (vN). |
latestSavedAt |
string | Save time of the latest version (ISO 8601). |
versionsCount |
number | Number of versions. |
totalSizeBytes |
number | Total size of the archives in bytes. |
reachableViaApi |
boolean | Whether the record is reachable via the V1 endpoints (see below). |
listEndpoint |
string | null | Ready-to-use path to list the owner's versions, or null. |
latestDownloadEndpoint |
string | null | Ready-to-use path to download the latest version, or null. |
reachableViaApi. The field answers one question: will the CALLING KEY be admitted through the V1 drill-in. The value isfalsefor a server whose managing key was deleted (an orphan record); for a soft-deleted legacy app; for a server when you call with an OAuth application key — such a key opens the source doors only of the server it owns itself, even when the server was created with your own personal key; and for an application row when you call with the key of a DIFFERENT application — an application key is access to one concrete application, and authorship does not widen it. Such rows havelistEndpointandlatestDownloadEndpointequal tonull. The row is still listed for visibility, but the drill-in returns404(orphan record),403 NOT_AUTHORIZED(an application key on a server it does not own) or403 SOURCE_APP_ID_MISMATCH(an application key on the row of a DIFFERENT application — that refusal arrives before the authorship check, so it carries its own code). CheckreachableViaApibefore followinglistEndpoint. A soft-deleted server staystrue: listing and cleanup of its versions keep working — Versions of a deleted server.- 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.
Error codes
| HTTP | Code | When returned |
|---|---|---|
| 403 | PORTAL_KEY_REQUIRED |
The key is not bound to a portal — a management key does not read the registry. |
The full code reference — Error codes.