b24_test_connection
Verify a Bitrix24 webhook connection and retrieve the acting user and portal information to diagnose authentication and permission issues.
Instructions
Verify the webhook works and report the acting user and portal.
Calls profile (identity + portal) and reports the resolved webhook. Use
this first when diagnosing auth/permission problems.
Returns: JSON: {"ok": true, "portal": "...", "user": {"ID","NAME","LAST_NAME","ADMIN"...}} or an error envelope with the Bitrix code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_url | No | Override the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default. | |
| personal_webhook | No | Act as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |