Paper tickets are a surprisingly good piece of technology. They're cheap, they need no battery, and whoever holds the stub can collect the car.

Replacing them with a text message sounds simple: send the guest a link, let them tap it when they want their car. But that link now does the job of the paper stub, and it has to be just as reliable and much harder to fake.

This post walks through how to build that flow for a ticketless check-in system, using valet parking as the example. The same pattern works for coat checks, luggage storage, repair drop-offs or anything else where someone hands something over and comes back for it later.

Disclosure: I work with the team behind ValeKit, a ticketless valet platform. I use it as a reference point in a couple of places.

The flow at a glance

Attendant checks car in │ ▼ Ticket created ──► Token generated ──► SMS sent with link │ ▼ Guest opens link (no app, no login) │ ▼ Sees status ──► Taps "Request my car" │ ▼ Runner notified ──► Status updates live │ ▼ Car ready ──► Ticket closed, link expires 

There are four parts to get right:

  1. The token inside the link
  2. The SMS itself
  3. The guest status page
  4. The request and live update loop

1. The token is the ticket

With paper, whoever holds the stub can collect the car. With SMS, whoever holds the link can request it. So the token in that link has to be:

  • Unguessable. Never use the ticket ID or a counter. /t/1042 invites someone to try /t/1043.
  • Short enough for a text message. Long URLs look like spam and can be split across messages.
  • Tied to one ticket only.
  • Time-limited.

A random token from a secure source covers the first three:

import { randomBytes } from "node:crypto"; // 16 random bytes ≈ 128 bits of entropy, URL-safe, about 22 characters export function createGuestToken() { return randomBytes(16).toString("base64url"); } 

Store a hash of the token, not the token itself. If the database leaks, the links still can't be rebuilt:

import { createHash } from "node:crypto"; export const hashToken = (token) => createHash("sha256").update(token).digest("hex"); 

A minimal table might look like this:

CREATE TABLE guest_links ( id UUID PRIMARY KEY, ticket_id UUID NOT NULL REFERENCES tickets(id), token_hash CHAR(64) NOT NULL UNIQUE, expires_at TIMESTAMPTZ NOT NULL, revoked_at TIMESTAMPTZ ); 

How long should a link live?

Long enough to cover the longest normal stay, short enough that an old text can't be reused. A dinner might last three hours, but a hotel stay can last a week. ValeKit, for example, expires its tracking links seven days after check-in.

Also revoke the link as soon as the ticket closes. The car is gone, so the link should be too.

2. The SMS: short, clear, expected

The message should be boring and easy to trust:

Your car is checked in at Harbor Grill. Track and request it here: https://vk.example/t/Xq9f2LmP0aR7tB3kWzQ1nA 

A few rules that save trouble later:

  • Use your own short domain. Public link shorteners are often blocked by carriers and look like phishing.
  • Name the venue so the guest knows who sent it.
  • One link, nothing else. No marketing in the same message.
  • Ask for consent at check-in. Taking the guest's number to send a service message about their car is different from adding them to a marketing list. Keep the two separate, and check the rules for SMS consent in each country you operate in.

Send the SMS from a background job, not inside the check-in request. If the SMS provider is slow, the attendant shouldn't be left staring at a spinner:

// inside the check-in handler const ticket = await db.tickets.create({ plate, locationId, phone }); const token = createGuestToken(); await db.guestLinks.create({ ticketId: ticket.id, tokenHash: hashToken(token), expiresAt: addDays(new Date(), 7), }); await queue.add("send-guest-sms", { ticketId: ticket.id, token }); return ticket; // attendant moves on to the next car straight away 

The token is only ever in memory and in the queued job. It never sits in the database in plain form.

3. The guest status page

The link opens a small mobile web page. No app, no account, no password.

Looking up the ticket from the token:

export async function findTicketByToken(token) { const link = await db.guestLinks.findOne({ tokenHash: hashToken(token), revokedAt: null, }); if (!link || link.expiresAt < new Date()) return null; return db.tickets.findById(link.ticketId); } 

Return the same "link not valid" page for a missing, expired or revoked token. Different messages tell an attacker which tokens used to exist.

Show plain words, not internal states

Your system might track a ticket through states like checked_in, parked, requested, pulling and ready. Guests don't need to see any of that. Map each one to a simple message:

const GUEST_MESSAGES = { checked_in: "Your car is checked in", parked: "Your car is parked", requested: "Request received", pulling: "Your car is on its way", ready: "Your car is ready at the entrance", completed: "Thanks for visiting", }; 

Keep the page light. It will often be opened on weak signal at a restaurant table or in a hotel lobby, so aim for a page that loads fast without heavy scripts.

Also keep personal details off it. The page needs the car's status, the venue name and maybe the make and color. It doesn't need the full plate number or the guest's name.

4. Request and live updates

The "Request my car" button is the reason the whole flow exists. Two things matter here.

Make the request idempotent. Guests double-tap. Signal drops and the browser retries. Only the first request should count:

export async function requestCar(token) { const ticket = await findTicketByToken(token); if (!ticket) throw new NotFound(); // Only move forward from "parked". Repeated taps do nothing. const updated = await db.tickets.updateWhere( { id: ticket.id, state: "parked" }, { state: "requested", requestedAt: new Date() } ); if (updated) await notifyRunners(ticket); return db.tickets.findById(ticket.id); } 

The conditional update (WHERE state = 'parked') also stops a race where two requests arrive at the same moment.

Push status changes to the page. Server-Sent Events are a good fit: updates only flow one way, they work over plain HTTP, and the browser reconnects on its own:

// server app.get("/t/:token/events", async (req, res) => { const ticket = await findTicketByToken(req.params.token); if (!ticket) return res.sendStatus(404); res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-cache", Connection: "keep-alive", }); const unsubscribe = ticketEvents.subscribe(ticket.id, (state) => { res.write(`data: ${JSON.stringify({ message: GUEST_MESSAGES[state] })}\n\n`); }); req.on("close", unsubscribe); }); 
// browser const events = new EventSource(`/t/${token}/events`); events.onmessage = (e) => { document.querySelector("#status").textContent = JSON.parse(e.data).message; }; 

If the connection keeps dropping, fall back to polling every 10–15 seconds. The guest won't notice the difference.

Edge cases that will happen in week one

These come up in real valet operations almost straight away:

  • The guest's phone is dead. Staff need a fallback lookup by plate or name at the stand.
  • Two people share a car. Allow a second number on the ticket, or let the guest forward the link.
  • The guest requests too early. The car ends up blocking the curb. Some systems show an estimated wait or let the guest schedule a pickup time.
  • Wrong number typed at check-in. Let the attendant resend to a corrected number, and revoke the first link.
  • The SMS never arrives. Track delivery status from your provider and show "SMS failed" in the attendant app so staff can act.
  • A returning guest. If the same phone number checks in again, you can recognise them and prefill details. ValeKit does this to speed up check-in for regulars.

Security checklist

  • Random token with at least 128 bits of entropy
  • Store only the token hash
  • Expire the link, and revoke it when the ticket closes
  • Same response for invalid, expired and revoked links
  • Rate-limit the lookup endpoint by IP
  • No full plate or guest name on the public page
  • Idempotent, state-checked request endpoint

Wrapping up

The SMS link flow is small, but it replaces something guests have trusted for decades. Get the token right, keep the message plain, make the guest page fast, and plan for the edge cases before the first busy night.

If you want to see how this looks from the venue side, there's a good write-up on how an SMS valet request system speeds up pickup, and the vehicle retrieval feature page shows what the guest actually sees. For a non-technical overview of the idea, this short guide to ticketless valet explains it from the guest's point of view, and this one covers the SMS valet request process step by step.

Have you built a "hand it over, collect it later" flow like this for something other than cars? I'd like to hear how you handled tokens and expiry. Drop a comment below.