Quickstart
From "where do I start" to "here's a real ticket I just created." Pick your stack below for an example you can build on.
One paste and your AI reads our docs and sets cStar upย withย you.
Developer Quest
0 / 400 XPYour first call, in 60 seconds
Create a test key in your team settings under API Keys, then paste this into a terminal. Nothingย toย install.
curl https://www.cstar.help/api/v1/auth/whoami \
-H "Authorization: Bearer sk_test_your_key_here" You get your team back. Keep the teamId: the SDK needs it.
{
"success": true,
"data": {
"teamId": "4f6c2a9e-8d1b-4c3a-9e2f-7b5d1a0c3e84",
"teamName": "Acme Support",
"teamSlug": "acme",
"keyId": "0b7e5f12-3c4d-4e8a-b1f6-9d2c8a7e5b43",
"keyType": "secret",
"environment": "test",
"createdAt": "2026-10-01T16:20:00.000Z",
"subscriptionStatus": "trialing",
"paused": false,
"pausedReason": null
},
"meta": {
"requestId": "req_8f2c4b1a9e7d3c6f",
"timestamp": "2026-10-29T16:20:42.000Z"
}
} That's a real, authenticated call. Still holding the placeholder key? You get a 401 with invalid_api_key and a doc_url to the fix. Every error does that. The steps below
add the SDK, sample data and a help center.
Prerequisites
- A cStar account with a team created
- An API key from your team settings
- Node.js 22+ (for the CLI and server-side SDK)
1. Grab an API key
Open your team settings and choose API Keys to create a key. Then use it to sign in to the cStar CLI:
# Install the CLI
npm install -g @cstar.help/cli
# Sign in with your existing key
cstar login --api-key sk_test_your_key_here
cstar status The CLI saves your key locally so later commands can use it.
2. Install the SDK
npm install @cstar.help/js React or Svelte? Grab the matching package instead:
# React
npm install @cstar.help/react
# Svelte
npm install @cstar.help/svelte 3. Seed sample data
Empty workspaces are no fun to test against. cstar seed populates your team with realistic
help-center content so the next steps have something to read:
# Make sure you're logged in first (step 1 above)
cstar seed You should see output like this:
Seeding help center for team "acme"
Environment: test
Template: helpdesk
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ Categories: 5 created
โจ Articles: 12 created (11 published, 1 draft)
โจ Customers: 3 created
โจ Tickets: 5 created (with 13 messages)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ Seed complete! This creates 5 categories, 12 articles, 3 sample customers, and 5 tickets with messages. The
data goes into your test or live environment depending on
which API key you used with cstar login. Test keys (sk_test_*) create
test data, and live keys (sk_live_*) create live data.
4. Make your first request
This example runs on your server with Node.js 22+. Keep the secret key out of browser code.
import { CStarClient } from '@cstar.help/js';
const cstar = new CStarClient({
apiKey: 'sk_test_your_key_here',
teamId: 'your-team-id' // from cstar status
});
// List the articles you just seeded
const { data: articles } = await cstar.articles.list({
status: 'published'
});
console.log(`Found ${articles.length} published articles`);
// โ Found 11 published articles
// List your category names
const { data: categories } = await cstar.categories.list();
for (const cat of categories) {
console.log(cat.name);
}
// โ Getting Started
// โ Account & Billing
// โ ... node index.mjs Lost your team ID? It's in the first call's response, or run cstar status.
5. Build a help center
Got data, got a working call. Pick a framework and follow the walkthrough to wire categories, articles, search, and chat into a real UI.