validate_ics_payload — Validate & Auto-Repair .ics Payload

Audits raw .ics text for RFC 5545 & iTIP defects (LF-only line breaks, >75-octet lines, missing VCALENDAR/VERSION/PRODID/UID/DTSTAMP/DTSTART, DTEND <= DTSTART, missing VTIMEZONE for TZID, METHOD:CANCEL without STATUS:CANCELLED, METHOD:REQUEST without ORGANIZER, unescaped commas/newlines) and optionally returns a deterministically repaired .ics string.

Why buy vs. DIY: Catches silent Outlook Desktop, Exchange, Google, and Apple Calendar rejection bugs and auto-repairs broken .ics payloads in <5ms for $0.001.

Pricing: $0.001 USD per .ics audit (with optional deterministic auto-repair) (x402 instant micropayment) · REST: POST https://calendar-ics.apikeg.com/v1/validate-ics-payload · MCP: https://calendar-ics.apikeg.com/mcp

Input Parameters

FieldTypeRequired / DefaultDescription & Constraints
ics string Required Raw .ics calendar string to audit against RFC 5545 and Google/Outlook/Apple rules. (minLength: 1, maxLength: 200000)
repair boolean Default: false Set true to deterministically auto-repair CRLF endings, 75-octet UTF-8 folding, missing UID/DTSTAMP/VTIMEZONE, and unescaped text delimiters.

REST Example (curl)

curl -X POST "https://calendar-ics.apikeg.com/v1/validate-ics-payload" \
  -H "Content-Type: application/json" \
  -d '{
  "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nDTSTART;TZID=America/New_York:20260715T100000\nSUMMARY:Team Sync, Q3\nEND:VEVENT\nEND:VCALENDAR",
  "repair": true
}'

MCP tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "validate_ics_payload",
    "arguments": {
      "ics": "BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nDTSTART;TZID=America/New_York:20260715T100000\nSUMMARY:Team Sync, Q3\nEND:VEVENT\nEND:VCALENDAR",
      "repair": true
    }
  }
}