RaceWaivers API
A small REST API for a track's own systems and AI agents: look people up, confirm they're cleared, check them in, send invites, or collect the signature on your own kiosk. Available on the Championship plan. Create keys in Settings → API access.
Authentication
Every request carries a key as a bearer token. Keys are scoped to one track and are either read-only or read-write.
curl -H "Authorization: Bearer rw_live_…" https://www.racewaivers.app/api/v1/trackLimits: 600 requests per minute per key. Errors are JSON: { "error": { "code": "…", "message": "…" } } with 400, 401, 403, 404, 409 or 429.
Endpoints
GET/api/v1/trackreadThe track this key belongs to, its timezone, plan and signer-role settings.
GET/api/v1/statsreadSigned today, checked in today, valid on file (today in the track's timezone).
GET/api/v1/eventsreadUpcoming events with signed counts.
all=1 to include past events
GET/api/v1/waiversreadWaivers, newest first, 50 per page.
q (name, pass code, phone or email) · status=valid|expired|voided|all (default valid) · event_id · signed_after (ISO time) · limit (≤200) · cursor (signed_at of the last item) · include=photos
GET/api/v1/waivers/{code}readOne waiver by 5-character pass code (case-insensitive) or id.
include=photos for 5-minute signed URLs to selfie, ID and PDF
POST/api/v1/checkinswriteCheck a valid waiver in. 409 if expired or voided.
JSON: { "code": "K7RQ4" } or { "waiver_id": "…" }, optional "event_id"
POST/api/v1/inviteswriteSend a pre-filled signing link by SMS and/or email.
JSON: first_name, last_name, phone and/or email, role, event_id
GET/api/v1/signing/configreadEverything needed to render the current waiver on your own kiosk: template sections, roles, events open today, consent texts, settings and limits.
POST/api/v1/waiverswriteRecord a waiver signed on your own device. 201 for a new waiver, 200 when it repeats an id you already sent.
JSON: template_version_id, role, signer, initials, consents, consent_times, signature or typed_signature; optional id, event_id, group_id, fields, minors, photo, id_photo, signer_device
Is this person cleared?
The question a gate or an agent asks most. Look up by pass code; status is valid, expired or voided.
curl -H "Authorization: Bearer $KEY" https://www.racewaivers.app/api/v1/waivers/K7RQ4
{ "data": {
"code": "K7RQ4", "status": "valid", "role": "driver", "role_label": "Driver or rider",
"signed_at": "2026-10-17T14:02:11Z", "expires_at": "2027-10-17T14:02:11Z",
"event": { "id": "…", "name": "Saturday Night Sprint Series" },
"signer": { "first_name": "Jamie", "last_name": "Alvarez", "dob": "1990-04-12", "phone": "+13125550177", "email": "…" },
"minors": [{ "first_name": "Riley", "last_name": "Alvarez", "dob": "2015-06-01" }],
"checkins": [], "group_id": "…", "has_pdf": true,
"template_version": { "id": "…", "version": 2 }, "signed_via": "hosted"
} }Check someone in
curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"code":"K7RQ4"}' https://www.racewaivers.app/api/v1/checkins
{ "data": { "id": "…", "checked_in_at": "2026-10-17T15:10:00Z", "waiver_id": "…", "code": "K7RQ4", "signer": "Jamie Alvarez" } }Search and paging
GET /api/v1/waivers?q=alvarez&status=valid&limit=50
GET /api/v1/waivers?cursor=2026-10-17T14:02:11Z # next page: pass next_cursor from the previous response
GET /api/v1/waivers?event_id=…&status=all&signed_after=2026-10-01T00:00:00ZSign on your own kiosk
A track that runs its own check-in kiosk can collect the signature there, pre-filled and in its own look, while RaceWaivers stays the system of record: the template version, the signer, the signed PDF with its audit page, the pass code, expiry, reminders, webhooks and the staff desk all work exactly as they do for the hosted signing page. Four steps:
GET /api/v1/signing/config: the template sections, roles, events open today, consent texts, settings and limits. Cache it for a minute.- Render every section's title and body in order, substituting
{{track}}and{{role_clause}}, then the event terms when an event is chosen and the Validity line. Collect an initial for each section markedinitial(and foreventwhen the event has extra terms) by a deliberate tap, and record the time of each tap. - Show the
agree,esignand, with minors,guardiantexts verbatim and record when each was ticked;mediais optional but must be shown wheneversettings.media_consentis true. Capture the signature as a PNG the signer draws, or let them type their full name. POST /api/v1/waiverswith your ownid. The response carries the pass code, the waiver object and a PDF link; a retry with the sameidreturns the stored waiver withcreated: falseinstead of signing again.
curl -H "Authorization: Bearer $KEY" https://www.racewaivers.app/api/v1/signing/config
{ "data": {
"track": { "id": "…", "slug": "okc", "name": "Orlando Kart Center", "timezone": "America/New_York", "logo_url": "…", "brand": { … } },
"template": { "version_id": "…", "version": 2, "content_hash": "…",
"sections": [{ "key": "release", "title": "2. Release and covenant not to sue", "body": "I release … {{track}} …", "initial": true }, …] },
"placeholders": { "track": "Orlando Kart Center" },
"roles": { "driver": { "enabled": true, "minors": true, "label": "Driver or rider", "description": "…", "clause": "…", "validity_text": "for 365 days from signing" }, … },
"events": [{ "id": "…", "name": "Saturday Night Sprint Series", "start_date": "2026-11-14", "end_date": "2026-11-14", "event_only": false, "extra_terms": null, "validity_text": "…" }],
"settings": { "valid_days": 365, "selfie": "optional", "id_photo": "off", "ask_license": false, "media_consent": true, "require_phone": false, "require_emergency": false },
"consents": { "agree": "I have read this agreement, …", "guardian": "I am the parent or legal guardian of {{minors}} …", "media": "{{track}} may use photos and video of me{{and_kids}} …", "esign": "…" },
"limits": { "max_minors": 10, "signature_png_max_bytes": 1000000, "photo_max_bytes": 2000000, "min_signer_age": 18 }
} }curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" https://www.racewaivers.app/api/v1/waivers -d '{
"id": "6f1c…", "template_version_id": "…", "role": "driver", "event_id": null,
"signer": { "first_name": "Dana", "last_name": "Reyes", "dob": "1988-03-14", "phone": "4075550123", "email": "dana@example.com" },
"fields": { "emergency_name": "Sam Reyes", "emergency_phone": "4075550199" },
"minors": [{ "first_name": "Mia", "last_name": "Reyes", "dob": "2016-07-02" }],
"initials": { "release": { "value": "DR", "at": "2026-11-08T18:03:40Z" }, "indemnity": { … }, "risk": { … }, "medical": { … } },
"consents": { "agree": true, "esign": true, "guardian": true, "media": false },
"consent_times": { "agree": "…", "esign": "…", "guardian": "…" },
"signature": "data:image/png;base64,…", "typed_signature": null, "photo": null, "id_photo": null,
"signer_device": { "label": "OKC kiosk 3", "ip": "203.0.113.9", "user_agent": "KartDesk Kiosk/1.4 (Android 14)" }
}'
201 { "data": { "code": "K7RQ4", "status": "valid", "template_version": { "id": "…", "version": 2 }, "signed_via": "api", … },
"pdf_url": "https://www.racewaivers.app/api/pdf/<waiver id>?t=…", "emailed_to": "dana@example.com", "created": true }Validation is the hosted page's, applied on the server: each failure is a 400 bad_request with a message you can show the signer. 409 template_outdated means staff published a new waiver text: fetch the config again and show the new version before signing, never cached text. An id that already belongs to another track's waiver is a 409 conflict. A 500 is safe to retry with the same id.
What keeps the record defensible: show every section's text in order and the Validity line (“This waiver remains in effect validity_text. Waiver version version.”); take initials by a deliberate tap, using the signer's initials; show the consent texts verbatim and time each tick; capture a drawn signature or the typed full name; and when a server forwards the request, send the signer's device in signer_device so the audit page names the device that was signed on, not the server. A client that cannot take a photo the track requires must not offer native signing for that track. Treat the response as personal data.
A returning signer keeps their email. When the body carries no signer.email and the signer matches one already on file (same phone and date of birth), the stored address is kept, the signed copy goes to it and emailed_to names it. Send an email only when the signer typed a new one.
Webhooks
Add an https endpoint under Settings → Webhooks and pick events: waiver.signed, waiver.voided, checkin.created. Each delivery is a JSON POST; the waiver object is the same shape the REST API returns. Failed deliveries retry after 1, 5, 30, 120 and 720 minutes, then stop; an endpoint that fails 25 times in a row is paused until you re-enable it. A Send test event button posts a test.ping.
POST https://example.com/racewaivers
X-RaceWaivers-Event: checkin.created
X-RaceWaivers-Delivery: 7c1e… # unique per delivery; use it to ignore duplicates
X-RaceWaivers-Signature: t=1760712000,v1=5f1a…
{ "id": "…", "event": "checkin.created", "created_at": "2026-10-17T15:10:00Z", "track_id": "…",
"data": { "checkin": { "id": "…", "checked_in_at": "…", "event_id": null, "by": "staff" },
"waiver": { "code": "K7RQ4", "status": "valid", "signer": { … }, … } } }Verify with HMAC-SHA256 over `${t}.${rawBody}` using the signing secret shown when you added the endpoint, and reject timestamps older than five minutes:
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(rawBody: string, header: string, secret: string) {
const { t, v1 } = Object.fromEntries(header.split(",").map((kv) => kv.split("=")));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return expected.length === v1.length && timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}Respond with any 2xx within 10 seconds; do the work afterwards. Deliveries can arrive out of order and, rarely, twice.
Privacy
Responses carry the signer's contact details and minors' names and birth dates; treat them as personal data. Photos, IDs and PDFs are never returned by default; include=photos returns URLs that expire after five minutes. Every write is recorded in the track's audit log against the key that made it.
MCP server for AI agents
The same operations are available as tools over the Model Context Protocol at /api/mcp (Streamable HTTP, stateless), authenticated with the same bearer key. An agent such as Claude can then answer “is Jamie cleared?” or check someone in without any HTTP code of its own.
# Claude Code
claude mcp add --transport http racewaivers https://www.racewaivers.app/api/mcp --header "Authorization: Bearer rw_live_…"
# Any MCP client (Claude Desktop, OpenClaw, custom agents): JSON config
{ "mcpServers": { "racewaivers": {
"type": "http", "url": "https://www.racewaivers.app/api/mcp",
"headers": { "Authorization": "Bearer rw_live_…" } } } }get_trackreadTrack name, timezone, plan, roles and validity settings.get_statsreadSigned today, checked in today, valid on file.list_eventsreadUpcoming events with signed counts; include_past for history.search_waiversreadBy name, pass code, phone or email; status, event and paging filters.get_waiverreadOne waiver by pass code or id: the "is this person cleared?" tool.get_signing_configreadTemplate, roles, open events, consent texts and settings for rendering the waiver on your own device.check_inwriteRecord a check-in for a valid waiver.send_invitewriteSend a pre-filled signing link by SMS and/or email.
Tool failures (unknown code, expired waiver, read-only key) come back as tool results with isError so the agent can read the reason and recover. The same 600-per-minute limit applies.