Support: support@tinplate.dev · Zero-Retention Edge Security Support Trust Center DPA GitHub Issues
Developer Utilities Tier 3 All-Access

iCalendar (.ics) Validator & Sanitizer API — Fix Broken RFC 5545 Feeds

Repair broken .ics calendar feeds, normalize Windows timezones to IANA, and parse VEVENTs. Validate and repair malformed .ics calendar feeds: fix CRLF line folding, missing UID/DTSTAMP, inverted DTSTART/DTEND, invalid RRULEs, and Windows VTIMEZONE IDs.

Interactive Sandbox · No API Key Required 200 OK · Ready
POST /v1/ics-sanitizerinput
200 OK sample / live responsejson
{
  "ok": true,
  "data": {
    "valid": true,
    "sanitized_ics": "BEGIN:VCALENDAR\r\nPRODID:-//Tinplate//ICS Sanitizer//EN\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\nUID:evt-1-3b2c16f1@tinplate.dev\r\nDTSTAMP:20261114T090000Z\r\nSUMMARY:Team Sync\r\nDTSTART;TZID=Europe/Budapest:20261114T090000\r\nDTEND;TZID=Europe/Budapest:20261114T100000\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
    "event_count": 1,
    "events": [
      {
        "uid": "evt-1-3b2c16f1@tinplate.dev",
        "summary": "Team Sync",
        "dtstart": "20261114T090000",
        "dtend": "20261114T100000",
        "timezone": "Europe/Budapest",
        "rrule": null
      }
    ],
    "repairs": [
      "normalized_lf_to_crlf",
      "injected_missing_prodid",
      "mapped_windows_tzid:Central European Standard Time->Europe/Budapest",
      "swapped_inverted_dtstart_dtend",
      "injected_missing_uid",
      "injected_missing_dtstamp"
    ],
    "issues": [
      {
        "code": "inverted_dtstart_dtend_repaired",
        "severity": "warning",
        "message": "VEVENT #1 had DTEND earlier than DTSTART; values were swapped."
      }
    ]
  },
  "meta": {
    "request_id": "req_ics_01",
    "ms": 1
  }
}
OpenAPI 3.0.3 Get All-Access Key ($29/mo) No signup. No payload storage.
Quickstart Code Examples
curl -X POST "https://api.tinplate.dev/v1/ics-sanitizer" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TINPLATE_KEY" \
  -d '{"ics":"BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Team Sync\nDTSTART;TZID=Central European Standard Time:20261114T100000\nDTEND;TZID=Central European Standard Time:20261114T090000\nEND:VEVENT\nEND:VCALENDAR"}'
import { TinplateClient } from "@tinplate/sdk";

const tinplate = new TinplateClient({
  apiKey: process.env.TINPLATE_API_KEY!,
});

const { data, meta } = await tinplate.call("/v1/ics-sanitizer", {
  "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Team Sync\nDTSTART;TZID=Central European Standard Time:20261114T100000\nDTEND;TZID=Central European Standard Time:20261114T090000\nEND:VEVENT\nEND:VCALENDAR"
});
console.log(`[${meta.ms} ms]`, data);
import requests

response = requests.post(
    "https://api.tinplate.dev/v1/ics-sanitizer",
    headers={
        "Content-Type": "application/json",
        "Authorization": "Bearer YOUR_TINPLATE_KEY",
    },
    json={
  "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Team Sync\nDTSTART;TZID=Central European Standard Time:20261114T100000\nDTEND;TZID=Central European Standard Time:20261114T090000\nEND:VEVENT\nEND:VCALENDAR"
}
)
print(response.json())
const response = await fetch("https://api.tinplate.dev/v1/ics-sanitizer", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_TINPLATE_KEY",
  },
  body: JSON.stringify({
  "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Team Sync\nDTSTART;TZID=Central European Standard Time:20261114T100000\nDTEND;TZID=Central European Standard Time:20261114T090000\nEND:VEVENT\nEND:VCALENDAR"
}),
});
const result = await response.json();
console.log(result);
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tinplate_ics_sanitizer",
    "arguments": {
      "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Team Sync\nDTSTART;TZID=Central European Standard Time:20261114T100000\nDTEND;TZID=Central European Standard Time:20261114T090000\nEND:VEVENT\nEND:VCALENDAR"
    }
  }
}
OpenAPI 3.0.3 Schema Contract

Request Parameters & Response Schema Reference

Request Body Parameters (POST /v1/ics-sanitizer)

ParameterType & ConstraintsDescription
ics required string
minLen: 1, maxLen: 262144
Raw .ics (RFC 5545 iCalendar) text to validate, repair, and normalize.
normalize_windows_timezones optional boolean
default: true
Map proprietary Windows/Exchange TZIDs ('Central European Standard Time') to IANA timezones ('Europe/Budapest').
fix_inverted_dates optional boolean
default: true
Swap DTSTART and DTEND when DTEND is earlier than DTSTART.

Response data Object Fields (200 OK)

FieldTypeDescription
valid boolean Field 'valid'
sanitized_ics string Field 'sanitized_ics'
event_count integer Field 'event_count'
events object[] Field 'events'
repairs string[] Field 'repairs'
issues object[] Field 'issues'

What ICS / iCalendar Feed Sanitizer & Validator API Detects & Validates

  • Maps Microsoft Exchange / Outlook Windows timezone names ('Central European Standard Time') to standard IANA TZIDs ('Europe/Budapest')
  • Generates deterministic missing UID and DTSTAMP properties required by Google Calendar and Apple Calendar
  • Repairs inverted DTEND < DTSTART timestamps, improper line folding, and missing PRODID/VERSION headers
  • Validates RRULE recurrence syntax and outputs both sanitized RFC 5545 .ics text and structured JSON events
Honest Engineering Boundaries

Known Limitations & Test Verification

Release: v1.0.39 · Verified: 16 November 2026 · Portfolio Median: 0.318 ms in-Worker V8 compute (add 15–65 ms HTTPS RTT) · See Full Portfolio Benchmarks →

  • Validates and repairs VEVENT structure and RRULE syntax; use /v1/cron-explainer or a local calendar view for multi-year recurrence expansion.
  • Tested v1.0.4 (14 November 2026).

Direct All-Access & Marketplace Plans

Direct Polar All-Access Keys unlock all 42 APIs (49 endpoints), /v1/pipeline, and /mcp on api.tinplate.dev: Pro ($29/mo · 120 req/min · 100k/mo · 128 KB) or Team ($79/mo · 300 req/min · 500k/mo · 256 KB).

PlanMonthly PriceIncluded RequestsRate LimitMax PayloadBest For
BASIC$0.00 / mo500 / month10 req / min64 KBEvaluation & CI smoke tests
PRO$9.99 / mo15,000 / month60 req / min128 KBSolo devs & production apps
ULTRA$29.99 / mo100,000 / month300 req / min256 KBGrowing SaaS & multi-agent pipelines
MEGA$79.99 / mo500,000 / month1,000 req / min256 KBHigh-volume enterprise workloads

Frequently Asked Questions

Why do Outlook .ics invites often break in Google Calendar or custom parsers?

Outlook exports proprietary Windows timezone names (like 'W. Europe Standard Time') instead of IANA TZIDs. ICS Sanitizer maps them to standard IANA identifiers automatically.

Does it return both fixed .ics text and parsed JSON events?

Yes, you get the RFC 5545 CRLF-folded sanitized_ics string plus a clean events JSON array.

What if an event is missing a UID?

It generates a deterministic SHA-based UID from the event summary and start time so calendar clients don't reject or duplicate the event.

Zero Payload Logging

Data Handling, Privacy & Proxy Disclosure

Calendar feeds are sanitized in volatile V8 memory and never stored.

Worker Zero-Logging Guarantee: Cloudflare Workers Observability and invocation logging are disabled (observability.enabled = false, head_sampling_rate = 0, invocation_logs = false). Requests via RapidAPI or Zyla traverse marketplace proxies; use a Direct Bearer Key for zero-intermediary routing.

Related Tinplate APIs

POST /v1/cron-explainer Developer Utilities

Cron & Schedule Explainer & Validator API

Validate cron expressions, translate to plain English, and compute next N runs with DST.

POST /v1/workday-holiday/between Compliance & Business

Workday & Holiday Calculator API

Calculate business days and SLA deadlines across 30+ countries including HU swap Saturdays.

POST /v1/locale-value-parser AI Data Prep

Text-to-Structured Date, Money & Unit Parser API

Normalize messy EU/US prices, dates, percentages, and measurements into structured JSON.