How to Post to a Live Wall from Your Backend
A payment clears, an order ships, the nightly import finishes. Your server posts each one to a live wall with one HTTPS call and a post-only token.

Some of the best things to show on a wall never happen in a browser. A payment clears in a webhook. An order ships from a queue worker. The nightly import finishes at 3 a.m. Your server knows about all of it the moment it happens.
So let your server post it. One HTTPS request from your backend puts a card on a live wall, and nothing about it runs on the page.
Try it first
Open our backend events demo. It shows an example operations page for a made-up shop, with a grid wall embedded beside the day's numbers.
Click any of the buttons above it: Payment succeeded, Order shipped, New team account, Nightly import done or API back up. Our server posts that event to the wall, and a few seconds later the card lands at the top of the grid, for you and for anyone else who has the page open.

The page never talks to the wall directly. Each button asks our server to post a fixed event, and the server does it with the same call you'll write below.
What you need
- A VitalWall account and a wall. The demo uses a grid wall, so each event is a card. A list or ticker works too.
- A server that can make an HTTPS request: a webhook handler, a queue worker, a cron job.
- An API token that can only post. That's step 1.
Step 1: Make a post-only API token
Signed in, open API Tokens and click Generate New Token.
- Token Name: something you'll recognize later, like Orders server.
- Scopes: tick Write Items, then untick Read Walls. Read Walls starts ticked and one scope always has to stay ticked, so tick Write Items first.
- Expiration: optional. An expiry date is the safer choice for a token that lives on a server.
Click Generate Token, then Copy Token. We show the token only this once, so put it straight into your server's environment, for example as VITALWALL_API_TOKEN.
A token with only Write Items can post items to your walls and do nothing else. It can't read your walls, change them or make new ones. Keep it on the server: never in page code, never in your repo.
Step 2: Find your wall ID
Go to Walls and click the pencil (Edit Wall) on the wall you want to post to. The wall ID is in the address bar, in /walls/YOUR_WALL_ID/edit. It's also in the wall's embed tag, as wall="YOUR_WALL_ID".
A post-only token can't look your walls up, so this is where you get the ID. Put it in your environment too, as VITALWALL_WALL_ID.
Step 3: Post an item with curl
Before you write any code, check the token and the wall ID from your terminal:
curl -s https://vitalwall.com/mcp \ -H "Authorization: Bearer $VITALWALL_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_item","arguments":{"wall_id":"YOUR_WALL_ID","content":"Hello from my server"}}}'
https://vitalwall.com/mcp is our MCP server, the same address AI agents connect to. Your backend doesn't need an MCP client or an SDK to use it. Every call is one POST of a small JSON-RPC message that calls the post_item tool.
If it worked, the card is already on your wall, and the reply's result.content[0].text holds JSON with "posted": true, the new item_id and your wall_id.
Step 4: Post from your backend
Here's the same call as a small helper for Node 18 or newer, which has fetch built in. It throws when the post didn't go through, so you can log it:
// vitalwall.js: runs on your server, never in the browser const VITALWALL_MCP = 'https://vitalwall.com/mcp' export async function postToWall(content, { format = 'text' } = {}) { const res = await fetch(VITALWALL_MCP, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json, text/event-stream', Authorization: `Bearer ${process.env.VITALWALL_API_TOKEN}`, }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/call', params: { name: 'post_item', arguments: { wall_id: process.env.VITALWALL_WALL_ID, content, format }, }, }), }) const body = await res.json().catch(() => null) // A missing, expired or revoked token comes back as HTTP 401. if (!res.ok || !body?.result) { throw new Error(`VitalWall ${res.status}: ${body?.error?.message ?? 'request failed'}`) } // Problems with the post itself come back as 200 with isError set. const text = body.result.content[0].text if (body.result.isError) throw new Error(`VitalWall: ${text}`) return JSON.parse(text) // { posted: true, item_id, wall_id } }
Then call it wherever the event happens. In a payment webhook handler, after you've checked the event is real:
import { postToWall } from './vitalwall.js' try { await postToWall('Payment succeeded · <b>$129.00</b> · Pro plan, yearly', { format: 'html' }) } catch (err) { console.error(err) // a wall that misses one card shouldn't fail the payment }
Two habits worth keeping:
- Don't let the wall break the job. Catch the error, log it and carry on, as above. The payment, the shipment or the import matters more than its card.
- Escape anything a customer typed before you put it inside HTML, the same as you would on any page.
Make the cards look like the demo
format is text by default. Set it to html and the item can carry simple markup with inline styles. That's how the demo's cards get a small label, a big number and a line under it:
<div style="display:flex;flex-direction:column;gap:.3em"> <div style="font-size:.72em;letter-spacing:.06em;text-transform:uppercase;opacity:.7">Payment succeeded</div> <div style="font-weight:800;font-size:1.3em;color:#16a34a">$129.00</div> <div style="font-size:.8em;opacity:.7">Pro plan, yearly</div> </div>
We turn HTML away if it has scripts, iframes, <style> tags, forms, event handlers like onclick or javascript: links, and we clean what's left before it's shown. Inline style attributes are fine.
You can also send metadata with a post: up to 20 flat keys of strings, numbers or true/false, like an order ID, for your own reference.
When a post doesn't go through
| What you'll see | What it means |
|---|---|
| HTTP 401 | The token is missing, mistyped, expired or revoked. Make a new one in step 1. |
isError: "missing the scope needed for post_item" | The token doesn't have Write Items. Make one that does. |
isError: "Wall ... not found" | The wall ID is wrong, or the wall belongs to another account. |
isError: "Daily update limit reached" | Your plan's updates for today are used up. Every post counts toward them. |
isError about HTML | The content has something we don't allow, like a script or an event handler. |
Content can be up to 5,000 characters per item.
Where this fits
There are a few ways to get items onto a wall, and you can mix them on the same wall:
- From the page:
VitalWall.track()in your site's own code, for things that happen in the browser. Our office TV demo works that way. - From your backend: this post. Nothing on the page, and the token stays on the server.
- From an AI agent: the same
post_itemtool, called by Claude Code or another MCP client. Our how-to on letting your AI agents post to a live wall covers that one.
Go fire a few events on the backend events demo, then wire up your own.
Want to see your own data move? Start free on VitalWall. No credit card needed.
Related Posts

How to Let Your AI Agents Post to a Live Wall
Run a job on our AI agents demo and watch it land on a live wall. Then set up your own: a wall, a post-only API token, the VitalWall MCP server in Claude Code, and the post_item tool.

How to Build a Live Earthquake Feed From USGS
Point a VitalWall list wall at the USGS earthquake feed and every M4.5+ earthquake from the past day shows up on your site or TV, refreshed every minute.

How to Put a Live Wall on Any TV
Put a live VitalWall wall on any TV with a display link. Try our office TV demo, then build your own: a grid wall, one line of code in your CRM, and a private link on the TV.