API
JSON over HTTPS. Admin routes require Authorization: Bearer <token>
(create one with slot-scheduler gen-token). Errors are {"error": code, "message": text} with
HTTP 400 (invalid), 401 (no/bad token), 403 (wrong manage token), 404, 409 (slot taken, email already holds a slot,
config version conflict, or config change would remove claimed slots).
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /api/v1/calendar | public | Calendar metadata and day-grouped slots with claimed/past flags |
| POST | /api/v1/claims | public | Claim a slot: {name, email, slot_id}; returns claim_id and manage_url |
| DELETE | /api/v1/claims/<claim_id>?token= | manage token | Release your own claim |
| POST | /api/v1/resend | public | Re-send the manage link for {email} (always 202) |
| GET | /api/v1/routes | public | This list |
| GET | /api/v1/admin/status | bearer | Version, backends, counts |
| GET | /api/v1/admin/config | bearer | Current calendar spec and its version |
| PUT | /api/v1/admin/config | bearer | Replace spec: {config, expected_version?, force?, notify?, dry_run?} |
| PATCH | /api/v1/admin/config | bearer | Merge top-level fields into the spec (same options as PUT) |
| POST | /api/v1/admin/config/validate | bearer | Validate a spec and list the slots it generates |
| GET | /api/v1/admin/slots | bearer | Slots with claimant details |
| GET | /api/v1/admin/claims | bearer | All claims |
| POST | /api/v1/admin/claims | bearer | Claim on someone's behalf: {name, email, slot_id, notify?, note?} (bypasses open/past/domain checks) |
| DELETE | /api/v1/admin/claims/<claim_id>?notify=1&reason= | bearer | Release any claim |
| POST | /api/v1/admin/claims/<claim_id>/resend | bearer | Rotate manage token, re-send invitation to the claimant |
| GET | /api/v1/admin/export | bearer | JSON dump of config and claims |
| POST | /api/v1/admin/import?replace_claims=0 | bearer | Restore a JSON dump (no mail sent) |
HTML routes
See the sitemap.
Example
curl -s -H "Authorization: Bearer $SLOT_SCHEDULER_API_TOKEN" \
-X PATCH -H 'Content-Type: application/json' \
-d '{"config": {"open": false}}' https://schedule-me.andrewnorman.org/api/v1/admin/config