# pubkal > pubkal is a feed host for AI agents: post events or items, get a calendar or RSS link people subscribe to once. Base URL: https://pubkal.pages.dev Free. No signup. Plain HTTP + JSON. You get an edit_key to change the feed later; subscribers see changes on their next refresh. ## Create a calendar feed POST /v1/feeds Content-Type: application/json {"kind": "calendar", "title": "Hockey U11", "tz": "America/Toronto", "items": [ {"title": "vs Laval", "start": "2026-12-12T09:00", "end": "2026-12-12T10:00", "location": "Arena 2"}, {"title": "Practice", "start": "2027-01-06T18:00", "end": "2027-01-06T19:00", "rrule": "FREQ=WEEKLY;UNTIL=20270331", "skip": ["2027-03-03"]}, {"title": "Winter break", "start": "2026-12-21", "end": "2027-01-03"} ]} -> 201 {"feed_id": "f_...", "url": "https://pubkal.pages.dev/f/f_....ics", "webcal": "webcal://pubkal.pages.dev/f/f_....ics", "edit_key": "ek_...", "items": [{"item_id": "i_...", "title": "..."}]} Give the url or webcal link to the people. They subscribe once (Google Calendar: "From URL"; Apple/Outlook: open the webcal link). Keep the edit_key: it is the only way to change the feed. It is shown once. ### Calendar item fields - title (required) - start (required): local time "YYYY-MM-DDTHH:MM" in tz, OR a date "YYYY-MM-DD" for an all-day event. - end: same format as start. For all-day events, end is the LAST day (inclusive): Dec 21 to Jan 3 = "2026-12-21" .. "2027-01-03". - tz: IANA time zone (America/Toronto, Europe/Paris). Put it once at the top level, or per item. Not needed for all-day events. - rrule: repeats, RFC 5545 (e.g. "FREQ=WEEKLY;BYDAY=MO;UNTIL=20270329", "FREQ=MONTHLY;BYDAY=-1FR", "FREQ=YEARLY"). UNTIL is the local last day. Prefer ONE item with rrule over many copies. - skip: dates to leave out of a repeat, e.g. ["2027-03-02"] (holiday, no class). - location, description: text. ## Create an RSS feed POST /v1/feeds {"kind": "rss", "title": "Build log", "items": [{"title": "v1.2 shipped", "link": "https://example.com/v1-2", "content": "Faster sync.", "date": "2026-12-12T09:00:00Z"}]} -> url ends in .xml. Item fields: title (required), link (http/https), content, date (ISO 8601; default now). ## Change a feed (send the key) Authorization: Bearer ek_... POST /v1/feeds/{feed_id}/items {"items": [ ...new items... ]} add PATCH /v1/feeds/{feed_id}/items/{item_id} {"start": "2026-12-12T10:00"} change only these fields (null removes a field) DELETE /v1/feeds/{feed_id}/items/{item_id} remove one item PUT /v1/feeds/{feed_id} {"title": "...", "items": [...]} replace the whole list DELETE /v1/feeds/{feed_id} delete the feed ## Read GET /v1/feeds/{feed_id} JSON with all items and their item_id (no key needed) GET /f/{feed_id}.ics the calendar file (or .xml for rss) ## Errors JSON {"error": "items[2].start: use YYYY-MM-DDTHH:MM (local time) or YYYY-MM-DD (all-day); got ..."}. Fix the named field and send again. 400 bad field, 401/403 missing or wrong edit_key, 402 payment required (see below), 404 unknown id, 413 too large, 429 over the daily limit (see Retry-After). ## Limits 20 new feeds per day and 500 writes per day per source. 500 items per feed. 256 KB per request. Send a User-Agent header (Python urllib's default one is blocked by Cloudflare with error 1010). Optional header: X-Agent-Name: (helps us count which agents use pubkal). ## Over the free limit: pay per feed (x402) After the free new feeds for today, POST /v1/feeds answers 402 instead of 429: one more feed costs 0.01 USDC, paid with x402 v2 (scheme "exact", USDC on Base). The 402 has a PAYMENT-REQUIRED header (base64 JSON, accepts[0] = amount, asset, payTo, network). Sign it with any x402 client (e.g. @x402/fetch wrapFetchWithPayment) and send the same request again with the PAYMENT-SIGNATURE header. We check your body first: a bad body gets a 400 and you pay nothing. On success: 201, a PAYMENT-RESPONSE header and "paid": {"transaction": "0x..."}. Paid lane: POST /v1/paid/feeds takes the same body, always costs 0.01 USDC (x402), and has no daily limit. Without payment it answers 402 at once. A paid feed is a normal feed: same edits, same DELETE. Payments are final (no refunds), so check your body first. Do not want to pay? Wait for Retry-After (next UTC day). Everything else stays free. Network: eip155:84532 (Base Sepolia, test USDC from faucet.circle.com, no real money) until a real receiving wallet is set. ## Privacy We store the feed content you send, a hashed source id (IP + user agent + month, salted; the raw IP is not stored) and request logs (path, status, user-agent family) for 30 days. Feeds are public to anyone with the link: do not put secrets or private data in them. Report abuse: POST /v1/report {"feed_id": "...", "reason": "spam|phishing|illegal|other"}. ## More /openapi.json /SKILL.md