FLOMIS·MA

RS5

Primitives, not platforms.

Settlement, relay, and multi-tenant management as direct API calls. Usage-based. OpenAPI 3.1. TypeScript types on npm.

Create relay room

curl
1# Create an ephemeral relay room
2curl -X POST https://api.flomisma.com/v1/relay/rooms \
3 -H "Authorization: Bearer fmr_your_key" \
4 -H "Content-Type: application/json" \
5 -d '{"tier": "startup"}'
6
7# Response
8{
9 "roomId": "room_abc123",
10 "joinToken": "jt_xyz...",
11 "expiresAt": "2026-06-01T00:00:00Z"
12}

Create ledger entry

curl
1# Record a settlement event
2curl -X POST https://api.flomisma.com/v1/ledger/entries \
3 -H "Authorization: Bearer fmr_your_key" \
4 -H "Content-Type: application/json" \
5 -d '{
6 "type": "SETTLEMENT",
7 "amount": 5000,
8 "currency": "USD",
9 "description": "Q2 platform fee settlement"
10 }'

Get current tenant

curl
1# Retrieve current tenant metadata
2curl https://api.flomisma.com/v1/tenants/current \
3 -H "Authorization: Bearer fmr_your_key"
View OpenAPI spec (Redoc) →
npm install @flomisma/api-types
Download YAML →

TypeScript types

types.ts
1import type { paths } from '@flomisma/api-types'
2
3type CreateRoomBody =
4 paths['/relay/rooms']['post']['requestBody']['content']['application/json']
5
6type LedgerEntry =
7 paths['/ledger/entries']['post']['responses']['201']['content']['application/json']