Quickstart

Get started with QNSP in under 10 minutes — create a tenant, obtain an API token, and make your first secure API call.

Quickstart

Get from zero to a working QNSP integration in under 10 minutes.

1. Create an account

Sign up at cloud.qnsp.cuilabs.io. Your workspace (tenant) is provisioned automatically.

2. Generate an API key

In the QNSP portal, go to Settings → API Keys → New API Key. Copy the key — it is shown once only.

Store it as an environment variable:

export QNSP_API_KEY="qnsp_live_..."
export QNSP_TENANT_ID="<your-tenant-uuid>"

3. Make your first API call

curl -sS \
  -H "Authorization: Bearer $QNSP_API_KEY" \
  -H "x-qnsp-tenant-id: $QNSP_TENANT_ID" \
  https://api.qnsp.cuilabs.io/vault/v1/secrets

A 200 OK with an empty data array confirms authentication is working.

4. Install an SDK (optional)

Pick the SDK for your language:

# Node.js / TypeScript
npm install @qnsp/vault-sdk @qnsp/auth-sdk

# CLI (for scripting and CI)
npm install -g @qnsp/cli
import { VaultClient } from "@qnsp/vault-sdk";

const vault = new VaultClient({
  apiKey: process.env.QNSP_API_KEY!,
  tenantId: process.env.QNSP_TENANT_ID!,
});

const secret = await vault.createSecret({ name: "db-password", value: "s3cr3t" });
console.log(secret.id);

Next Steps