Search workspace Knowledge from a published page
GET
/v1/data/{artifactId}/knowledge/search
const url = 'https://shareout.site/v1/data/example/knowledge/search?q=example&full=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://shareout.site/v1/data/example/knowledge/search?q=example&full=1' \ --header 'Authorization: Bearer <token>'What sdk.knowledge.search(q, { limit, full }) calls from inside a page. Only a signed-in internal member of the page’s own workspace gets results, and each passage is re-checked against what that person may see. Same result shape as the workspace search.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”artifactId
required
string
Query Parameters
Section titled “Query Parameters”q
required
string
limit
integer
full
string
1 returns each passage whole instead of a ~700-character snippet.
Responses
Section titled “Responses”{ query, ... } cited passages
q missing, or not a GET.
Not signed in.
Not an internal member of the page’s workspace, or the page is not in a workspace.
Knowledge is not enabled for this workspace.
