[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-partner-connect\u002Fcompany-status":3,"docs-tabs-partner-connect\u002Fcompany-status":6},{"content":4,"lastmod":5},"\n## Company connection polling\n\n`GET \u002Fv1\u002Fconnect\u002Fcompany\u002Fstatus`\n\nLets the Product server check its own Company connection using an already issued `COMPANY` secret. The account and Product pair is determined by the secret.\n\n## Parameters\n\nThe method accepts no query parameters, including identifiers of another pair. Send the connection secret only in the `X-Api-Key` header. A client secret, cookie or Bearer credential does not work for this method. Keep the connection secret on your server; do not pass it to the browser or write it to logs.\n\n## Examples\n\nThe method authenticates with the Company connection secret — it is issued by [`POST \u002Fv1\u002Fconnect\u002Ftoken`](\u002Fdocs\u002Fpartner-connect\u002Ftoken) in the `api_key` field. A personal key and an OAuth application key do not work here.\n\n### curl\n\n```bash\ncurl --max-time 20 \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fconnect\u002Fcompany\u002Fstatus\" \\\n  -H \"X-Api-Key: YOUR_COMPANY_SECRET\"\n```\n\n### JavaScript\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fconnect\u002Fcompany\u002Fstatus', {\n  headers: { 'X-Api-Key': 'YOUR_COMPANY_SECRET' },\n  cache: 'no-store',\n  signal: AbortSignal.timeout(20000),\n})\nconst result = await response.json()\nif (!response.ok) throw new Error(result.error.code)\nconsole.log(result.data.status, result.data.revision, result.data.action)\n```\n\n## Response fields\n\n| Field | Type | Value |\n|------|-----|----------|\n| `success` | boolean | `true` for a successful poll |\n| `data` | object | Diagnostics of your own connection |\n| `data.connection_id` | string | Identifier of the connection resolved by this method |\n| `data.connection_mode` | string | Always `COMPANY` |\n| `data.portal` | object | The connected Bitrix24: only `domain` and `name` |\n| `data.portal.domain` | string | Domain of the connected Bitrix24 |\n| `data.portal.name` | string | Name of the connected Bitrix24, `Unknown` if missing |\n| `data.user` | object \\| null | Holder of the current consent: only `name` and `email`, or `null` |\n| `data.user.name` | string | Holder's name in the platform account |\n| `data.user.email` | string | Holder's email in the platform account, an empty string if missing |\n| `data.status` | string | `ACTIVE`, `NEEDS_ADMIN`, `SUSPENDED`, `DISCONNECTED`, `DELETION_PENDING` |\n| `data.generation` | integer | Generation of the connection consent |\n| `data.revision` | integer | Recorded version of the connection state |\n| `data.credential_version` | integer | Version of the current connection secret |\n| `data.bitrix_ready` | boolean | Current availability of Bitrix24 |\n| `data.reason_code` | string \\| null | Reason why access to Bitrix24 is closed, or `null` if access is open |\n| `data.webhook_cleanup` | string | `none` — no unfinished attempts, `pending` — cleanup or creation is not finished, including when there is no way to delete the previous webhook, `attention_required` — the webhook creation result is unknown and needs investigation on the platform side |\n| `data.capabilities.bitrix` | boolean | Current availability of Bitrix24 |\n| `data.capabilities.ai` | boolean | Availability of AI, considering scope, permission and connection state |\n| `data.capabilities.storage` | boolean | Availability of storage, considering scope and connection state |\n| `data.poll_after_seconds` | integer | Recommended polling interval: 30 seconds |\n| `data.action` | string \\| null | `null` if access is open. Otherwise `WAIT`, `AUTHORIZE_ADMIN`, `CONTACT_SUPPORT`, `RECONNECT`, `WAIT_FOR_DELETION` |\n\n| State or condition | `reason_code` | `action` |\n|----------------------|---------------|----------|\n| `ACTIVE`, all connection and consent checks passed | `null` | `null` |\n| `ACTIVE`, the scheduled holder check is stale or has failed | `ADMIN_CHECK_REQUIRED` | `WAIT` |\n| `ACTIVE`, the consent, the holder's permissions or the connection webhook require new administrator consent | `CONNECTION_ADMIN_REQUIRED` | `AUTHORIZE_ADMIN` |\n| `ACTIVE`, the consent has no Bitrix24 permissions | `SCOPE_MISSING` | `WAIT` |\n| `ACTIVE`, cleanup of a webhook with an unknown creation result is not finished | `CONNECTION_WEBHOOK_CLEANUP_PENDING` | `WAIT` |\n| `ACTIVE`, the working webhook is not ready yet | `CONNECT_COMPANY_NOT_READY` | `WAIT` |\n| `ACTIVE`, the connection secret is not valid | `INVALID_API_KEY` | `WAIT` |\n| `ACTIVE`, the application or the account is blocked | `CLIENT_BLOCKED` or `PORTAL_BLOCKED` | `WAIT` |\n| `NEEDS_ADMIN` | `CONNECTION_ADMIN_REQUIRED` | `AUTHORIZE_ADMIN` |\n| `SUSPENDED` | `CONNECTION_SUSPENDED` | `CONTACT_SUPPORT` |\n| `DISCONNECTED` | `CONNECTION_DISCONNECTED` | `RECONNECT` |\n| `DELETION_PENDING` | `CONNECTION_DELETION_PENDING` | `WAIT_FOR_DELETION` |\n\nWorking calls with `ADMIN_CHECK_REQUIRED` receive `503` with the `Retry-After: 30` header. Retry after 30 seconds.\n\n## Response example\n\nThe response and errors are returned with `Cache-Control: no-store`. Example response for a connection awaiting an administrator:\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"connection_id\": \"connection-id\",\n    \"connection_mode\": \"COMPANY\",\n    \"portal\": { \"domain\": \"example.bitrix24.com\", \"name\": \"Example\" },\n    \"user\": null,\n    \"status\": \"NEEDS_ADMIN\",\n    \"generation\": 0,\n    \"revision\": 1,\n    \"credential_version\": 1,\n    \"bitrix_ready\": false,\n    \"reason_code\": \"CONNECTION_ADMIN_REQUIRED\",\n    \"webhook_cleanup\": \"none\",\n    \"capabilities\": { \"bitrix\": false, \"ai\": false, \"storage\": false },\n    \"poll_after_seconds\": 30,\n    \"action\": \"AUTHORIZE_ADMIN\"\n  }\n}\n```\n\n## Error response example\n\n401 — an unknown, revoked or pre-rotation secret:\n\n```json\n{ \"success\": false, \"error\": { \"code\": \"INVALID_API_KEY\", \"message\": \"Invalid API key\" } }\n```\n\n## Errors\n\n| HTTP | Code | What to do |\n|------|-----|------------|\n| 401 | `INVALID_API_KEY` | Check the current secret. An unknown, revoked or pre-rotation secret and a request for another pair produce the same rejection |\n| 403 | `CLIENT_BLOCKED` | The Product is blocked; contact support |\n| 403 | `PORTAL_DELETED` | The account is deleted; stop polling |\n| 403 | `PORTAL_BLOCKED` | The account is blocked; contact support |\n| 403 | `PORTAL_SUSPENDED` | The account is suspended; contact support |\n| 429 | `RATE_LIMITED` | The per-IP limit is reached. Wait at least `Retry-After` seconds |\n| 429 | `CALLER_RATE_LIMITED` | The shared connection or account limit is reached. Wait at least `Retry-After` seconds |\n\nThe common codes from the table are also described in the [errors reference](\u002Fdocs\u002Ferrors), and `CLIENT_BLOCKED` is returned by this method and by Company connection AI calls.\n\n## Known specifics\n\n**`ACTIVE` alone does not open access.** Polling does not extend the holder check. Use `bitrix_ready` and the individual `capabilities` values: holder details do not change the availability of Bitrix24, AI or storage. The response contains only the details described above about the connected Bitrix24 and the consent holder. The status contains no list of people, internal identifiers, secrets or webhook URLs.\n\n**Polling frequency.** Poll no more often than `poll_after_seconds`, and increase the pause on `429`. The base per-IP limit is 120 requests per minute. The effective threshold is in `x-ratelimit-limit`. A successful poll also consumes the shared connection and account limit together with other API requests. Secret rotation does not reset this limit.\n\n**Secret states.** A secret in the `STATUS_ONLY` state allows reading diagnostics but not calling working methods. A `REVOKED` secret does not allow even polling. After rotation, use the new secret. Protection already issued and polling work independently of whether new issuance is available. Reconnection is performed by the account administrator through a separate consent.\n\n## See also\n\n- [Company connection](\u002Fdocs\u002Fpartner-connect\u002Fcompany)\n- [Exchange a code for an API key](\u002Fdocs\u002Fpartner-connect\u002Ftoken)\n- [Partner Connect](\u002Fdocs\u002Fpartner-connect)\n","2026-11-20",{},1795415494037]