Getting started
Quickstart
Make your first typed request against the Viraj API in under five minutes.
Before you start
You need a Viraj workspace and an API key. Keys are scoped to an organisation and can be restricted to a set of scopes and locations.
This guide uses the TypeScript SDK, but every endpoint is a plain HTTPS JSON API. curl and any HTTP client work identically.
- A workspace on the Scale plan or above (API access is included on every paid plan).
- A secret key created in Console → Settings → API keys.
- Node.js 24+ if you are following along with the SDK.
Install the SDK
Install the SDK and export your key as an environment variable. Never commit a secret key.
bash
pnpm add @viraj/sdk
# .env.local
VIRAJ_API_KEY=vk_live_...Make your first request
The SDK validates responses against the same schema that powers the platform, so every property is typed and every error is a discriminated union.
ts
import { Viraj } from '@viraj/sdk'
const viraj = new Viraj({
apiKey: process.env.VIRAJ_API_KEY,
})
const products = await viraj.products.list({ limit: 10 })
for (const product of products.data) {
console.log(product.id, product.name, product.price)
}Or use raw HTTP
Every resource is available at https://api.viraj.com/v1 with cursor pagination and ISO-8601 timestamps.
bash
curl https://api.viraj.com/v1/products?limit=10 \
-H "Authorization: Bearer $VIRAJ_API_KEY" \
-H "Viraj-Version: 2026-03-01"Next steps
- Read authentication and scopes before shipping a server integration.
- Subscribe to order.created and inventory.adjusted webhooks.
- Run the SDK against a sandbox workspace first — keys are prefixed vk_test_.