For AI agents: markdown of this page — /docs-content-en/cowork/subscription-resume.md documentation index — /llms.txt

Undo a scheduled subscription cancellation

POST /v1/cowork/subscription/resume

Removes a scheduled cancellation of a Cowork subscription: the seat keeps working after the paid term ends and renews as before. The user and the Bitrix24 account come from the key binding, and no request body is needed.

The call charges nothing and does not change the tier, the paid term, the next charge date or the quota. A cancellation is removed only from a subscription in the ACTIVE state: the call does not resume a paused or already ended subscription.

Parameters

There are no path or query parameters. The body can be omitted. If a body is sent, it must be valid JSON with the Content-Type: application/json header, and its contents are not read.

Examples

The endpoint requires the vibe:cowork scope. The platform grants this scope only to Cowork keys: the desktop key and the key of an external agent connected to the subscription. It cannot be added to a personal key or an OAuth application key, and such keys get 403 INSUFFICIENT_SCOPE, so there are two examples.

curl — Cowork key

Terminal
curl -X POST https://vibecode.bitrix24.com/v1/cowork/subscription/resume \
  -H "X-Api-Key: YOUR_COWORK_KEY"

JavaScript — Cowork key

javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/cowork/subscription/resume', {
  method: 'POST',
  headers: { 'X-Api-Key': 'YOUR_COWORK_KEY' },
})

if (!res.ok) {
  const { error } = await res.json()
  if (error.code === 'NO_SCHEDULED_CANCELLATION') {
    console.log('No cancellation is scheduled, the subscription renews')
  } else {
    console.error(error.code, error.message)
  }
} else {
  const { state } = await res.json()
  console.log('Cancellation removed:', state.subscription.cancelAtPeriodEnd === false)
}

Response fields

A successful response is an object with a single state field, without a success wrapper. Inside state is the subscription state in the same shape as the GET /v1/cowork/state response, where all fields are described in full.

Field Type Description
Fieldstate Typeobject DescriptionSubscription state after the cancellation is removed
Fieldstate.portal Typeobject DescriptionThe Bitrix24 account the key is bound to: id, domain, isPartner
Fieldstate.subscription Typeobject DescriptionTier, state and dates of the subscription
Fieldstate.subscription.cancelAtPeriodEnd Typeboolean Descriptionfalse after a successful call
Fieldstate.subscription.nextChargeAt Typestring or null DescriptionDate of the next charge, ISO 8601. The call does not change it
Fieldstate.subscription.paidThroughAt Typestring DescriptionThe date the seat is paid through, ISO 8601. The call does not change it
Fieldstate.windows Typeobject DescriptionThree quota windows: fiveHour, week, month
Fieldstate.bottleneck Typestring DescriptionThe window that limits usage more than the others
Fieldstate.recommendation Typeobject DescriptionA recommendation to wait for a window reset or to move to a higher tier
Fieldstate.tiers Typearray DescriptionTier catalog with the feeVibes price and the current and isNext flags
Fieldstate.serverTime Typestring DescriptionServer time at the moment of the response, ISO 8601
Fieldstate.boostPct Typenumber DescriptionCurrent quota boost, in percent
Fieldstate.boostExpiresAt Typestring or null DescriptionWhen the boost ends, ISO 8601

Response example

A PRO subscription paid for 12 months, cancellation removed:

JSON
{
  "state": {
    "portal": {
      "id": "0d9f7744-f853-47c7-b06e-6f61f9dd1b7f",
      "domain": "example.bitrix24.com",
      "isPartner": true
    },
    "subscription": {
      "tier": "PRO",
      "state": "ACTIVE",
      "currentPeriodStart": "2026-10-27T14:58:42.814Z",
      "currentPeriodEnd": "2026-11-26T14:58:42.814Z",
      "nextChargeAt": "2027-10-22T14:58:42.814Z",
      "cancelAtPeriodEnd": false,
      "pendingTier": null,
      "termMonths": 12,
      "paidThroughAt": "2027-10-22T14:58:42.814Z"
    },
    "windows": {
      "fiveHour": { "pctUsed": 0, "resetAt": "2026-11-12T16:46:27.570Z", "exhausted": false },
      "week": { "pctUsed": 0, "resetAt": "2026-11-19T11:46:27.570Z", "exhausted": false },
      "month": { "pctUsed": 0, "resetAt": "2026-11-26T14:58:42.814Z", "exhausted": false }
    },
    "bottleneck": "fiveHour",
    "recommendation": {
      "reason": "none",
      "triggerWindow": null,
      "wait": null,
      "upgrade": { "available": true, "nextTier": "MAX" }
    },
    "tiers": [
      { "tier": "FREE", "multiplier": null, "feeVibes": 0, "current": false, "isNext": false },
      { "tier": "PRO", "multiplier": "×1", "feeVibes": 2000, "current": true, "isNext": false },
      { "tier": "MAX", "multiplier": "×5", "feeVibes": 10000, "current": false, "isNext": true },
      { "tier": "ULTRA", "multiplier": "×20", "feeVibes": 20000, "current": false, "isNext": false }
    ],
    "serverTime": "2026-11-12T11:46:27.570Z",
    "boostPct": 0,
    "boostExpiresAt": null
  }
}

Error response example

409 — no cancellation is scheduled, including on a repeated call after a successful one:

JSON
{
  "success": false,
  "error": {
    "code": "NO_SCHEDULED_CANCELLATION",
    "message": "No active subscription with a scheduled cancellation."
  }
}

Errors

HTTP Code Description
HTTP400 CodeINVALID_JSON_BODY DescriptionA body was sent but cannot be parsed as JSON
HTTP401 CodeMISSING_API_KEY DescriptionThe X-Api-Key header is missing
HTTP401 CodeINVALID_API_KEY DescriptionThe key is not recognized: no such string exists on the platform
HTTP403 CodeINSUFFICIENT_SCOPE DescriptionThe key does not have the vibe:cowork scope
HTTP404 CodeCOWORK_NOT_ACTIVATED DescriptionNo Cowork subscription found for the user and Bitrix24 account pair
HTTP409 CodeNO_SCHEDULED_CANCELLATION DescriptionNo cancellation is scheduled: the subscription is not in the ACTIVE state, the cancellation was already removed, or the term ended and the subscription is over
HTTP415 CodeFST_ERR_CTP_INVALID_MEDIA_TYPE DescriptionA body was sent with a content type other than application/json
HTTP429 CodeRATE_LIMITED DescriptionThe key's overall request rate limit is exceeded. Wait the number of seconds given in the Retry-After header
HTTP503 CodeCOWORK_FEATURE_DISABLED DescriptionCowork is disabled at the platform level
HTTP503 Codeuser_self_deletion_pending DescriptionThe key owner has scheduled disconnection from the Bitrix24 account. The disconnection time is in the error.selfDeletionPendingAt field

For the full list of common API errors, see Errors.

Known specifics

Call the method only after explicit confirmation by a person. Removing the cancellation restores auto-renewal, so payment for the next term is charged on the nextChargeAt date. Opening a link or a screen must not call this method.

The platform, not the client, completes a cancellation at the end of the term. Until the paidThroughAt date the subscription stays in the ACTIVE state with cancelAtPeriodEnd: true, and the cancellation can be removed at any time during this term. After that date the subscription moves to CANCELLED, and the method returns 409 NO_SCHEDULED_CANCELLATION — the seat can then be restored only by buying a tier again.

You can check whether there is anything to remove without side effects. The subscription.cancelAtPeriodEnd field in GET /v1/cowork/state shows whether a cancellation is scheduled. Show the "Continue subscription" button only when it is true.

See also