← Developers

Government Cloud API

Public-sector language intelligence for ministries and civic desks: program policy, service lines, disclosed citizen turns, attestation registry, residency pins, and audit export. Base URL https://api.lugemi.com. Lugemi does not claim FedRAMP authorization unless separately contracted.

Capabilities

1 · Read program

curl -sS "$LUGEMI_API_URL/v1/government/program" \
  -H "Authorization: Bearer $LUGEMI_API_KEY"

2 · Create service line

curl -sS -X POST "$LUGEMI_API_URL/v1/government/service-lines" \
  -H "Authorization: Bearer $LUGEMI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Citizen FAQ","ministry":"Interior","primaryLanguage":"sw","channel":"both"}'

Creating and updating service lines / program settings from the console uses a signed-in session. API keys can read program data, run civic turns, and record attestations.

3 · Civic turn

curl -sS -X POST "$LUGEMI_API_URL/v1/government/civic/turn" \
  -H "Authorization: Bearer $LUGEMI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"How do I renew my ID?","language":"sw"}'

4 · TypeScript SDK

import { Lugemi } from '@lugemi/sdk';

const client = new Lugemi({ apiKey: process.env.LUGEMI_API_KEY! });

const engine = await client.government.engine();
const { serviceLine } = await client.government.createServiceLine({
  name: 'Citizen FAQ',
  ministry: 'Interior',
  primaryLanguage: 'sw',
  channel: 'both',
});
const turn = await client.government.civicTurn({
  text: 'How do I renew my national ID?',
  serviceLineId: serviceLine.id as string,
  language: 'sw',
});
const pack = await client.government.auditExport();

Package: @lugemi/sdk → client.government · Mobile: @lugemi/sdk-react-native · iOS packages/sdk-ios GovernmentClient · Android packages/sdk-android GovernmentClient

5 · React Native

import { Lugemi } from '@lugemi/sdk-react-native';

const client = new Lugemi({ apiKey: process.env.EXPO_PUBLIC_LUGEMI_KEY! });
const turn = await client.government.civicTurn({
  text: 'Ninahitaji msaada kwa kitambulisho.',
  language: 'sw',
});

Related surfaces

Open consoleCall IntelligenceLanguage Integrityopenapi.json
Government Cloud API for builders · Lugemi