Go to console.deyta.ai and sign in. New accounts land on a guided onboarding that creates your organization automatically.
2
Generate an API key
From the sidebar, open API Keys and click Generate. Give the key a recognizable name and copy the secret — it’s only shown once.
export DEYTA_API_KEY=sk_…
Treat API keys like any other production secret. Rotate them in the console as needed and prefer server-side environments over committing them to source control.
Namespaces are Deyta Platform’s tenancy boundary. Every memory operation runs against one. Create one for this quickstart:
Console
TypeScript SDK
curl
Tab Title
Open Namespaces in the sidebar and click Create namespace. Pick any name; you can find the namespace ID in the console URL - https://console.deyta.ai/namespaces/<namespace-id>/settings/
npm install @deyta-ai/sdk
import { Deyta } from "@deyta-ai/sdk";const deyta = new Deyta({ apiKey: process.env.DEYTA_API_KEY! });const ns = await deyta.namespaces.create({ name: "Quickstart", description: "Created by the quickstart guide",});console.log(ns.id);
You’ll get back a namespace record. Note the id — you’ll use it for the next two calls.
curl https://api.deyta.ai/gateway/v1/namespaces \ -H "Authorization: Bearer $DEYTA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Quickstart","description":"Created by the quickstart guide"}'
You’ll get back a namespace record. Note the id — you’ll use it for the next two calls.
Make sure that you give permission to the namespace to the console user or API key that you want to give access to.
recall returns raw matches. If you want a generated answer with cited sources, use ask:
TypeScript SDK
curl
const answer = await deyta.memory.ask({ namespace_id: ns.id, query: "When is the standup and how often does it happen?",});console.log(answer.answer);
curl https://api.deyta.ai/gateway/v1/ask \ -H "Authorization: Bearer $DEYTA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "namespace_id": "ns_…", "query": "When is the standup and how often does it happen?" }'