Base URL
Authentication
One Bearer token, obtained once fromPOST /v1/mint (no signup):
.agentcal/credentials file, gitignored). Additional keys can be minted and revoked at /v1/agent-credentials; the last active key cannot be revoked.
Scopes
A mint-time token carries all four. Secondary credentials carry the first three only, so a leaked machine key cannot re-share your calendars.
Public and unlisted calendars are readable without any token:
GET /v1/calendars/{id}/events just works.
Idempotency
Every mutatingPOST requires an Idempotency-Key header: any unique string you generate (a UUID is fine). Retrying with the same key and the same body replays the original response, including the one-time secrets, exactly once per key. PATCH and DELETE do not take the header.