Quickstart
Brume API Quickstart
Brume API protects sensitive identifiers in text, multi-turn chats, PDFs, DOCX files, and images inside sovereign Swiss infrastructure. Every anonymisation call returns an opaque AES-256-GCM vault_token so you can restore outputs for free without persisting keys on Brume servers.
Install Official Thin SDKs
# TypeScript / JavaScript (zero runtime dependencies)
npm install @brume/sdk
# Python (sync & async)
pip install brumeTypeScript Round-Trip
import { Brume } from "@brume/sdk";
const brume = new Brume({ apiKey: process.env.BRUME_API_KEY! });
const anon = await brume.anonymise({
text: "Patient Hans Keller (AVS 756.1234.5678.97) visited Dr. Sophie Meyer on 14.03.2025.",
level: "medium",
});
// Send anon.anonymised_text to any downstream AI, then restore for free:
const restored = await brume.deanonymise({
text: "Follow-up confirmed for [PERSON_1] with [DOCTOR_1].",
vaultToken: anon.vault_token!,
});