## 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

```bash
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`](/docs/cowork/state) response, where all fields are described in full.

| Field | Type | Description |
|------|-----|----------|
| `state` | object | Subscription state after the cancellation is removed |
| `state.portal` | object | The Bitrix24 account the key is bound to: `id`, `domain`, `isPartner` |
| `state.subscription` | object | Tier, state and dates of the subscription |
| `state.subscription.cancelAtPeriodEnd` | boolean | `false` after a successful call |
| `state.subscription.nextChargeAt` | string or null | Date of the next charge, ISO 8601. The call does not change it |
| `state.subscription.paidThroughAt` | string | The date the seat is paid through, ISO 8601. The call does not change it |
| `state.windows` | object | Three quota windows: `fiveHour`, `week`, `month` |
| `state.bottleneck` | string | The window that limits usage more than the others |
| `state.recommendation` | object | A recommendation to wait for a window reset or to move to a higher tier |
| `state.tiers` | array | Tier catalog with the `feeVibes` price and the `current` and `isNext` flags |
| `state.serverTime` | string | Server time at the moment of the response, ISO 8601 |
| `state.boostPct` | number | Current quota boost, in percent |
| `state.boostExpiresAt` | string or null | When 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 |
|------|-----|----------|
| 400 | `INVALID_JSON_BODY` | A body was sent but cannot be parsed as JSON |
| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |
| 401 | `INVALID_API_KEY` | The key is not recognized: no such string exists on the platform |
| 403 | `INSUFFICIENT_SCOPE` | The key does not have the `vibe:cowork` scope |
| 404 | `COWORK_NOT_ACTIVATED` | No Cowork subscription found for the user and Bitrix24 account pair |
| 409 | `NO_SCHEDULED_CANCELLATION` | No 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 |
| 415 | `FST_ERR_CTP_INVALID_MEDIA_TYPE` | A body was sent with a content type other than `application/json` |
| 429 | `RATE_LIMITED` | The key's overall request rate limit is exceeded. Wait the number of seconds given in the `Retry-After` header |
| 503 | `COWORK_FEATURE_DISABLED` | Cowork is disabled at the platform level |
| 503 | `user_self_deletion_pending` | The 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](/docs/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`](/docs/cowork/state) shows whether a cancellation is scheduled. Show the "Continue subscription" button only when it is `true`.

## See also

- [Cowork subscription state](/docs/cowork/state)
- [Cowork subscription summary](/docs/cowork/me)
- [Tier change preview](/docs/cowork/subscription-preview)
- [Cowork](/docs/cowork)
- [Errors](/docs/errors)
