Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList ArticlesgetGet ArticlepostCreate ArticleputUpdate ArticlepostUpload Article ImagedelDelete ArticlegetGet Public ArticlegetGet Public Articles By IDsgetGet Related ArticlesgetSearch ArticlesgetSearch Knowledge BasegetInstant Search ArticlespostAdd Article ReactionpostIncrement Article Views
KnowledgeArticles

Search Knowledge Base

View as MarkdownAgent setup

Searches the project's published public and internal articles the way the support agent does, and returns the best matches first. Each match has the article id, title, type, collection, and a short snippet. Drafts are not included. matches is empty when nothing published matched, or the project has no help center.

GET
/projects/{projectId}/knowledge/search

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose help center to search.

Query Parameters

limitinteger

How many matches to return, from 1 to 10. Omit for 5.

queryrequiredstring

The customer's question, or the words to match. This is the search the support agent runs.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/string/knowledge/search?query=string"
{  "matches": [    {      "collection": "string",      "id": "string",      "snippet": "string",      "title": "string",      "type": "public"    }  ]}

Search Articles

Full search across a help center's published articles, returning complete articles ranked by relevance plus a `totalCount`. Set `highlight` to also receive the matched fragments of each title and summary, ready to render as emphasised text. This endpoint is public, so it always restricts to published articles no matter what `state` is sent.

Instant Search Articles

Type-ahead search for a help-center search box. Returns at most 5 published public articles as lightweight hits (title, slug, collection name, and a short snippet) with `totalCount` reporting how many matched overall so you can offer "see all results". Falls back to fuzzy matching when the phrase is too short or malformed for full-text search, so partial words and typos still return something. Use Search Articles for the full result page.