RWRaceWaiversAPI reference

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/track

Limits: 600 requests per minute per key. Errors are JSON: { "error": { "code": "…", "message": "…" } } with 400, 401, 403, 404, 409 or 429.

Endpoints

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:00Z

Sign 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:

  1. GET /api/v1/signing/config: the template sections, roles, events open today, consent texts, settings and limits. Cache it for a minute.
  2. 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 marked initial (and for event when the event has extra terms) by a deliberate tap, and record the time of each tap.
  3. Show the agree, esign and, with minors, guardian texts verbatim and record when each was ticked; media is optional but must be shown whenever settings.media_consent is true. Capture the signature as a PNG the signer draws, or let them type their full name.
  4. POST /api/v1/waivers with your own id. The response carries the pass code, the waiver object and a PDF link; a retry with the same id returns the stored waiver with created: false instead 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_…" } } } }

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.