PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.2.25
MxChat – AI Chatbot & Content Generation for WordPress v3.2.25
3.2.25 3.2.24 3.2.23 3.2.22 3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 All 156 releases
← All changes | includes/admin-api-page.php +40 -18 3.2.7 → 3.2.25 View file →
@@ -90,8 +90,9 @@
90 90 $base_url = trailingslashit(get_rest_url(null, 'mxchat/v1'));
91 91 $health_url = $base_url . 'health';
92 92 $transcripts_u = $base_url . 'transcripts';
93 93 $knowledge_url = $base_url . 'knowledge';
94 + $leads_url = $base_url . 'leads';
94 95
95 96 $plugin_url = plugin_dir_url(dirname(__FILE__));
96 97 $masked = $token_set
97 98 ? substr($stored_token, 0, 4) . str_repeat('•', 24) . substr($stored_token, -4)
@@ -350,8 +351,20 @@
350 351 <td><?php esc_html_e('Push content into the knowledge base. Body: content, source_url, optional bot_id and content_type.', 'mxchat'); ?></td>
351 352 </tr>
352 353 <tr>
353 354 <td><span class="mxch-api-method mxch-api-method-delete">DELETE</span></td>
355 + <td><code><?php echo esc_html($knowledge_url); ?></code></td>
356 + <td><span class="mxch-api-auth mxch-api-auth-bearer"><?php esc_html_e('Bearer', 'mxchat'); ?></span></td>
357 + <td><?php esc_html_e('Remove knowledge entries by source_url — one, or an array of up to 50. Removing a URL that is not stored reports deleted:false rather than failing, so a sync job can re-run safely.', 'mxchat'); ?></td>
358 + </tr>
359 + <tr>
360 + <td><span class="mxch-api-method mxch-api-method-get">GET</span></td>
361 + <td><code><?php echo esc_html($leads_url); ?></code></td>
362 + <td><span class="mxch-api-auth mxch-api-auth-bearer"><?php esc_html_e('Bearer', 'mxchat'); ?></span></td>
363 + <td><?php esc_html_e('Read lead-capture submissions — the same rows the Leads tab shows, with consent state. Filterable by since, search and status; supports page + per_page pagination (max 200).', 'mxchat'); ?></td>
364 + </tr>
365 + <tr>
366 + <td><span class="mxch-api-method mxch-api-method-delete">DELETE</span></td>
354 367 <td><code><?php echo esc_html($transcripts_u); ?></code></td>
355 368 <td><span class="mxch-api-auth mxch-api-auth-bearer"><?php esc_html_e('Bearer', 'mxchat'); ?></span></td>
356 369 <td><?php esc_html_e('Bulk-delete chat sessions by session_id, with optional cascade to translations and click-tracking. Capped at 1000 per call.', 'mxchat'); ?></td>
357 370 </tr>
@@ -401,8 +414,32 @@
401 414 </div>
402 415
403 416 <div class="mxch-card">
404 417 <div class="mxch-card-header">
418 + <h3 class="mxch-card-title"><?php esc_html_e('Remove documents deleted in your source system', 'mxchat'); ?></h3>
419 + </div>
420 + <div class="mxch-card-body">
421 + <p class="mxch-field-description"><?php esc_html_e('When a file is deleted in SharePoint, Drive or your CMS, delete it here by the same source_url you pushed it with — otherwise the bot keeps answering from it. Up to 50 per call, and a URL that is already gone comes back as deleted:false instead of an error, so an automation can re-send the same batch safely.', 'mxchat'); ?></p>
422 + <pre class="mxch-api-codeblock"><code>curl -X DELETE -H "Authorization: Bearer YOUR_TOKEN" \
423 + -H "Content-Type: application/json" \
424 + -d '{"source_url":["https://example.com/handbook.pdf","https://example.com/policy-2024.docx"]}' \
425 + "<?php echo esc_html($knowledge_url); ?>"</code></pre>
426 + </div>
427 + </div>
428 +
429 + <div class="mxch-card">
430 + <div class="mxch-card-header">
431 + <h3 class="mxch-card-title"><?php esc_html_e('Sync new leads into your CRM', 'mxchat'); ?></h3>
432 + </div>
433 + <div class="mxch-card-body">
434 + <p class="mxch-field-description"><?php esc_html_e('Poll incrementally by passing the timestamp of the last lead you imported.', 'mxchat'); ?></p>
435 + <pre class="mxch-api-codeblock"><code>curl -H "Authorization: Bearer YOUR_TOKEN" \
436 + "<?php echo esc_html($leads_url); ?>?since=2026-05-01T00:00:00Z&amp;per_page=200"</code></pre>
437 + </div>
438 + </div>
439 +
440 + <div class="mxch-card">
441 + <div class="mxch-card-header">
405 442 <h3 class="mxch-card-title"><?php esc_html_e('Bulk-delete two chat sessions', 'mxchat'); ?></h3>
406 443 </div>
407 444 <div class="mxch-card-body">
408 445 <pre class="mxch-api-codeblock"><code>curl -X DELETE -H "Authorization: Bearer YOUR_TOKEN" \
@@ -469,26 +506,11 @@
469 506 border-radius: var(--mxch-radius-sm, 4px);
470 507 font-size: 13px;
471 508 color: var(--mxch-text-primary, #1d2327);
472 509 }
473 - .mxch-status-pill {
474 - display: inline-flex;
475 - align-items: center;
476 - gap: 6px;
477 - padding: 4px 10px;
478 - border-radius: 999px;
479 - font-size: 12px;
480 - font-weight: 600;
481 - }
482 - .mxch-status-pill .mxch-status-dot {
483 - width: 8px;
484 - height: 8px;
485 - border-radius: 50%;
486 - }
487 - .mxch-status-pill-active { background: #e6f4ea; color: #1d7a3a; }
488 - .mxch-status-pill-active .mxch-status-dot { background: #1d7a3a; }
489 - .mxch-status-pill-disabled { background: #fef3e2; color: #a04a00; }
490 - .mxch-status-pill-disabled .mxch-status-dot { background: #a04a00; }
510 + /* mxch-status-pill rules moved to css/admin-sidebar.css (plan b6e4d4)
511 + — it is a documented shell component and every admin page loads
512 + that sheet, so it must not live in one page's inline block. */
491 513
492 514 .mxch-api-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
493 515 .mxch-api-form { display: inline; margin: 0; }
494 516