Endpoints
9 routes, plain JSON over HTTPS
POST
/v1/query/ask
Submit a visitor question and receive a RAG-grounded answer + citation sources.
curl -X POST https://api.slatech.ai/v1/query/ask \
-H 'Content-Type: application/json' \
-H 'X-Site-Id: {SiteId GUID}' \
-d '{
"question": "Do you accept walk-in appointments?",
"topK": 10,
"scoreThreshold": 0.5
}'
POST
/v1/query/ask-stream
Same as /ask but streams the answer token-by-token via Server-Sent Events.
curl -N -X POST https://api.slatech.ai/v1/query/ask-stream \
-H 'Content-Type: application/json' \
-H 'X-Site-Id: {SiteId GUID}' \
-d '{ "question": "How do you handle no-shows?" }'
# SSE events: { event: "token", data: "..." }, { event: "done", data: { sources: [...] } }
POST
/v1/leads
Capture a visitor's contact details and intent into the tenant's CRM webhook.
curl -X POST https://api.slatech.ai/v1/leads \
-H 'Content-Type: application/json' \
-H 'X-Site-Id: {SiteId GUID}' \
-d '{
"name": "Jane Doe",
"email": "[email protected]",
"message": "Interested in dental whitening pricing"
}'
GET
/v1/landing/{site}/{lang}/{slug}
Fetch a published landing-page payload (FAQ + features + stats) for SEO renderers.
curl https://api.slatech.ai/v1/landing/beauty/en/hair-salons
GET
/v1/landing/{site}/sitemap-slugs
List every published (slug, lang, type) tuple for a vertical — feeds dynamic sitemaps.
curl https://api.slatech.ai/v1/landing/med/sitemap-slugs
GET
/v1/pricing/{site}/{lang}
Return the live pricing tiers (in tenant currency) для а vertical + language.
curl https://api.slatech.ai/v1/pricing/general/en
GET
/v1/public-stats/{siteId}
Public per-site stats — total questions, resolution rate, leads collected, active-since days.
curl https://api.slatech.ai/v1/public-stats/{SiteId GUID}
POST
/v1/query/ask-multimodal
Stub returning 501. Reserved для image-upload + question (Q4 2026 — see /en/roadmap/). SDKs probe this endpoint to detect support и fall back к /v1/query/ask.
curl -X POST https://api.slatech.ai/v1/query/ask-multimodal \
-H 'Content-Type: multipart/form-data' \
-F 'question=Is this rash an allergic reaction?' \
-F 'image=@/path/to/photo.jpg'
# Returns 501 today; expected shape lives в the response body.
POST
/v1/widget/track
Anonymous visitor analytics — page view, intent classification, dwell time.
curl -X POST https://api.slatech.ai/v1/widget/track \
-H 'Content-Type: application/json' \
-d '{ "siteId": "...", "event": "page_view", "url": "https://example.com" }'