
ICS Generator API
Utilities
Free ICS calendar generator. Create event files compatible with Google Calendar, Outlook, and Apple Calendar.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
120 requests per minute
Endpoints
1 endpoint available
Overview
Build a single-event iCalendar (.ics) file from JSON. The response holds the file text in
data.icsContent (lines end in CRLF) and a suggested filename in data.filename.
Save the text to a .ics file to import it into Google Calendar, Outlook or Apple Calendar.
Dates and times
startandendtake any date string JavaScript can parse. Use ISO 8601 with an offset (e.g.2025-03-10T14:00:00Zor2025-03-10T10:00:00-04:00).- A time with no offset is read as UTC.
- Times are written to the file in UTC (
DTSTART:20250310T140000Z). endmust not be beforestart.
Notes
- Leave out
uidand one is generated. Send the sameuidagain to update an event a calendar already has. dtstampdefaults to the time of the request.- Commas, semicolons, backslashes and line breaks in text fields are escaped for you.
- Date problems (unparseable, end before start) return 400 with
detailsas a list of messages.
Endpoints
POST
https://opentools.ca/api/v1/tools/ics-generatorGenerate an .ics calendar file for one event
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| summary | string | Required | Event title (max 500 characters). |
| start | string | Required | Start date and time, e.g. "2025-03-10T14:00:00Z". |
| end | string | Required | End date and time. Must not be before start. |
| description | string | Optional | Event details (max 10,000 characters). |
| location | string | Optional | Where the event happens (max 500 characters). |
| organizer | string | Optional | Organizer, usually as "mailto:name@example.com" (max 500 characters). |
| url | string | Optional | A link for the event. Must be a valid URL. |
| uid | string | Optional | Unique event ID (max 255 characters, no line breaks).Default: generated |
| dtstamp | string | Optional | Creation timestamp in iCalendar UTC form, e.g. "20250301T120000Z".Default: now |
Response Example
{
"success": true,
"data": {
"icsContent": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//OpenTools//ICS Generator//EN\r\nCALSCALE:GREGORIAN\r\nMETHOD:PUBLISH\r\nBEGIN:VEVENT\r\nUID:team-meeting-2025-03-10@example.com\r\nDTSTAMP:20250301T120000Z\r\nDTSTART:20250310T140000Z\r\nDTEND:20250310T150000Z\r\nSUMMARY:Team Meeting\r\nDESCRIPTION:Weekly sync\r\nLOCATION:Room 4\r\nEND:VEVENT\r\nEND:VCALENDAR",
"filename": "team-meeting.ics"
}
}Error Codes
400
Invalid request. Validation problems are listed in details.401
Missing or invalid API key403
API key is deactivated or expired, or this IP address is not allowed for the key429
Rate limit exceeded (120 requests per minute per key)500
Internal server errorCode Examples
curl -X POST https://opentools.ca/api/v1/tools/ics-generator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"summary": "Team Meeting",
"description": "Weekly sync",
"location": "Room 4",
"start": "2025-03-10T14:00:00Z",
"end": "2025-03-10T15:00:00Z"
}'Rather use it in your browser? Open the ICS Generator