b24_changes_since
Poll for records changed since a given time or stored cursor across tasks, deals, leads, contacts, or companies. Returns only outbound-request results, so no public URL or firewall rule is needed.
Instructions
List what changed since last time - the event path that works anywhere.
Uses only outbound requests, so it needs no public URL, no firewall rule and no push server: this is the fallback when neither the outgoing-webhook receiver nor the Push&Pull channel is available.
A cursor per feed is kept locally, so calling this repeatedly with no arguments walks forward through changes. The first call without 'since' starts from 24 hours ago rather than the beginning of time.
Limits worth knowing: this reports the state at poll time, not every intermediate change, and it cannot see deletions - a deleted record simply stops appearing. For per-change fidelity use the pull channel or the outgoing webhook.
Returns:
JSON: {"feed", "method", "since", "count", "items": [...],
"cursor": {"previous","current","advanced"}, "has_more": ,
"verified": }. verified false means this feed's response shape
follows the documentation but has not been confirmed against real data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "b24_changes_since"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feed | No | What to watch: 'tasks', 'deals', 'leads', 'contacts', 'companies'. | tasks |
| limit | No | Max rows per call (Bitrix pages by 50). | |
| since | No | Lower bound: '7d', '24h', an ISO timestamp, or omit to continue from the stored cursor. | |
| archive | No | Also record the rows in the local event archive, readable via b24_events_history. | |
| 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. | |
| advance_cursor | No | Store the newest timestamp so the next call returns only newer rows. | |
| entity_type_id | No | Smart-process type id (1030+). Overrides 'feed'. | |
| 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 |