[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-changelog\u002F2026-08-22":3,"docs-tabs-changelog\u002F2026-08-22":6},{"content":4,"lastmod":5},"# API changes: August 22, 2026\n\n[← Changelog](\u002Fdocs\u002Fchangelog) · [August 2026](\u002Fdocs\u002Fchangelog\u002F2026-08)\n\n### NEW-0822-1: promo code on an occupied seat: the preview returns branches and redemption executes them\n\n**Before**\n\n`POST \u002Fv1\u002Fcowork\u002Fcoupon\u002Fpreview` answered only what the code grants, and on an occupied seat\nredemption refused with \"the seat is already paid\" — with nothing the person could do about it.\n\n**After**\n\nThe preview returns a `decision` field — what this code does to the seat and what may be offered:\n`apply`, `extend` (same tier, the paid window moves), `choose` (branches to pick from, where\n\"apply now\" carries `losesDays` — the whole days of paid term that burn) or `refuse` with a refusal\ncode. The chosen branch goes to `POST \u002Fv1\u002Fcowork\u002Fcoupon\u002Fredeem` in the new optional field `action`\n(`apply` | `extend` | `force` | `resume-and-apply`); omitting it keeps the previous behaviour.\n\nThe action is re-checked at redemption time: if the seat changed meanwhile, the answer is\n`409 COUPON_ACTION_NOT_AVAILABLE` and the code is NOT spent. The correct reaction is to re-read the\npreview and offer the branches it returns now. An unknown `action` value answers `400 INVALID_ACTION`\n— such a body previously answered `400 INVALID_CODE`, pointing at the code field, which was not the problem.\n\n### BC-0822-2: the create and rotate responses now match the documented key shape\n\n> Old format supported until: not provided\n\n**Before**\n\nOn some accounts `POST \u002Fv1\u002Fkeys` and `POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate` returned the whole key\nrow with only the secret fields removed. Alongside the documented shape, the response\ncarried internal platform fields that appear neither in the key-shape reference nor in\n`GET \u002Fv1\u002Fkeys` and `GET \u002Fv1\u002Fkeys\u002F:id`: `preMigrationScopes`, `ownerActive`, `deletedAt`,\n`isOAuthApp`, `appId`, `purpose`, `scopesAuthoritative`, `linkedServerId`,\n`userAgentAutoModel`, `webhookScopesRepairedAt`, `tokenExpiresAt`.\n\n**After**\n\nBoth methods return exactly the documented key shape — the same field set as\n`GET \u002Fv1\u002Fkeys\u002F:id`, plus the one-time `rawKey`. The internal fields listed above are\ngone from the response; none of them was documented or part of the contract.\n\nIf your integration read any of them, switch the source: key state is `status`, access\nmode is `accessMode`, and the issuing channel is `issuedVia`. Documented fields, expiry\nand error codes are unchanged.\n\n### BC-0822-3: key rotation now requires the same Bitrix24 plan as creation\n\n> Old format supported until: not provided\n\n**Before**\n\nOn an account whose Bitrix24 plan does not grant access to the platform,\n`POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate` issued a new key, while `POST \u002Fv1\u002Fkeys` on the same account\nanswered with a plan-required refusal. Rotation stayed a way around that requirement.\n\n**After**\n\nBoth methods answer the same way. On an account whose plan does not grant access,\nrotation returns `403` with the same code as creation, `INT_TARIFF_REQUIRED`.\n\nOnly accounts without a qualifying plan are affected. Self-hosted accounts, accounts on\na qualifying plan and already-issued keys are unchanged: nothing is revoked or stopped,\nand rotation resumes as soon as the account is on a qualifying plan.\n\n### NEW-0822-4: a key now reports the channel it was issued through, and a refusal reports its exact cause\n\n**Before**\n\n`POST \u002Fv1\u002Fkeys` and `POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate` did not report which channel issued the\nkey on the account. On accounts where only the platform module can create an inbound\nwebhook, both methods answered with an issuance error even though issuance on the\naccount itself worked.\n\n**After**\n\nThe key shape carries an optional `issuedVia` field — the issuing channel; it arrives\nin the responses of `POST \u002Fv1\u002Fkeys`, `POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate`, `GET \u002Fv1\u002Fkeys`,\n`GET \u002Fv1\u002Fkeys\u002F:id` and `PATCH \u002Fv1\u002Fkeys\u002F:id`. A refusal body gained an optional\n`error.reason` field with the exact cause, while `error.code` on existing refusals is\nunchanged. Accounts where the platform module issues keys are now served by both\nmethods.\n\nThe create and rotate responses are now identical regardless of the issuing channel —\nsome channels used to return a narrower field set. The `message` field stays\nhuman-readable and may change: branch on `error.code`, not on its text.\n\n### FIX-0822-5: a rotation refused over scopes now reports the same code on every account\n\n**Before**\n\n`POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate` on a key left with only application-context scopes —\n`placement`, `entity`, `userfieldtype` — answered differently depending on the channel the\naccount issues keys through. Where the platform module issues the key,\n`400 PERSONAL_KEY_WEBHOOK_SCOPES_INVALID` arrived, while other accounts got a generic\n`502 BITRIX_UNAVAILABLE` after a failed issuance attempt.\n\n**After**\n\nThe scope set is checked before the account is contacted, so the refusal is the same\neverywhere — `400 PERSONAL_KEY_WEBHOOK_SCOPES_INVALID`, the code creation and update\nalready return. Nothing changes on the client side: the refusal is more precise and\narrives earlier. To let rotation through, add a data scope to the previous key via\n`PATCH \u002Fv1\u002Fkeys\u002F:id`.\n\n### FIX-0822-7: Reliable source downloads for dedicated VM deploys\n\n**Before:** a dedicated virtual machine fetched `source.url` through its own network path. Intermittent network failures broke the download, and callers received raw agent networking text.\n\n**After:** for servers enrolled in the staged rollout, the platform downloads the archive and streams it to the VM through the tunnel, with up to four attempts and backoff inside a shared five-minute budget. The compatible VM-download fallback and public [`\u002Fupload`](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fupload) receive bounded retries, a safe outbound policy, and stable messages under the same rollout; before enrollment, the existing contract is preserved. `DEPLOY_FAILED` is unchanged; in the new mode a failed `download` step adds `causeCode`, `retryable`, and `attempts`. See the [deploy documentation](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fdeploy).\n\n**Impact:** request payloads do not change. Automation can branch on the new fields instead of parsing message text; archives up to 500 MB are streamed. For public `\u002Fupload`, the long phase in the new URL mode completes under an HTTP 200 keepalive response, so determine success or failure from JSON `success` and `error.code`; pre-dispatch checks and pre-enrollment behavior retain their previous HTTP statuses.\n\n### BC-0822-8: rotating and bringing back platform-issued keys is closed\n\n> Old format supported until: not provided\n\n**Before**\n\n[POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate](\u002Fdocs\u002Fmanagement-keys) rotated any key of its owner, and\n[PATCH \u002Fv1\u002Fkeys\u002F:id](\u002Fdocs\u002Fmanagement-keys) moved any key back to `ACTIVE` and pushed its expiry\nback — including the keys the platform issues on its own separate endpoints: a Cowork desktop\nkey, an agent key and a project deploy key. In the `GET \u002Fv1\u002Fkeys` listing such a key is barely\ndistinguishable from a personal one, so a \"rotate or switch back on all my keys\" script walked over\nit along with the rest: rotation answered `201` with a fresh `rawKey`, switching back on answered\n`200` — and the key value never changed there, so the previous one started working again.\n\n**After**\n\nBoth operations on such a key answer `403`: rotation with the code `SYSTEM_KEY_ROTATE_FORBIDDEN`,\nmoving back to `ACTIVE` and extending the expiry with the code `SYSTEM_KEY_REACTIVATE_FORBIDDEN`.\nThe response text says where a key of that class is issued again. The key is left as it was in both\ncases. Both operations bypassed the checks that guard the issuance of each such key: for keys\ncarrying `vibe:cowork` — Cowork access, the account \"third-party clients\" policy and the\nsubscription state; for a project deploy key — three platform switches, the Cowork key\nrequirement and an active subscription. Rotation also handed out a value with no expiry at all: on a\nproject deploy key that removed the seven-day lifetime, the only thing that limits a leaked key.\nRevoking a key and shortening its expiry are still allowed: those stop a key rather than hand one\nout. The former behaviour is gone at once, with no transition period.\n\n**What integrators should do**\n\nExclude the keys the platform issues from bulk rotation and bulk switch-on: a Cowork desktop\nkey, an agent key and a project deploy key. The first two are recognisable in the `GET \u002Fv1\u002Fkeys`\nresponse by the `vibe:cowork` scope; a project deploy key has no separate marker in the listing, so\ntreat a `403` with these codes as the final answer for that key and do not retry. A desktop key is\nissued again by connecting the Cowork desktop app, an agent key — by re-issuing the agent key\nin the Vibecode dashboard, a project deploy key — by calling `POST \u002Fv1\u002Fcowork\u002Fdeploy-key` again.\nOther keys rotate and switch back on as before.\n\n### NEW-0822-9: POST \u002Fv1\u002Fcowork\u002Fdeploy-key is closed to external-agent keys\n\n**Before**\n\nThe endpoint checked the `vibe:cowork` scope only.\n\n**After**\n\nOn [POST \u002Fv1\u002Fcowork\u002Fdeploy-key](\u002Fdocs\u002Fcowork\u002Fdeploy-key) a key issued for a third-party agent gets\n`403 COWORK_HARNESS_KEY_FORBIDDEN`. Such a key lives inside\nsomeone else's application, while minting a project deploy key revokes the previous one and moves the\nowner's servers and applications onto the new key. Desktop and agent keys are unaffected.\n\n### NEW-0822-10: Reactivating a subscription key checks the issuance gates\n\n**Before**\n\nA subscription-billed key went back to active through an ordinary `status` field change, and its\nexpiry was cleared with `null`. Only the permanent block was checked, so a revocation by the\nBitrix24 account administrator was undone in a single request — and the secret itself never changed.\n\n**After**\n\n[PATCH \u002Fv1\u002Fkeys\u002F:id](\u002Fdocs\u002Fmanagement-keys) answers `403` with the matching gate code when the\nrequest moves a subscription key to `ACTIVE`, or pushes back or clears `expiresAt`, while Cowork\naccess, the Bitrix24 \"third-party clients\" policy or the subscription state is closed. Shortening\nthe expiry, revoking and editing the other fields work as before. Ordinary keys are unaffected.\n\n### NEW-0822-11: Rotating a subscription key checks the issuance gates\n\n**Before**\n\nRotation carried the key's scopes and purpose over verbatim, asking nothing.\n\n**After**\n\n[POST \u002Fv1\u002Fkeys\u002F:id\u002Frotate](\u002Fdocs\u002Fmanagement-keys) answers `403` with the matching gate code when\nrotating a subscription-billed key while Cowork access, the account's \"third-party clients\" policy or\nthe subscription state is closed. Ordinary keys rotate as before.\n\n### NEW-0822-12: POST \u002Fv1\u002Fkeys rejects subscription billing\n\n**Before**\n\nThe `billing` field did not exist in the request body; the unknown key was silently dropped by the schema.\n\n**After**\n\nOn [POST \u002Fv1\u002Fkeys](\u002Fdocs\u002Fmanagement-keys) the value `billing: \"subscription\"` is rejected with\n`BILLING_MODE_NOT_SUPPORTED`. Subscription-billed keys are\nissued from the Vibecode dashboard only — that is where the access, Bitrix24 account policy and\nsubscription-state checks live, and the public route has none of them. `billing: \"wallet\"` and requests without the field\nbehave exactly as before.\n\n### FIX-0822-13: The inactive-subscription refusal now points at the subscription page\n\n**Before**\n\nThe `402` refusal carrying code `cowork_subscription_inactive` advised activating the\nsubscription by calling a dashboard route. That route works only inside a\nsigned-in web session and is unavailable to a client authenticating with an API key. A\nthird-party agent client shows the `message` field verbatim, so the advice looked actionable\nwhile there was nothing to act on.\n\n**After**\n\nThe same refusal on [POST \u002Fv1\u002Fchat\u002Fcompletions](\u002Fdocs\u002Fai\u002Fchat) names the state and the place\nwhere it changes: the subscription is resumed in the Cowork section of your Vibecode\naccount, and the key stays the same. The code, the status and the other body fields are unchanged.\n",null,{},1795377040632]