Set up your HIRALL project, configure environment variables, and make your first request.
From the dashboard, go to Project Settings → API Keys. Keys are auto‑generated when the project is created.
Add these to your .env files. Client variables should be prefixed per your framework (e.g. NEXT_PUBLIC_).
# Client (.env.local) NEXT_PUBLIC_HIRALL_URL=https://api.hirall.com NEXT_PUBLIC_HIRALL_ANON_KEY=ak_************************ # Server (.env) HIRALL_SERVICE_ROLE_KEY=sk_************************
Names we recommend:
NEXT_PUBLIC_HIRALL_URL – API base URLNEXT_PUBLIC_HIRALL_ANON_KEY – public key for browsers (RLS enforced)HIRALL_SERVICE_ROLE_KEY – secret server‑only keynpm install @hirall/client # or pnpm add @hirall/client
import { createClient } from '@hirall/client';
export const hirall = createClient(
process.env.NEXT_PUBLIC_HIRALL_URL!,
process.env.NEXT_PUBLIC_HIRALL_ANON_KEY!,
);// Example: sign in a user
const session = await hirall.auth.signIn('user@example.com', 'password123');