[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-infra\u002Fservers\u002Factivity":3,"docs-tabs-infra\u002Fservers\u002Factivity":6},{"content":4,"lastmod":5},"## Server activity feed\n\n`GET \u002Fv1\u002Finfra\u002Fservers\u002F:id\u002Factivity`\n\nReturns a timeline of failures and key events for a server: undelivered Bitrix24 events, bot delivery problems, deployments, wake-ups and status changes.\n\nCall this first when an application has stopped working, a bot is silent, a Bitrix24 event did not arrive or a deployment failed: an entry names the cause as a machine-readable code, and an entry about a deployment or a command leads to its outcome. The feed does not record API call errors, events polled by a bot, or successful deliveries, so an empty feed does not prove that events were delivered.\n\nThe feed is read by the server owner with a personal key or with the key of their own OAuth application from the same Bitrix24 account, and by a development team member whose role includes server settings, with their own personal key. An OAuth application key reads the feed with the rights of its owner: the session user does not affect access, and the session token can be omitted. Keys issued for a narrow task with their own list of routes (an agent maintenance key, an application external API key, a team member key and an external collaborator key) do not read the feed and get `403` with a code of the form `…_KEY_OUT_OF_SCOPE`. For everyone else, including a Bitrix24 account administrator without a role in the team, the server responds as if it did not exist.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|----------|\n| `id` (path) | string | yes | — | Server ID. List: [`GET \u002Fv1\u002Finfra\u002Fservers`](\u002Fdocs\u002Finfra\u002Fservers\u002Flist) |\n| `cursor` (query) | string | no | — | The `nextCursor` value from the previous page, unchanged. Not passed for the first page |\n| `limit` (query) | integer | no | `50` | Entries per page, from 1 to 100. A value above 100 is capped at 100. Zero, negative, non-numeric and empty values give `400 INVALID_LIMIT` |\n| `severity` (query) | string | no | all | Severities, comma-separated: `error`, `warning`, `info` |\n| `kind` (query) | string | no | all | Entry kinds, comma-separated, for example `deploy.failed,wake.failed`. The list of kinds is in the table below |\n| `since` (query) | string | no | — | An RFC 3339 date and time with an explicit UTC offset, `Z` or `+03:00`, for example `2026-10-06T12:00:00Z`. Only entries whose last repetition is not earlier than this moment are returned |\n\nAn empty parameter value counts as passed: `?severity=` gives `400 INVALID_SEVERITY`, not all severities.\n\n**Pages.** Entries go from newest to oldest by time of first appearance. While the response contains a non-empty `nextCursor`, pass it unchanged as the `cursor` parameter in the next request. `null` means the last page.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -H \"X-Api-Key: YOUR_API_KEY\" \\\n  \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Finfra\u002Fservers\u002FSERVER_ID\u002Factivity?limit=20\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Finfra\u002Fservers\u002FSERVER_ID\u002Factivity?limit=20\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch(\n  `https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Finfra\u002Fservers\u002F${serverId}\u002Factivity?limit=20`,\n  { headers: { 'X-Api-Key': 'YOUR_API_KEY' } }\n)\nconst { data } = await res.json()\n\nfor (const e of data.events) {\n  console.log(e.firstAt, e.severity, e.kind, e.code ?? '', e.count > 1 ? `×${e.count}` : '')\n  if (e.ref?.type === 'deploy_operation') {\n    console.log(`  details: \u002Fv1\u002Finfra\u002Fservers\u002F${serverId}\u002Foperations\u002F${e.ref.id}`)\n  }\n}\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch(\n  `https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Finfra\u002Fservers\u002F${serverId}\u002Factivity?limit=20`,\n  {\n    headers: {\n      'X-Api-Key': 'YOUR_APP_KEY',\n      'Authorization': 'Bearer USER_SESSION_TOKEN',\n    },\n  }\n)\nconst { data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | Always `true` on success |\n| `data.events` | array | Feed entries, from newest to oldest |\n| `data.events[].id` | string | Entry identifier |\n| `data.events[].kind` | string | Entry kind — see the table below |\n| `data.events[].severity` | string | Severity: `error`, `warning` or `info` |\n| `data.events[].code` | string \\| null | Cause from the closed list for the kind. A value that is not in the list is returned as `other` |\n| `data.events[].meta` | object \\| null | Kind details — keys from the table below, no free text |\n| `data.events[].ref` | object \\| null | `{ type: \"deploy_operation\", id }` on an entry about a deployment or a command that has an operation: its outcome is read through [`GET \u002Fv1\u002Finfra\u002Fservers\u002F:id\u002Foperations\u002F:operationId`](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fserver-operation). On all other entries it is `null` |\n| `data.events[].firstAt` | string | First appearance, ISO 8601 |\n| `data.events[].lastAt` | string | Last repetition, ISO 8601 |\n| `data.events[].count` | number | How many times the event occurred in the entry's five-minute window |\n| `data.nextCursor` | string \\| null | Cursor of the next page. `null` on the last one |\n\nEntry kinds:\n\n| `kind` | What happened | `severity` | `code` | `meta` |\n|--------|---------------|------------|--------|--------|\n| `portal_event.delivery_paused` | Delivery of Bitrix24 events to the application is paused | `warning` | `not_connected`, `http`, `http_hard`, `error` | `retryAt` |\n| `portal_event.delivery_failed` | A Bitrix24 event was not delivered | `error` | `http_NNN` — the application's response code, `not_connected`, `no_app_url`, `park_expired`, `policy_denied` | `eventName`, `attempts` |\n| `portal_event.subscription_degraded` | The Bitrix24 event subscription was moved to degraded mode | `error` | `breaker_trips`, `max_attempts` | — |\n| `portal_event.dropped` | A Bitrix24 event arrived at an inactive subscription and was dropped | `warning` | `subscription_inactive` | `eventName`, `subscriptionStatus` |\n| `bot.delivery_deferred` | Delivery of an event to the bot was deferred | `warning` | `NO_TUNNEL`, `AGENT_NOT_CONNECTED`, `TUNNEL_SEND_FAILED`, `GATEWAY_ERROR`, `BACKLOG` | `botId`, `eventType` |\n| `bot.event_dropped` | An undelivered bot event was deleted after 72 hours | `error` | `outbox_ttl_expired` | `botId` |\n| `bot.disabled` | The bot was disabled | `error` | `AUTH_FAILURES`, `B24_UNREGISTERED`, `PORTAL_DELETED`, `USER_BLOCKED` | `botId` |\n| `bot.event_mode_changed` | The bot was switched between delivery to an address and polling for events | `warning` | `webhook_to_fetch`, `fetch_to_webhook` | `botId`, `reason` |\n| `deploy.succeeded` | The deployment completed successfully | `info` | — | `durationMs` |\n| `deploy.failed` | The deployment failed | `error` | the same code as `error.code` of the operation outcome, or `null` — explained in \"Known specifics\" | `step` |\n| `deploy.unknown` | The deployment outcome is unknown | `warning` | — | `step` |\n| `exec.failed` | The command did not run | `warning` | failure code — the same as `error.code` of the operation outcome, or `null` | — |\n| `wake.succeeded` | The server woke up through a blocking wake-up | `info` | — | `trigger` |\n| `wake.failed` | The server did not wake up | `error` | wake-up failure code | `trigger` |\n| `server.status_changed` | The server status changed | `error` on transition to `error`, `warning` on a balance freeze, `info` otherwise | — | `from`, `to`, `reason` |\n\n`meta.trigger` — who woke the server: `manual`, `api`, `deploy`, `gateway`, `auto-wake-on-preempt`, `auto-wake-on-unfreeze`, `scheduled`. `meta.from` and `meta.to` are server statuses in lowercase, as in [`GET \u002Fv1\u002Finfra\u002Fservers\u002F:id`](\u002Fdocs\u002Finfra\u002Fservers\u002Fget). `meta.reason` of a status change equals `billing_freeze` when a running server was put to sleep by a balance freeze; otherwise the field is absent.\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"events\": [\n      {\n        \"id\": \"0b6f5b0e-3c4d-4a51-9a53-3f1d2c7e8a10\",\n        \"kind\": \"deploy.failed\",\n        \"severity\": \"error\",\n        \"code\": \"DOWNLOAD_HTTP_STATUS\",\n        \"meta\": {\n          \"step\": \"download\"\n        },\n        \"ref\": {\n          \"type\": \"deploy_operation\",\n          \"id\": \"cmop1abcdefghijklmnopqrs\"\n        },\n        \"firstAt\": \"2026-10-06T12:13:32.251Z\",\n        \"lastAt\": \"2026-10-06T12:13:32.251Z\",\n        \"count\": 1\n      },\n      {\n        \"id\": \"5e2a7c41-9d8b-4f06-8e1a-6b0c4d9f2e33\",\n        \"kind\": \"server.status_changed\",\n        \"severity\": \"info\",\n        \"code\": null,\n        \"meta\": {\n          \"to\": \"provisioning\",\n          \"from\": \"sleeping\"\n        },\n        \"ref\": null,\n        \"firstAt\": \"2026-10-06T12:13:28.740Z\",\n        \"lastAt\": \"2026-10-06T12:13:28.740Z\",\n        \"count\": 1\n      },\n      {\n        \"id\": \"a3d9e2f7-6b1c-4e8a-b5d0-7c2f9e4a1b68\",\n        \"kind\": \"server.status_changed\",\n        \"severity\": \"info\",\n        \"code\": null,\n        \"meta\": {\n          \"to\": \"sleeping\",\n          \"from\": \"running\"\n        },\n        \"ref\": null,\n        \"firstAt\": \"2026-10-06T12:13:28.367Z\",\n        \"lastAt\": \"2026-10-06T12:13:28.367Z\",\n        \"count\": 1\n      },\n      {\n        \"id\": \"c71f04b2-8e5a-4d93-9f6e-2b8a0d5c3e17\",\n        \"kind\": \"server.status_changed\",\n        \"severity\": \"info\",\n        \"code\": null,\n        \"meta\": {\n          \"to\": \"running\",\n          \"from\": \"provisioning\"\n        },\n        \"ref\": null,\n        \"firstAt\": \"2026-10-06T12:13:08.096Z\",\n        \"lastAt\": \"2026-10-06T12:13:29.035Z\",\n        \"count\": 2\n      }\n    ],\n    \"nextCursor\": null\n  }\n}\n```\n\n## Error response example\n\n404 — the server does not exist, is unavailable to this key, or the feed is not enabled for the server owner:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"SERVER_NOT_FOUND\",\n    \"message\": \"Server not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `INVALID_LIMIT` | `limit` is zero, negative, non-numeric or empty |\n| 400 | `INVALID_CURSOR` | `cursor` was not obtained from `nextCursor` or was altered |\n| 400 | `INVALID_SEVERITY` | `severity` contains a value other than `error`, `warning`, `info`, or the parameter is empty |\n| 400 | `INVALID_KIND` | `kind` contains a kind that is not in the kinds table, or the parameter is empty |\n| 400 | `INVALID_SINCE` | `since` is not an RFC 3339 date and time or has no UTC offset |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 401 | `INVALID_API_KEY` | The key is not recognized |\n| 401 | `INVALID_SESSION` | An OAuth application key was passed with a session token that is not recognized or has expired |\n| 403 | `SESSION_APP_MISMATCH` | The session token was issued to a different application or for a different portal than the OAuth application key in `X-Api-Key` |\n| 403 | `AGENT_MAINTENANCE_KEY_OUT_OF_SCOPE` | The request was made with an agent maintenance key: it has its own list of routes |\n| 403 | `APP_API_KEY_OUT_OF_SCOPE` | The request was made with an application external API key: it has its own list of routes |\n| 403 | `EXTERNAL_COLLABORATOR_KEY_OUT_OF_SCOPE` | The request was made with an external collaborator key: it has its own list of routes |\n| 403 | `PORTAL_COLLABORATOR_KEY_OUT_OF_SCOPE` | The request was made with a team member key. A team member reads the feed with their personal key |\n| 403 | `SERVER_ROLE_FORBIDDEN` | You are on the server's development team, but the role does not include server settings |\n| 404 | `SERVER_NOT_FOUND` | The server does not exist, was deleted, is unavailable to this key, or the feed is not enabled for the server owner. The cases are intentionally indistinguishable |\n| 429 | `RATE_LIMITED` | The limit of 60 requests per minute per key was exceeded. The exact value is in the `x-ratelimit-limit` header |\n\nThe full list of common API errors is in [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n- **A repeat does not create a new entry.** Identical server events within one five-minute window are merged into one entry: `count` grows and `lastAt` moves. Windows are aligned to five-minute UTC boundaries: 12:10–12:15, 12:15–12:20 and so on. The entry does not move to the top of the feed; the order is kept by `firstAt`, so paging through `nextCursor` has no gaps or repeats, even if the server keeps failing while you read the feed. The exception is a status change inside a long operation, see below.\n- **`firstAt` is the moment of writing to the feed, not of the event itself.** An entry appears a few seconds after the event: the deployment in the response example finished at 12:13:28, and its entry is dated 12:13:32.\n- **A wake-up is visible through status changes.** A sleeping standalone virtual machine wakes through the chain `sleeping` → `provisioning` → `running`, while a Galaxy application goes straight from `sleeping` to `running`. A `wake.succeeded` entry appears only after a blocking wake-up that waited for the server to come up. A non-blocking wake-up leaves only status changes in the feed.\n- **The code in a deployment entry is not the top-level code of the deployment response.** The response of [`POST \u002Fdeploy`](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fdeploy) carries `error.code: \"DEPLOY_FAILED\"` when a step fails, and the step cause in `error.causeCode`. A `deploy.failed` entry carries the same code as `error.code` of the operation outcome: the step cause if it is known, for example `DOWNLOAD_HTTP_STATUS` when a download fails, `DEPLOY_STEP_FAILED` if the step failed without a named cause, and `DEPLOY_FAILED` on a failure of the platform itself.\n- **The deployment error text is not stored in the feed**, only the code. The message and the step are read by `ref.id` through [`GET \u002Fv1\u002Finfra\u002Fservers\u002F:id\u002Foperations\u002F:operationId`](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fserver-operation), while the platform retains the outcome (7 days).\n- **History depth.** Entries are kept for 30 days. Status changes are recorded for every server. Other entries are recorded from the moment the feed was enabled for the server owner, so for a while after that the history can be shorter than 30 days.\n- **A status change can appear below an already read page** if the status changed inside a long platform operation: the entry carries the start time of that operation. The next read of the feed from the first page will show it.\n- **The feed belongs to the server.** After a server is transferred to another owner, the new owner sees the entries made before the transfer, and the previous one gets `404`.\n\n## See also\n\n- [Operation outcome from the server feed](\u002Fdocs\u002Finfra\u002Fdeploy\u002Fserver-operation)\n- [Get a server](\u002Fdocs\u002Finfra\u002Fservers\u002Fget)\n- [Recent server operations](\u002Fdocs\u002Finfra\u002Fdeploy\u002Foperations)\n- [Service logs](\u002Fdocs\u002Finfra\u002Fdeploy\u002Flogs)\n- [Bitrix24 event subscriptions](\u002Fdocs\u002Finfra\u002Fevent-subscriptions)\n- [MCP](\u002Fdocs\u002Fmcp)\n","2026-10-23",{},1795415468193]