JAVASCRIPT

There is no unified Qntyx package yet

This page used to document npm install @qntyx/sdk and a QntyxClient with .veil / .audit / .vault namespaces. That package was never published and that client does not exist — the examples were aspirational. Call the product APIs directly with fetch.

Calling a product API

const API_KEY = 'qntyx_veil_xxx'   // from any product dashboard → API Keys

const res = await fetch(
  'https://veil-api.qntyx.io/api/v1/credentials/generate',
  {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      credential_type: 'aws_key',
      plant_location: 'github',
      label: 'my-first-trap',
    }),
  },
)
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
console.log(await res.json())

Each product has its own host and paths — check that product's page, and note that only some use an /api/v1 prefix. Keep your API key server-side; these keys are not safe in browser code.

QuantumRand does have a real client

npm install getquantumrand

See quantumrand.dev/docs for its usage.