Skip to content

Self-host

Run your own gateway.

The MOSA app can use any server that speaks the gateway API, not only Talivio's. Run one for your team and add it in the app with a QR code.

How it fits together

Four steps from server to phone.

01

Implement the API

Your server answers the same REST endpoints and WebSocket frames as gateway.talivio.com. The full contract is in the API reference.

02

Serve it over HTTPS

Put it behind HTTPS with a valid certificate. Devices send their keys and tokens to it.

03

Make a QR code

Encode mosa://gateway/add?url= followed by your gateway's address.

04

Add it in the app

Settings → Gateways → Add Gateway, then scan the code.

The API

What the app calls.

GET/api/v1/gateway/statusHealth check. The app calls it first.
POST/api/v1/auth/registerRegisters a device's public key and returns its credentials.
POST/api/v1/messages/sendAccepts a sealed message for delivery.
GET/api/v1/messages/receive/{userId}Hands out sealed messages waiting for a device.
WS/wsReal-time delivery while the app is connected.
POST/api/v1/files/send · /files/chunkFiles, in one piece or in chunks.
Full API reference

What your server sees

Messages between MOSA users stay sealed end to end, so your server sees what ours sees: device and recipient IDs, sizes and times, plus IP addresses and user agents in its server logs. Never the content.

Our server software

The code behind gateway.talivio.com is not public. If your team needs a gateway and would rather not write one, write to us.