-
Notifications
You must be signed in to change notification settings - Fork 0
REST API
All current routes live under:
adaptive-customer-engagement/v1
This is the main public tracking endpoint.
It accepts event payloads including:
- session UUID
- visitor UUID
- event UUID
- event type
- page URL and path
- post and taxonomy context
- product or brand context
- number ID where relevant
- UTM values
- limited metadata
The endpoint respects:
- the plugin enabled setting
- Do Not Track behaviour
- admin-user ignore rules
- rate limiting
- bot detection
This returns the most appropriate phone number for the current request context.
Useful request inputs include:
pathutm_sourceutm_campaign
The response can include:
number_iddisplay_numbere164_numberlabel
These routes are intended for bot middleware such as Lambda or another controlled runtime, not for open public use.
POST /bot/site-context/answerPOST /bot/site-context/searchGET /bot/site-context/document/{postId}
They read from current published WordPress content so a bot can answer from live pages, posts, and WooCommerce products rather than relying only on pre-generated FAQ-style content.
The caller must send the saved webhook secret in the X-ACE-Webhook-Secret header.
These routes require the plugin management capability and drive the admin app.
GET /admin/dashboardGET /admin/sessionsGET /admin/sessions/{id}GET /admin/companiesGET /admin/companies/{id}GET /admin/commerceGET /admin/callsGET /admin/calls/{id}GET /admin/numbersGET /admin/numbers/{id}
POST /admin/numbersPATCH /admin/numbers/{id}DELETE /admin/numbers/{id}
GET /admin/settingsPOST /admin/settingsGET /admin/settings/exportPOST /admin/settings/importGET /admin/connect-readinessGET /admin/connect/resourcesGET /admin/connect/assistantsGET /admin/connect/lex-botsPOST /admin/connect/lex-botsPOST /admin/connect/phone-numbers/searchPOST /admin/connect/phone-numbers/claimGET /admin/reporting-segmentsPOST /admin/reporting-segmentsDELETE /admin/reporting-segments/{id}POST /admin/privacy/purgePOST /admin/enrichment/testGET /admin/sample-dataPOST /admin/sample-dataDELETE /admin/sample-data
If I am extending the plugin, I want REST additions to follow the same basic pattern:
- capability checks on admin routes
- sanitisation close to the request boundary
- simple payload shapes
- predictable naming under the same namespace
- no speculative endpoints that are not yet wired into a real feature
The chatbot-related routes are still part of an active implementation area, so I do not yet treat their exact runtime contract as frozen.