Connect other systems: the API and notices
Let a till, a booking system, a building tool or an automation service read your screens, change live values, switch what plays and send a broadcast, and be told when a screen goes offline.
There are two directions. With an API key, other software calls Remodi. With a notice address, Remodi calls your software when something happens. Both are set up by an owner under Settings, in “Connect other systems”.
Make a key
- Open Settings and find “Connect other systems”.
- Type what will use the key, for example “Till system”.
- Tick only what it needs to do: read, change live data, change what a screen plays, send broadcasts.
- Press “Make a key” and copy it at once. It is shown only one time.
- Send the key with every request as a header: Authorization: Bearer rmd_…
- Every address starts with https://remodi.app/api/v1 and answers in JSON.
- Remove a key to cut off whatever uses it, at once.
Reading
- GET /me: the account the key belongs to and what it may do.
- GET /screens: every screen with its name, whether it is online, its groups and what it is playing.
- GET /playlists and GET /designs: names and ids, for switching screens.
- GET /data: every data source with its values. GET /data/Name: one source.
- GET /broadcast: the broadcast on air, if there is one.
Changing live data
- POST /data/Name with a JSON object such as {"soup": "Tomato", "wait": 12} changes those values and keeps the rest. Screens follow within a second or two.
- PUT /data/Name replaces the whole list.
- A source that does not exist yet is made the first time you send it values.
- Sources that read from a sheet or an address cannot be written.
Switching a screen
- PATCH /screens/<id> with {"playlist": "Lunch"} or {"design": "Promo board"}. Use a name or an id.
- The screen changes within a few seconds.
Broadcasts
- POST /broadcast with {"title": "Fire drill", "message": "Leave by the front door", "minutes": 10, "style": "warning"} puts a message on every screen. Styles are info, warning and emergency. Add "group" to reach one group of screens.
- DELETE /broadcast ends it.
Notices to your system
- Under “Notices to your systems”, type the address Remodi should call and tick the events you want.
- Press “Add address” and copy the signing secret. It is shown only one time.
- Press “Send a test” to check your side receives it.
- Events: screen.offline, screen.online, broadcast.started, broadcast.ended.
- Each notice is a POST with JSON: the event’s name, the time, and details such as the screen’s name.
- The header x-remodi-signature holds “sha256=” followed by the HMAC-SHA256 of the exact body, made with your signing secret, in hex. Check it before trusting a notice.
- A screen counts as offline after the time set under “Offline alerts”, 15 minutes unless you change it.
- Answer with a 2xx status within six seconds. Notices are not sent again if your system was down.
- For a quick one-way feed without a key, each “Values you type” source also has its own push address: see “Live data: text that changes by itself”.
- Keys and addresses are for owners. Changes made with a key are limited to that key’s account.