Quickstart
Install the SDK and make your first Unispec call.
1. Get an API key
Create a project API key in the console.
Keys look like lb-sk_…. Keep it in UNISPEC_API_KEY.
2. Install the SDK
npm install @unispec-ai/sdkThe unispec CLI ships separately: npm install -g @unispec-ai/cli (unispec --help).
3. Make a call
import { createMemoryClient } from "@unispec-ai/sdk";
const memory = createMemoryClient({ apiKey: process.env.UNISPEC_API_KEY });
await memory.add("I prefer window seats and vegetarian meals.", { userId: "u_123" });
const hits = await memory.search("what are my travel preferences?", { userId: "u_123" });
console.log(hits);Or with plain HTTP:
curl https://unispec.ai/v3/memories/search/ \
-H "Authorization: Token $UNISPEC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"travel preferences","filters":{"user_id":"u_123"}}'Next steps
- Authentication — keys and scopes.
- Pick a product: Memory, Vector Database, Knowledge, Agents.