Skip to content
Docs
Qubitara Synapse

Search and documentation endpoints

Updated Version 3SYNAPSE-66

Search what you may read#

bash
curl "https://<host>/api/v1/knowledge/search?q=rollback&limit=10" \
  -H "Authorization: Bearer <token>"

Parameter

Narrows to

q

The query (required)

project

One space, by id

author

Pages last edited by a person, by id

updatedAfter

Pages changed since an ISO date

drafts

true to include drafts

limit

Results per page

Results carry the page's id, title, path, its space, a highlighted snippet and updatedAt. Only pages the credential may read are returned — the same rule the web app applies.

POST /knowledge/search/hybrid runs the combined full-text and semantic search the command palette uses; POST /knowledge/search the full-text part alone. POST /knowledge/pages/:id/reindex re-indexes one page (Editors; useful after a bulk import).

Ask the assistant#

bash
curl -X POST https://<host>/api/v1/ai/conversations \
  -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
  -d '{ "projectId": "<optional space id for scope>" }'

curl -X POST https://<host>/api/v1/ai/conversations/<id>/messages \
  -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
  -d '{ "question": "How do I roll back the payments service?" }'

The answer carries the assistant's reply and its sources — the pages it drew from, each with title and path. GET /ai/conversations lists the caller's conversations; DELETE /ai/conversations/:id removes one; GET /ai/credits shows the AI allowance left. The assistant is a plan feature; without it the endpoints answer 402 FEATURE_NOT_IN_PLAN.

Documentation for members#

GET /docs lists the products (spaces) with published pages the caller may read; GET /docs/:projectKey the product's published tree with its landing (quickstart, changelog); GET /docs/:projectKey/page?path=<slug/path> one published page; GET /docs/:projectKey/updates the publish history; GET /docs/all?q= every published page, searchable.

Public documentation, anonymously#

The same shapes, without a credential, for an organization's public site (Qubitara's own):

text
GET /public/docs                                   which organization serves /docs
GET /public/docs/:org                              the portal: branding and products
GET /public/docs/:org/all?q=&project=&limit=       every public published page
GET /public/docs/:org/:projectKey                  one product's published tree
GET /public/docs/:org/:projectKey/page?path=       one page
GET /public/docs/:org/:projectKey/updates          the publish history (also as /updates.xml on the site)
GET /public/docs/:org/attachments/:id/url          a short-lived link to a picture or file on a public page

:org is the organization's slug. These answer only published pages in Public spaces, never drafts, comments or anything private; they are rate-limited to 120 requests a minute per client.

The Synapse Directory#

GET /public/directory?q=&category=&page=&pageSize= lists the public catalogue; GET /public/directory/categories its categories. No credential needed.

Share links#

POST /pages/:id/share-links with { "expiresInDays": 30 } (1–365, optional) creates a read-only link; GET /pages/:id/share-links lists them; DELETE /share-links/:id revokes one. A reader opens the page through the web app's /s/<token> address.