Datasphere

View as MarkdownOpen in Claude

Manage documents and perform semantic search via the Datasphere API. Documents are stored with vector embeddings, enabling natural-language search across your knowledge base. The documents sub-resource provides full CRUD plus search and chunk-level operations.

Access via client.datasphere.documents on a RestClient instance.

1import { RestClient } from "@signalwire/sdk";
2
3const client = new RestClient({
4 project: "your-project-id",
5 token: "your-api-token",
6 host: "your-space.signalwire.com"
7});
8
9const results = await client.datasphere.documents.search({ query_string: "billing FAQ" });
10for (const doc of results.data ?? []) {
11 console.log(doc.id, doc.title);
12}

Methods