You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SWAIG docs show two different auth parameter spellings in examples: /docs/swml/reference/calling/ai/swaig/functions uses web_hook_auth_pass (YAML and JSON examples); /docs/swml/reference/calling/ai/swaig/includes uses web_hook_auth_password (example and prose). Neither is formally documented as a parameter anywhere — they exist only inside examples — leaving readers to guess which spelling works, with authentication silently at stake.
/docs/swml/reference/calling/ai/swaig/defaults returns 404, while the examples on the pages above use a defaults object.
Fix
Standardize all SWAIG auth examples on credentials embedded in the URL: "web_hook_url": "https://user:pass@example.com/swaig". Note that the platform parses the userinfo and sends it as an Authorization header on the request (it does not remain on the request line). Remove the web_hook_auth_* parameter spellings from examples.
Pair this with a note that the SWML document then contains credentials and must itself be served from an authenticated endpoint (see the SWML security-note issue).
Create a real reference page for the SWAIG defaults object (fixing the 404) — it is where a shared web_hook_url belongs.
Problem
/docs/swml/reference/calling/ai/swaig/functionsusesweb_hook_auth_pass(YAML and JSON examples);/docs/swml/reference/calling/ai/swaig/includesusesweb_hook_auth_password(example and prose). Neither is formally documented as a parameter anywhere — they exist only inside examples — leaving readers to guess which spelling works, with authentication silently at stake./docs/swml/reference/calling/ai/swaig/defaultsreturns 404, while the examples on the pages above use adefaultsobject.Fix
"web_hook_url": "https://user:pass@example.com/swaig". Note that the platform parses the userinfo and sends it as anAuthorizationheader on the request (it does not remain on the request line). Remove theweb_hook_auth_*parameter spellings from examples.defaultsobject (fixing the 404) — it is where a sharedweb_hook_urlbelongs.