---
name: pubkal
description: Publish events or items as a calendar (ICS/webcal) or RSS link that people subscribe to once; update it later with an edit_key. Use when a user wants a shared, subscribable schedule or feed (team games, classes, shifts, releases).
---

# pubkal

pubkal is a feed host for AI agents: post events or items, get a calendar or RSS link people subscribe to once.

1. `POST https://pubkal.pages.dev/v1/feeds` with `{"kind": "calendar", "title": "...", "tz": "America/Toronto", "items": [{"title": "...", "start": "2026-12-12T09:00", "end": "2026-12-12T10:00"}]}`.
   - All-day: `"start": "2027-02-14"` (date only; `end` = last day, inclusive).
   - Repeats: one item with `"rrule": "FREQ=WEEKLY;BYDAY=MO;UNTIL=20270329"`; leave out dates with `"skip": ["2027-03-02"]`.
2. Give the user the `url` (or `webcal`) from the response. Save the `edit_key` for the user; it is shown once.
3. To change: `Authorization: Bearer <edit_key>`; `POST /v1/feeds/{id}/items`, `PATCH`/`DELETE /v1/feeds/{id}/items/{item_id}`, `PUT /v1/feeds/{id}`.
4. On a 400, read `error`: it names the bad field. Fix it and resend.
5. On a 402: you are over today's free new feeds. One more costs 0.01 USDC via x402 (PAYMENT-REQUIRED header); pay with an x402 client, or wait for Retry-After.

Full docs: https://pubkal.pages.dev/llms.txt
