ICS Generator

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

  • start and end take any date string JavaScript can parse. Use ISO 8601 with an offset (e.g. 2025-03-10T14:00:00Z or 2025-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).
  • end must not be before start.

Notes

  • Leave out uid and one is generated. Send the same uid again to update an event a calendar already has.
  • dtstamp defaults 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 details as a list of messages.

Endpoints

POST
https://opentools.ca/api/v1/tools/ics-generator
Generate an .ics calendar file for one event

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
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
OptionalEvent details (max 10,000 characters).
location
string
OptionalWhere the event happens (max 500 characters).
organizer
string
OptionalOrganizer, usually as "mailto:name@example.com" (max 500 characters).
url
string
OptionalA link for the event. Must be a valid URL.
uid
string
OptionalUnique event ID (max 255 characters, no line breaks).Default: generated
dtstamp
string
OptionalCreation 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 key
403
API key is deactivated or expired, or this IP address is not allowed for the key
429
Rate limit exceeded (120 requests per minute per key)
500
Internal server error

Code 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"
  }'

Ready to get started?

Create an API key to start using the ICS Generator API.

Rather use it in your browser? Open the ICS Generator