SDKs

Auto-generated from the OpenAPI spec. All clients share the same auth model and response shape.

TypeScript / Node.js
@hqo/digital-grid-sdk
AVAILABLEDocs
Installnpm install @hqo/digital-grid-sdk
Example
import { DigitalGrid } from '@hqo/digital-grid-sdk';

const dg = new DigitalGrid({
  apiKey: process.env.DG_API_KEY,
  baseUrl: 'https://digital-grid-production.up.railway.app/api/v1',
});

const leases = await dg.leases.list({ status: 'active' });
const tenant = await dg.tenants.get('uuid-here');
Environment variables
Set DG_API_KEY to your API key from the API Keys page. Never hardcode keys in source code.