{"openapi":"3.1.0","info":{"title":"patio REST API","version":"1","description":"Everything the patio web pages can do, as JSON. Guide for AI agents: /llms.txt.\n\n- Signed in as the person whose browser this is: call the API from a page of this site with fetch(url, { credentials: \"same-origin\" }). The session cookie is the credential.\n- Send JSON: `content-type: application/json` on every POST, PUT, PATCH and DELETE that has a body. Cross-site writes are refused.\n- Times in responses are epoch milliseconds (UTC). Input times take epoch milliseconds or ISO 8601 with an offset.\n- Errors: `{ \"error\": { \"code\", \"message\", \"issues\"? } }` with 400 (input), 403, 404 (missing or not yours), 409 (duplicate), 429 (rate limit).\n- Invitations, meetings, connection requests and group invites send real email to real people. Confirm with the human before you send them, and before you delete anything."},"servers":[{"url":"https://patio.serve.beshu.tech/api/v1"}],"security":[{"session":[]}],"tags":[{"name":"Account"},{"name":"Connections"},{"name":"Notifications"},{"name":"Settings"},{"name":"Calendars"},{"name":"People"},{"name":"Tags"},{"name":"Meetups"},{"name":"Follow-ups"},{"name":"AI"},{"name":"Meetings"},{"name":"Groups"}],"paths":{"/me":{"get":{"operationId":"getMe","tags":["Account"],"summary":"Who is signed in, unread notifications, and whether setup is still open","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMe","tags":["Account"],"summary":"Delete your account for good","description":"Irreversible. Ask the human first. `confirm` must equal your account email.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string"}},"required":["confirm"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/home":{"get":{"operationId":"getHome","tags":["Account"],"summary":"The home dashboard: who is due, meetups to rate, follow-ups, gentle alerts, connection requests, merge suggestions","description":"due: people slipping or overdue, the most overdue first; snoozed ones are left out until the snooze ends. followUps: your 6 most pressing open follow-ups that are undated, overdue or due within 7 days (shape of GET /follow-ups), as on the Home page; none of snoozed people. followUpsLater: how many open follow-ups are due later than that. followUpCounts: { open, dueToday, overdue }, all your open follow-ups but the snoozed ones, due by today in your time zone. alerts: at most 3 \"Check in?\" notes, when someone seemed low (mood 2 or less) the last two times you met them, the latest within 60 days: [{ key, personId, name, interactionId, occurredAt, text }]. suggestion: an interest two or more of your people share ({ key, interest, people [{ personId, name }], text }, e.g. \"Marco and Ann both like climbing.\"), a different one each day, or null. Hide an alert or the suggestion with POST /home/dismissals. Muted, blocked and snoozed people do not appear in alerts or the suggestion.","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/setup/finish":{"post":{"operationId":"postSetupFinish","tags":["Account"],"summary":"Close the first-run setup wizard","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/export":{"get":{"operationId":"getExport","tags":["Account"],"summary":"Everything stored about you, as JSON","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/me/photo":{"put":{"operationId":"putMePhoto","tags":["Account"],"summary":"Set your own picture (shown to the people you are connected to)","description":"GET the picture (WebP; with none, a 1×1 transparent PNG and the header `x-avatar: none`) with the same session. `?s=thumb` gives the 128 px version. Path: /api/avatars/me.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","minLength":1,"maxLength":11534336},"crop":{"description":"A square to keep, as fractions of the picture: {left, top, width, height}","type":"object","properties":{"left":{"type":"number","minimum":0,"maximum":1},"top":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","exclusiveMinimum":0,"maximum":1},"height":{"type":"number","exclusiveMinimum":0,"maximum":1}},"required":["left","top","width","height"]}},"required":["image"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteMePhoto","tags":["Account"],"summary":"Remove your own picture","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/me/photo-lookup":{"put":{"operationId":"putMePhotoLookup","tags":["Account"],"summary":"Turn picture lookups for your contacts on or off","description":"On (the default): a contact with an email address and no picture of your own gets the one registered at Gravatar or Libravatar. Only a SHA-256 hash of the address is sent, by the server. Off: nothing is sent.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/requests":{"get":{"operationId":"getConnectionsRequests","tags":["Connections"],"summary":"Connection requests sent to you and by you","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postConnectionsRequests","tags":["Connections"],"summary":"Ask someone to connect, by email (emails them when they have no account)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254}},"required":["email"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/requests/{requestId}/respond":{"post":{"operationId":"postConnectionsRequestsBy_requestIdRespond","tags":["Connections"],"summary":"Accept or decline a connection request","parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accept":{"type":"boolean"}},"required":["accept"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/notifications":{"get":{"operationId":"getNotifications","tags":["Notifications"],"summary":"Your notifications, newest first, 50 per page","description":"Next page: `before` = `<createdAt>.<id>` of the last item.","parameters":[{"name":"before","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/notifications/read":{"post":{"operationId":"postNotificationsRead","tags":["Notifications"],"summary":"Mark notifications as read","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}},"required":["ids"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/settings":{"get":{"operationId":"getSettings","tags":["Settings"],"summary":"Your preferences and weekly hours","description":"Weekdays 1 (Monday) to 7; minutes from local midnight (1440 = end of day). A weekday without a row is not available.","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchSettings","tags":["Settings"],"summary":"Change any preferences; fields you leave out keep their value","description":"`weeklyHours`, when sent, replaces every weekday. calendarNudges needs a reminder calendar (PUT /calendars/{calendarId}/destination). All or nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80,"description":"What people you meet see"},"timezone":{"type":"string","description":"IANA zone, e.g. Europe/Rome"},"minNoticeMin":{"type":"integer","minimum":0,"maximum":20160,"description":"Minimum notice before a meeting, in minutes"},"bufferMin":{"type":"integer","minimum":0,"maximum":240,"description":"Break around your meetings, in minutes"},"digestWeekday":{"type":"integer","minimum":1,"maximum":7,"description":"1 (Monday) to 7"},"digestHour":{"type":"integer","minimum":0,"maximum":23},"shareAvailabilityWithConnections":{"type":"boolean"},"emailNudges":{"type":"boolean"},"calendarNudges":{"type":"boolean","description":"Needs a reminder calendar (PUT /calendars/{calendarId}/destination)"},"ownCalendarSignal":{"type":"boolean"},"avatarLookup":{"type":"boolean","description":"Find your picture on Gravatar or Libravatar by email"},"aiHelp":{"type":"boolean","description":"Sort with AI: a note goes to the AI only when you press the button"},"weeklyHours":{"maxItems":7,"type":"array","items":{"type":"object","properties":{"weekday":{"type":"integer","minimum":1,"maximum":7},"startMin":{"type":"integer","minimum":0,"maximum":1439},"endMin":{"type":"integer","minimum":1,"maximum":1440}},"required":["weekday","startMin","endMin"]},"description":"Replaces every weekday. Minutes from local midnight (1440 = end of day; an end of 1439 is stored as 1440), each day ending after it starts; a weekday without a row is not available"}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/settings/guest-history":{"post":{"operationId":"postSettingsGuestHistory","tags":["Settings"],"summary":"Add (or not) the meetings you were invited to as a guest before you had an account","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"adopt":{"type":"boolean"}},"required":["adopt"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendars":{"get":{"operationId":"getCalendars","tags":["Calendars"],"summary":"Connected calendar accounts and their calendars","description":"Google and Microsoft accounts connect only in the browser: open /api/calendars/google/start or /api/calendars/microsoft/start.","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendars/ics":{"post":{"operationId":"postCalendarsIcs","tags":["Calendars"],"summary":"Connect a calendar by its ICS or webcal link (busy times only)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":8,"maxLength":2000},"name":{"default":"","type":"string","maxLength":80}},"required":["url"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendars/{calendarId}/busy":{"put":{"operationId":"putCalendarsBy_calendarIdBusy","tags":["Calendars"],"summary":"Count (or stop counting) one calendar's events as busy","parameters":[{"name":"calendarId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"busy":{"type":"boolean"}},"required":["busy"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendars/{calendarId}/destination":{"put":{"operationId":"putCalendarsBy_calendarIdDestination","tags":["Calendars"],"summary":"Put meetings and reminders in this calendar","parameters":[{"name":"calendarId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/calendar-accounts/{accountId}":{"delete":{"operationId":"deleteCalendarAccountsBy_accountId","tags":["Calendars"],"summary":"Disconnect a calendar account and all its calendars","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people":{"get":{"operationId":"getPeople","tags":["People"],"summary":"List everyone you keep track of","description":"Private contacts, connections and anyone you added notes to, sorted by name. `state` is on_track, slipping, overdue or null (not tracked). `interests`: what you share with them. `?interest=climbing`: only the people you share that interest with (exact, any case).","parameters":[{"name":"interest","in":"query","required":false,"schema":{"description":"Only people with this shared interest, e.g. climbing","type":"string","minLength":1,"maxLength":60}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postPeople","tags":["People"],"summary":"Add a private contact, with any field of PATCH /people/{personId}","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]},"relationship":{"anyOf":[{"type":"string","enum":["significant_other","spouse","date","lover","in_love_with","loved_by","ex","parent","child","sibling","grandparent","grandchild","uncle_aunt","nephew_niece","cousin","godparent","godchild","friend","best_friend","colleague","boss","subordinate","mentor","protege"]},{"type":"null"}]},"birthday":{"anyOf":[{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":31},"month":{"type":"integer","minimum":1,"maximum":12},"year":{"default":null,"anyOf":[{"type":"integer","minimum":1900,"maximum":9999},{"type":"null"}]}},"required":["day","month"]},{"type":"null"}]},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"metOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2})?)?$"},{"type":"null"}],"description":"A year is enough. Add the month and day if you know them. Example: 2014, or 2014-06, or 2014-06-12. Not after today."},"metStory":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"description":"The place and the story. It helps you remember what you share. Example: At Marta's wedding in Lisbon. We sat at the same table and talked about sailing all night."},"character":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"What they are like and what they think: temperament, values, strong views, likes and dislikes, topics to avoid. Example: Calm, dry humour, always late. Vegetarian. Loves urban design; avoid politics. Prefers calls to texts."},"details":{"type":"object","properties":{"email":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"phone":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"address":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"location":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"language":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"interest":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}}},"additionalProperties":false},"cadenceDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":3660},{"type":"null"}],"description":"Days between meetups you aim for; null stops tracking"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["name"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/bulk":{"post":{"operationId":"postPeopleBulk","tags":["People"],"summary":"Add up to 200 private contacts at once (all or none)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"people":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"cadenceDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":3660},{"type":"null"}],"description":"Days between meetups you aim for; null stops tracking"}},"required":["name"]}}},"required":["people"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/merge-candidates":{"get":{"operationId":"getPeopleMergeCandidates","tags":["People"],"summary":"Private contacts that look like the same person as a connection","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}":{"get":{"operationId":"getPeopleBy_personId","tags":["People"],"summary":"One person: summary, how you met, what they are like, details, recent meetups with notes, tags, mute and block state","description":"`userId` is set for account people (use it for mute and block). `details.interest` holds the shared interests. `recentMeetups`: the last 6, in the shape of GET /interactions. `fields`: every person field, in the shape PATCH /people/{personId} takes (birthday as { day, month, year }).","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchPeopleBy_personId","tags":["People"],"summary":"Change any field of a person, all or nothing","description":"Fields you leave out stay; null clears. Name and email only for your private contacts. Every detail kind you send replaces that kind; kinds you leave out stay. Kinds: email, phone, address, location, language, interest (interest: Things you both enjoy. One short item each. Tags group people; shared interests say what you two share. Example: climbing · Italian cooking · jazz · board games). All private to you.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]},"relationship":{"anyOf":[{"type":"string","enum":["significant_other","spouse","date","lover","in_love_with","loved_by","ex","parent","child","sibling","grandparent","grandchild","uncle_aunt","nephew_niece","cousin","godparent","godchild","friend","best_friend","colleague","boss","subordinate","mentor","protege"]},{"type":"null"}]},"birthday":{"anyOf":[{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":31},"month":{"type":"integer","minimum":1,"maximum":12},"year":{"default":null,"anyOf":[{"type":"integer","minimum":1900,"maximum":9999},{"type":"null"}]}},"required":["day","month"]},{"type":"null"}]},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"metOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2})?)?$"},{"type":"null"}],"description":"A year is enough. Add the month and day if you know them. Example: 2014, or 2014-06, or 2014-06-12. Not after today."},"metStory":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"description":"The place and the story. It helps you remember what you share. Example: At Marta's wedding in Lisbon. We sat at the same table and talked about sailing all night."},"character":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"What they are like and what they think: temperament, values, strong views, likes and dislikes, topics to avoid. Example: Calm, dry humour, always late. Vegetarian. Loves urban design; avoid politics. Prefers calls to texts."},"details":{"type":"object","properties":{"email":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"phone":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"address":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"location":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"language":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"interest":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}}},"additionalProperties":false},"cadenceDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":3660},{"type":"null"}],"description":"Days between meetups you aim for; null stops tracking"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deletePeopleBy_personId","tags":["People"],"summary":"Delete a private contact and everything private about them","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/photo":{"put":{"operationId":"putPeopleBy_personIdPhoto","tags":["People"],"summary":"Set your own picture of a person (private to you)","description":"Replaces the picture you set before. Without one, the app falls back to what that person chose (if connected), then to Gravatar or Libravatar by email, then to initials. GET the picture (WebP; with none, a 1×1 transparent PNG and the header `x-avatar: none`) with the same session. `?s=thumb` gives the 128 px version. Path: /api/avatars/person/{personId}.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","minLength":1,"maxLength":11534336},"crop":{"description":"A square to keep, as fractions of the picture: {left, top, width, height}","type":"object","properties":{"left":{"type":"number","minimum":0,"maximum":1},"top":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","exclusiveMinimum":0,"maximum":1},"height":{"type":"number","exclusiveMinimum":0,"maximum":1}},"required":["left","top","width","height"]}},"required":["image"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deletePeopleBy_personIdPhoto","tags":["People"],"summary":"Remove the picture you set of a person","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/identity":{"put":{"operationId":"putPeopleBy_personIdIdentity","tags":["People"],"summary":"Rename a private contact or change their email (PATCH /people/{personId} does the same)","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]}},"required":["name"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/about":{"put":{"operationId":"putPeopleBy_personIdAbout","tags":["People"],"summary":"Relationship, birthday, how you met, what they are like, contact details and shared interests (PATCH /people/{personId} does the same)","description":"Fields you leave out stay; null clears. Every detail kind you send replaces that kind; kinds you leave out stay. Kinds: email, phone, address, location, language, interest (interest: Things you both enjoy. One short item each. Tags group people; shared interests say what you two share. Example: climbing · Italian cooking · jazz · board games). All private to you.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"relationship":{"anyOf":[{"type":"string","enum":["significant_other","spouse","date","lover","in_love_with","loved_by","ex","parent","child","sibling","grandparent","grandchild","uncle_aunt","nephew_niece","cousin","godparent","godchild","friend","best_friend","colleague","boss","subordinate","mentor","protege"]},{"type":"null"}]},"birthday":{"anyOf":[{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":31},"month":{"type":"integer","minimum":1,"maximum":12},"year":{"default":null,"anyOf":[{"type":"integer","minimum":1900,"maximum":9999},{"type":"null"}]}},"required":["day","month"]},{"type":"null"}]},"details":{"type":"object","properties":{"email":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"phone":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"address":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"location":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"language":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}},"interest":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"default":null,"type":["string","null"]}},"required":["value"]}}},"additionalProperties":false},"metOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-\\d{2}(-\\d{2})?)?$"},{"type":"null"}],"description":"A year is enough. Add the month and day if you know them. Example: 2014, or 2014-06, or 2014-06-12. Not after today."},"metStory":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"description":"The place and the story. It helps you remember what you share. Example: At Marta's wedding in Lisbon. We sat at the same table and talked about sailing all night."},"character":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"What they are like and what they think: temperament, values, strong views, likes and dislikes, topics to avoid. Example: Calm, dry humour, always late. Vegetarian. Loves urban design; avoid politics. Prefers calls to texts."}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/snooze":{"post":{"operationId":"postPeopleBy_personIdSnooze","tags":["People"],"summary":"Pause nudges about a person for some days (0 ends the snooze); their follow-ups leave Home and the reminders until then","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":365}},"required":["days"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/check-in":{"post":{"operationId":"postPeopleBy_personIdCheckIn","tags":["People"],"summary":"Answer the cadence check-in: keep it, change it, or stop tracking","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"keep":{"type":"boolean","const":true}},"required":["keep"]},{"type":"object","properties":{"cadenceDays":{"type":"integer","minimum":1,"maximum":3660}},"required":["cadenceDays"]},{"type":"object","properties":{"stop":{"type":"boolean","const":true}},"required":["stop"]}]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/merge":{"post":{"operationId":"postPeopleBy_personIdMerge","tags":["People"],"summary":"Merge a private contact into another person (see /people/merge-candidates)","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"intoPersonId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},"required":["intoPersonId"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/connection":{"delete":{"operationId":"deletePeopleBy_personIdConnection","tags":["Connections"],"summary":"Remove the connection with an account person","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/blocks":{"get":{"operationId":"getBlocks","tags":["Connections"],"summary":"Accounts you blocked","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postBlocks","tags":["Connections"],"summary":"Block an account (ends the connection, hides their invitations)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},"required":["userId"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/blocks/{userId}":{"delete":{"operationId":"deleteBlocksBy_userId","tags":["Connections"],"summary":"Unblock an account","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/mutes/{userId}":{"put":{"operationId":"putMutesBy_userId","tags":["Connections"],"summary":"Mute or unmute an account","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"muted":{"type":"boolean"}},"required":["muted"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tags":{"get":{"operationId":"getTags","tags":["Tags"],"summary":"Your tags, each with the people who carry it","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postTags","tags":["Tags"],"summary":"Put a tag (new or existing) on people","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"description":"Any case and spacing; stored normalized, at most 40 characters. An existing name reuses that tag"},"personIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}},"required":["name","personIds"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tags/{tagId}":{"patch":{"operationId":"patchTagsBy_tagId","tags":["Tags"],"summary":"Rename a tag (merges into a tag that already has the new name)","parameters":[{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"description":"Any case and spacing; stored normalized, at most 40 characters. An existing name reuses that tag"}},"required":["name"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteTagsBy_tagId","tags":["Tags"],"summary":"Delete a tag (people stay)","parameters":[{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/tags":{"post":{"operationId":"postPeopleBy_personIdTags","tags":["Tags"],"summary":"Tag one person","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":50,"description":"Any case and spacing; stored normalized, at most 40 characters. An existing name reuses that tag"}},"required":["name"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/tags/{tagId}":{"delete":{"operationId":"deletePeopleBy_personIdTagsBy_tagId","tags":["Tags"],"summary":"Take a tag off one person","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions/prompts":{"get":{"operationId":"getInteractionsPrompts","tags":["Meetups"],"summary":"Recent meetups waiting for a rating (newest first, at most 5)","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions":{"get":{"operationId":"getInteractions","tags":["Meetups"],"summary":"Your meetups with their notes, newest first; optionally only those with one person, or a search","description":"A meetup: id, occurredAt, channel (null on old rows: then read mode), mode, source (manual | in_app_meeting | own_calendar), partySize, meeting ({ id, title } or null), note (what you talked about), plans, decisions, openQuestions, promisedByMe, promisedToMe, eventAffect, people [{ personId, name, mood, affect }], followUps { by_me, to_me, question: [{ id, text, done, dueOn, personId }] } (one per line of promisedByMe, promisedToMe, openQuestions; tick them with PATCH /follow-ups/{id}), updatedAt. All private to you. Returns { meetups, nextBefore }: pass nextBefore as `before` for the next page (null on the last one). q searches the notes (what you talked about, plans, decisions, open questions, promises) and the names of the people there, e.g. ?q=london.","parameters":[{"name":"personId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"q","in":"query","required":false,"schema":{"description":"Text to find in the notes or the names, e.g. london","type":"string","minLength":1,"maxLength":100}},{"name":"before","in":"query","required":false,"schema":{"description":"nextBefore of the page before","type":"string","maxLength":100}},{"name":"limit","in":"query","required":false,"schema":{"description":"Default 30","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postInteractions","tags":["Meetups"],"summary":"Log a meetup (\"I met…\") with your notes","description":"Send channel (or, from older callers, mode). 409 when a meeting or your calendar already recorded these people that day: error.existingId is that meetup, so PATCH your notes onto it. A meetup you already logged with exactly the same people that day does not stop this call (the web form asks first): GET /interactions to check before you log it again.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD in your time zone; never later than today"},"channel":{"type":"string","enum":["in_person","video","phone","messages"]},"partySize":{"type":"integer","minimum":2,"maximum":10000,"description":"Everyone present including you"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Only you see it. The main topics and news, in your own words. Example: Her new job at the museum. His knee surgery is in March."},"plans":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. What you want to do together. Add a date if you have one. Example: Hike the Path of the Gods in May. Dinner at ours after the move."},"decisions":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. What you agreed or settled. Example: We split the gift for Luca. Book club moves to Thursdays."},"openQuestions":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. GET /follow-ups lists the lines. Example: Will she take the London offer? / Ask how the surgery went."},"promisedByMe":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. In a group, start a line with the person's name and a colon to link it to them. GET /follow-ups lists the lines. Example: Ben: send the hut link / Ann: lend the tent"},"promisedToMe":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. In a group, start a line with the person's name and a colon to link it to them. GET /follow-ups lists the lines. Example: Ben: intro to his architect / Ann: send the recipe"},"eventAffect":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}],"description":"How did it feel for you? Example: 1 drained · 2 tired · 3 okay · 4 good · 5 energized"},"mode":{"description":"Upkeep weight class; prefer channel","type":"string","enum":["in_person","remote","async"]},"people":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"mood":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"affect":{"description":"Legacy; prefer mood and eventAffect","anyOf":[{"type":"integer","minimum":1,"maximum":5,"description":"1 (drained) to 5 (energized)"},{"type":"null"}]}},"required":["personId"]},"description":"Who was there besides you, with how each seemed to you"}},"required":["date","people"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions/{interactionId}":{"get":{"operationId":"getInteractionsBy_interactionId","tags":["Meetups"],"summary":"One meetup with all your notes","description":"A meetup: id, occurredAt, channel (null on old rows: then read mode), mode, source (manual | in_app_meeting | own_calendar), partySize, meeting ({ id, title } or null), note (what you talked about), plans, decisions, openQuestions, promisedByMe, promisedToMe, eventAffect, people [{ personId, name, mood, affect }], followUps { by_me, to_me, question: [{ id, text, done, dueOn, personId }] } (one per line of promisedByMe, promisedToMe, openQuestions; tick them with PATCH /follow-ups/{id}), updatedAt. All private to you. `fields`: every meetup field in one shape (date as YYYY-MM-DD in your time zone, people as ids, moods by person id).","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchInteractionsBy_interactionId","tags":["Meetups"],"summary":"Change the notes, channel, ratings or (for meetups you logged) the date, the people and the party size of a meetup","description":"Fields you leave out stay; null clears. personIds (meetups you logged): who was there besides you, at least one; it replaces the list. partySize (meetups you logged): everyone present including you, never below the people + 1 (removing people lowers it by as many). people: moods and ratings, for people in the meetup after personIds. Meetings and calendar events fix their date and people (400). Changing promisedByMe, promisedToMe or openQuestions keeps the state of unchanged lines (GET /follow-ups).","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD in your time zone; never later than today"},"channel":{"anyOf":[{"type":"string","enum":["in_person","video","phone","messages"]},{"type":"null"}],"description":"How you met up Example: In person · Video call · Phone call · Messages. Sets mode: in_person → in_person, video and phone → remote, messages → async."},"partySize":{"type":"integer","minimum":2,"maximum":10000,"description":"Everyone present including you"},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Only you see it. The main topics and news, in your own words. Example: Her new job at the museum. His knee surgery is in March."},"plans":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. What you want to do together. Add a date if you have one. Example: Hike the Path of the Gods in May. Dinner at ours after the move."},"decisions":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. What you agreed or settled. Example: We split the gift for Luca. Book club moves to Thursdays."},"openQuestions":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. GET /follow-ups lists the lines. Example: Will she take the London offer? / Ask how the surgery went."},"promisedByMe":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. In a group, start a line with the person's name and a colon to link it to them. GET /follow-ups lists the lines. Example: Ben: send the hut link / Ann: lend the tent"},"promisedToMe":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Only you see it. One per line. Each line becomes a follow-up you can tick off. In a group, start a line with the person's name and a colon to link it to them. GET /follow-ups lists the lines. Example: Ben: intro to his architect / Ann: send the recipe"},"eventAffect":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}],"description":"How did it feel for you? Example: 1 drained · 2 tired · 3 okay · 4 good · 5 energized"},"people":{"description":"Moods (and legacy ratings) for people in the meetup after personIds","type":"array","items":{"type":"object","properties":{"personId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"mood":{"anyOf":[{"type":"integer","minimum":1,"maximum":5},{"type":"null"}]},"affect":{"description":"Legacy; prefer mood and eventAffect","anyOf":[{"type":"integer","minimum":1,"maximum":5,"description":"1 (drained) to 5 (energized)"},{"type":"null"}]}},"required":["personId"]}},"personIds":{"description":"Who was there besides you; replaces the list","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteInteractionsBy_interactionId","tags":["Meetups"],"summary":"Delete a meetup and its notes (\"I did not go\")","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions/{interactionId}/rating":{"post":{"operationId":"postInteractionsBy_interactionIdRating","tags":["Meetups"],"summary":"Rate a meetup (null skips the rating and closes the prompt)","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventAffect":{"anyOf":[{"type":"integer","minimum":1,"maximum":5,"description":"1 (drained) to 5 (energized)"},{"type":"null"}]}},"required":["eventAffect"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions/{interactionId}/people/{personId}/mood":{"post":{"operationId":"postInteractionsBy_interactionIdPeopleBy_personIdMood","tags":["Meetups"],"summary":"Set how one person in a meetup seemed to you (their mood)","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mood":{"anyOf":[{"type":"integer","minimum":1,"maximum":5,"description":"How they seemed to you. Only you see it. Example: 1 very low · 2 low · 3 okay · 4 good · 5 great"},{"type":"null"}]}},"required":["mood"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/interactions/{interactionId}/people/{personId}/rating":{"post":{"operationId":"postInteractionsBy_interactionIdPeopleBy_personIdRating","tags":["Meetups"],"summary":"How it felt for you with this person (legacy; prefer mood and eventAffect)","parameters":[{"name":"interactionId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"affect":{"type":"integer","minimum":1,"maximum":5,"description":"1 (drained) to 5 (energized)"}},"required":["affect"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/follow-ups":{"get":{"operationId":"getFollowUps","tags":["Follow-ups"],"summary":"Your follow-ups: what you promised, what they promised, open questions","description":"A follow-up: one line of a meetup's promisedByMe, promisedToMe or openQuestions, or one by itself about a person (interactionId null, added with POST /people/{personId}/follow-ups). id, kind (by_me (\"You promised\"), to_me (\"They promised\"), question (\"Open questions\")), text, personId and personName (who it is about; null = the whole meetup), dueOn (YYYY-MM-DD or null), due (overdue | today | later | null, in your time zone), done, doneAt, interactionId (null by itself), occurredAt (the meetup, or when one by itself was added), people [{ personId, name, canOpen }] (everyone at the meetup; canOpen false: their page is gone, for example after a merge). snoozed (true while their person is snoozed, or everyone at the meetup is: POST /people/{personId}/snooze; Home and the reminders leave these out). Private to you. Editing the meetup text re-creates the lines; an unchanged line keeps its state. Open ones (default): due ones first (overdue first), then the oldest meetup. Done ones: last ticked first. With personId: those about them, and those about the whole meetup on meetups with them. With horizonDays (open only): undated, overdue and those due within that many days; the ones due later stay out (Home uses 7). Example: GET /follow-ups?personId=…&state=open&limit=5 or GET /follow-ups?horizonDays=7","parameters":[{"name":"personId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"state","in":"query","required":false,"schema":{"description":"Default open","type":"string","enum":["open","done"]}},{"name":"limit","in":"query","required":false,"schema":{"description":"Default 50","type":"integer","minimum":1,"maximum":200}},{"name":"horizonDays","in":"query","required":false,"schema":{"description":"Open only: leave out those due more than this many days ahead, e.g. 7","type":"integer","minimum":0,"maximum":366}},{"name":"snoozed","in":"query","required":false,"schema":{"description":"false: leave out snoozed ones (as Home does); true: only them","type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/follow-ups/{followUpId}":{"patch":{"operationId":"patchFollowUpsBy_followUpId","tags":["Follow-ups"],"summary":"Tick a follow-up done (or open again), or give it a due date","description":"Fields you leave out stay; dueOn null clears. The meetup text does not change. text: only for a follow-up by itself (400 for one from a meetup: edit the meetup with PATCH /interactions/{interactionId}). Returns the follow-up. Example: { \"done\": true } or { \"dueOn\": \"2026-11-12\" }. A follow-up: one line of a meetup's promisedByMe, promisedToMe or openQuestions, or one by itself about a person (interactionId null, added with POST /people/{personId}/follow-ups). id, kind (by_me (\"You promised\"), to_me (\"They promised\"), question (\"Open questions\")), text, personId and personName (who it is about; null = the whole meetup), dueOn (YYYY-MM-DD or null), due (overdue | today | later | null, in your time zone), done, doneAt, interactionId (null by itself), occurredAt (the meetup, or when one by itself was added), people [{ personId, name, canOpen }] (everyone at the meetup; canOpen false: their page is gone, for example after a merge). snoozed (true while their person is snoozed, or everyone at the meetup is: POST /people/{personId}/snooze; Home and the reminders leave these out). Private to you. Editing the meetup text re-creates the lines; an unchanged line keeps its state.","parameters":[{"name":"followUpId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"done":{"type":"boolean"},"text":{"description":"Only for a follow-up by itself (interactionId null); one line","type":"string"},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"YYYY-MM-DD; null clears"}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteFollowUpsBy_followUpId","tags":["Follow-ups"],"summary":"Remove a follow-up by itself","description":"Only one with interactionId null. One from a meetup goes by removing its line from the meetup's notes (PATCH /interactions/{interactionId}): 400 here.","parameters":[{"name":"followUpId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/follow-ups":{"post":{"operationId":"postPeopleBy_personIdFollowUps","tags":["Follow-ups"],"summary":"Add a follow-up by itself about someone: a promise or question with no meetup behind it","description":"For a promise made by message, say. Returns the follow-up (201). At most 500 open ones by themselves (400). 404 when you cannot open their page. Example: { \"kind\": \"by_me\", \"text\": \"Send Ann the recipe\", \"dueOn\": \"2026-11-12\" }. A follow-up: one line of a meetup's promisedByMe, promisedToMe or openQuestions, or one by itself about a person (interactionId null, added with POST /people/{personId}/follow-ups). id, kind (by_me (\"You promised\"), to_me (\"They promised\"), question (\"Open questions\")), text, personId and personName (who it is about; null = the whole meetup), dueOn (YYYY-MM-DD or null), due (overdue | today | later | null, in your time zone), done, doneAt, interactionId (null by itself), occurredAt (the meetup, or when one by itself was added), people [{ personId, name, canOpen }] (everyone at the meetup; canOpen false: their page is gone, for example after a merge). snoozed (true while their person is snoozed, or everyone at the meetup is: POST /people/{personId}/snooze; Home and the reminders leave these out). Private to you. Editing the meetup text re-creates the lines; an unchanged line keeps its state.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["by_me","to_me","question"],"description":"by_me: you promised; to_me: they promised; question: an open question"},"text":{"description":"One line","type":"string"},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"YYYY-MM-DD; null clears"}},"required":["kind","text"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/brief":{"get":{"operationId":"getPeopleBy_personIdBrief","tags":["People"],"summary":"What to remember before you meet someone","description":"From your own notes: lastMeetup ({ id, occurredAt, channel, mode, note, plans } or null), openFollowUps (at most 5, as GET /follow-ups), moodTrail (how they seemed at your last 6 rated meetups, oldest first: [{ interactionId, occurredAt, mood 1-5 }]), moodAndFeeling (your last 12 meetups with them that have a rating, oldest first: [{ interactionId, occurredAt, mood 1-5 or null (how they seemed), feel 1-5 or null (how it felt for you) }]), interests, character, birthdaySoon ({ on: YYYY-MM-DD, inDays, turns } within 30 days, else null), metOn. Use it to prepare a meetup or suggest topics.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/home/dismissals":{"post":{"operationId":"postHomeDismissals","tags":["Account"],"summary":"Hide a home alert or suggestion for good","description":"kind mood: key from GET /home alerts[].key (a later low meetup shows a new alert). kind interest: key from GET /home suggestion.key (the interest; any case). Example: { \"kind\": \"interest\", \"key\": \"climbing\" }","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["mood","interest"]},"key":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","key"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/sort-note":{"post":{"operationId":"postAiSortNote","tags":["AI"],"summary":"Sort one \"What you talked about\" note into plans, decisions, open questions and promises, for review","description":"Sent to the AI service this server is set up with (its name is `aiService` in GET /settings), and only on this call: the note text, the first word of each name in `people` (names with an @ are dropped), and today's date in your time zone. No emails, no full names, no other notes; nothing is saved. Needs AI help on (PUT /settings/ai-help) and a server with a key (else 404 feature_off). At most 50 calls per 24 hours (429). Returns { note, plans, decisions, openQuestions, promisedByMe, promisedToMe }: note is what stays, the others are lines to append to those fields; show them to the human and save with PATCH /interactions/{interactionId} only after they agree. 502 ai_failed when the AI did not answer.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":8000},"people":{"default":[],"description":"Names of who was there; only first names are sent","maxItems":100,"type":"array","items":{"type":"string","maxLength":200}}},"required":["note"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/ai/ideas":{"post":{"operationId":"postPeopleBy_personIdAiIdeas","tags":["AI"],"summary":"Ideas for next time with someone: questions to ask or things to follow up on, for review","description":"Sent to the same AI service, and only on this call: from your last 3 meetups with this person that have notes, the date and the text of \"What you talked about\", \"Plans\" and \"Open questions\", as you wrote them (names in them included); the first word of the person's name; their shared interests; today's date in your time zone. No emails, no full names, no \"What they are like\", no moods or ratings, no other fields; nothing is saved. Needs AI help on (PUT /settings/ai-help) and a server with a key (else 404 feature_off). Shares the cap of POST /ai/sort-note: at most 50 AI calls per 24 hours (429). 400 no_notes when no recent meetup with them has notes. Returns { ideas: string[] }: 0 to 3 lines of at most 200 characters, in the language of the notes. Show them to the human; add one only after they choose it, with POST /people/{personId}/open-questions. 502 ai_failed when the AI did not answer.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/people/{personId}/open-questions":{"post":{"operationId":"postPeopleBy_personIdOpenQuestions","tags":["Follow-ups"],"summary":"Add an open question about someone, as a follow-up","description":"Appends text as a new line to \"Open questions\" of your latest meetup with them (of any kind), which makes it a follow-up (GET /follow-ups). At a group meetup the line starts with their first name and a colon, so it is about them. The same line twice adds nothing. Line breaks become spaces. Use it for an idea from POST /people/{personId}/ai/ideas the human chose. With no meetup with them, it is a follow-up by itself (interactionId null). Returns { followUpId, interactionId }. 400 full when the open questions of that meetup are full. Nothing is sent anywhere.","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"description":"The question or reminder, one line","type":"string","maxLength":1000}},"required":["text"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/settings/ai-help":{"put":{"operationId":"putSettingsAiHelp","tags":["Settings"],"summary":"Turn AI help (Sort with AI, Ideas for next time) on or off","description":"Off by default. On lets POST /ai/sort-note and POST /people/{personId}/ai/ideas run. Sort with AI: Sent to the AI service this server is set up with (its name is `aiService` in GET /settings), and only on this call: the note text, the first word of each name in `people` (names with an @ are dropped), and today's date in your time zone. No emails, no full names, no other notes; nothing is saved. Ideas for next time: Sent to the same AI service, and only on this call: from your last 3 meetups with this person that have notes, the date and the text of \"What you talked about\", \"Plans\" and \"Open questions\", as you wrote them (names in them included); the first word of the person's name; their shared interests; today's date in your time zone. No emails, no full names, no \"What they are like\", no moods or ratings, no other fields; nothing is saved. Turning it on is the human's choice: ask first. 404 feature_off when the server has no key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings":{"get":{"operationId":"getMeetings","tags":["Meetings"],"summary":"Meetings you organize or were invited to, soonest first","description":"`next`: start of the next scheduled date (epoch ms) or null. `myStatus`: invited, accepted, declined.","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postMeetings","tags":["Meetings"],"summary":"Create a meeting and invite people, groups or email addresses","description":"The meeting starts in finding_time. Then GET /meetings/{meetingId}/times for free slots, and POST …/confirm (one time) or …/poll (2 to 4 options). Invitations go out by email at once.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Notes for everyone"},"durationMin":{"type":"integer","minimum":5,"maximum":1440},"where":{"type":"string","enum":["in_person","google_meet","teams","jitsi","link"],"description":"google_meet and teams need a connected calendar of that provider"},"location":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"For in_person"},"videoUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"For link"},"repeat":{"default":"none","type":"string","enum":["none","weekly","biweekly","monthly"]},"searchDays":{"default":14,"type":"integer","minimum":1,"maximum":60,"description":"How many days ahead to look for a time"},"people":{"default":[],"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"description":"personId values from GET /people"},"groups":{"default":[],"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"description":"Group ids: invites their active members"},"emails":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":254},"description":"Guests without an account"}},"required":["title","durationMin","where"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}":{"get":{"operationId":"getMeetingsBy_meetingId","tags":["Meetings"],"summary":"One meeting: details, the participants you may see, dates, open poll and your RSVPs","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchMeetingsBy_meetingId","tags":["Meetings"],"summary":"Organizer: change any of title, description, durationMin, where, location, videoUrl, repeat, searchDays, people, groups, emails for the whole meeting","description":"Fields left out keep their value. people, groups and emails replace the invitations: new people are invited, people left out get a notice. A new repeat applies from the next date: a series that already had dates continues as a new meeting (meetingId in the answer). searchDays changes only while the meeting is finding a time; a group meeting keeps its place, link and members. google_meet and teams make a new link at the calendar push.","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Notes for everyone"},"durationMin":{"type":"integer","minimum":5,"maximum":1440},"where":{"type":"string","enum":["in_person","google_meet","teams","jitsi","link"],"description":"google_meet and teams need a connected calendar of that provider"},"location":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"For in_person"},"videoUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"For link"},"repeat":{"type":"string","enum":["none","weekly","biweekly","monthly"]},"searchDays":{"type":"integer","minimum":1,"maximum":60,"description":"How many days ahead to look for a time"},"people":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"description":"personId values from GET /people"},"groups":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"description":"Group ids: invites their active members"},"emails":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":254},"description":"Guests without an account"}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/times":{"get":{"operationId":"getMeetingsBy_meetingIdTimes","tags":["Meetings"],"summary":"Organizer: free times for everyone who shares availability","description":"kind is slots, least_bad (nobody fully free; ranked by who can come), organizer_calendar_failed or no_organizer_time. Rate limited per hour.","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/confirm":{"post":{"operationId":"postMeetingsBy_meetingIdConfirm","tags":["Meetings"],"summary":"Organizer: confirm the start time (sends the confirmation and calendar invites)","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"description":"Epoch milliseconds, or ISO 8601 with an offset, e.g. 2026-11-03T18:30:00+01:00","anyOf":[{"type":"integer","minimum":0,"maximum":8640000000000000},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["startsAt"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/poll":{"post":{"operationId":"postMeetingsBy_meetingIdPoll","tags":["Meetings"],"summary":"Organizer: let invitees vote on 2 to 4 start times","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"starts":{"minItems":2,"maxItems":4,"type":"array","items":{"description":"Epoch milliseconds, or ISO 8601 with an offset, e.g. 2026-11-03T18:30:00+01:00","anyOf":[{"type":"integer","minimum":0,"maximum":8640000000000000},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}}},"required":["starts"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/cancel":{"post":{"operationId":"postMeetingsBy_meetingIdCancel","tags":["Meetings"],"summary":"Organizer: cancel the whole meeting (tells everyone)","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/respond":{"post":{"operationId":"postMeetingsBy_meetingIdRespond","tags":["Meetings"],"summary":"Invitee: accept or decline","description":"Accepting lets the organizer see when you are free or busy (never what you do) between the meeting's search dates.","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accept":{"type":"boolean"}},"required":["accept"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/rsvp":{"post":{"operationId":"postMeetingsBy_meetingIdRsvp","tags":["Meetings"],"summary":"Participant: RSVP to one date of a meeting","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"occurrenceId":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"status":{"type":"string","enum":["yes","no","maybe"]}},"required":["occurrenceId","status"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/meetings/{meetingId}/join":{"post":{"operationId":"postMeetingsBy_meetingIdJoin","tags":["Groups"],"summary":"Group member: opt in to a group meeting series","parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/occurrences/{occurrenceId}/move":{"post":{"operationId":"postOccurrencesBy_occurrenceIdMove","tags":["Meetings"],"summary":"Organizer: move one date","parameters":[{"name":"occurrenceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"description":"Epoch milliseconds, or ISO 8601 with an offset, e.g. 2026-11-03T18:30:00+01:00","anyOf":[{"type":"integer","minimum":0,"maximum":8640000000000000},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["startsAt"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/occurrences/{occurrenceId}/split":{"post":{"operationId":"postOccurrencesBy_occurrenceIdSplit","tags":["Meetings"],"summary":"Organizer: move this date and every later one of a series","description":"Returns the meeting that carries the series on (a new id unless this is the first date).","parameters":[{"name":"occurrenceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"description":"Epoch milliseconds, or ISO 8601 with an offset, e.g. 2026-11-03T18:30:00+01:00","anyOf":[{"type":"integer","minimum":0,"maximum":8640000000000000},{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}]}},"required":["startsAt"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/occurrences/{occurrenceId}/cancel":{"post":{"operationId":"postOccurrencesBy_occurrenceIdCancel","tags":["Meetings"],"summary":"Organizer: cancel one date","parameters":[{"name":"occurrenceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups":{"get":{"operationId":"getGroups","tags":["Groups"],"summary":"Groups you belong to or asked to join","responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postGroups","tags":["Groups"],"summary":"Create a group (you become its owner)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"joinPolicy":{"type":"string","enum":["open","request","invite"]}},"required":["name","joinPolicy"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{slug}":{"get":{"operationId":"getGroupsBy_slug","tags":["Groups"],"summary":"One group by slug: members and meetings when you are an active member, else the join view","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}":{"patch":{"operationId":"patchGroupsBy_groupId","tags":["Groups"],"summary":"Admin: change the group's name, description or who can join; fields you leave out keep their value","description":"The slug stays, so links shared before a rename keep working. description null clears it.","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"joinPolicy":{"type":"string","enum":["open","request","invite"]}}}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/join":{"post":{"operationId":"postGroupsBy_groupIdJoin","tags":["Groups"],"summary":"Join (open group) or ask to join (request group)","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/leave":{"post":{"operationId":"postGroupsBy_groupIdLeave","tags":["Groups"],"summary":"Leave a group (the last member leaving deletes it)","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/subscription":{"put":{"operationId":"putGroupsBy_groupIdSubscription","tags":["Groups"],"summary":"Get or stop emails about new group meetings","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subscribed":{"type":"boolean"}},"required":["subscribed"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/members/{userId}/approve":{"post":{"operationId":"postGroupsBy_groupIdMembersBy_userIdApprove","tags":["Groups"],"summary":"Admin: approve a join request","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/image":{"put":{"operationId":"putGroupsBy_groupIdImage","tags":["Groups"],"summary":"Admin: set the group's picture (members and anyone who can open the join page see it)","description":"GET the picture (WebP; with none, a 1×1 transparent PNG and the header `x-avatar: none`) with the same session. `?s=thumb` gives the 128 px version. Path: /api/avatars/group/{groupId}.","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","minLength":1,"maxLength":11534336},"crop":{"description":"A square to keep, as fractions of the picture: {left, top, width, height}","type":"object","properties":{"left":{"type":"number","minimum":0,"maximum":1},"top":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","exclusiveMinimum":0,"maximum":1},"height":{"type":"number","exclusiveMinimum":0,"maximum":1}},"required":["left","top","width","height"]}},"required":["image"]}}}},"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteGroupsBy_groupIdImage","tags":["Groups"],"summary":"Admin: remove the group's picture","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/invitations":{"post":{"operationId":"postGroupsBy_groupIdInvitations","tags":["Groups"],"summary":"Admin: invite someone by email","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254}},"required":["email"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/group-invitations/{token}/accept":{"post":{"operationId":"postGroupInvitationsBy_tokenAccept","tags":["Groups"],"summary":"Accept a group invitation (the token is the last part of the /g/<token> link)","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":100,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/groups/{groupId}/meetings":{"post":{"operationId":"postGroupsBy_groupIdMeetings","tags":["Groups"],"summary":"Admin: start a group meeting series (members opt in; people and emails are invited as well)","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"description":"Notes for everyone"},"durationMin":{"type":"integer","minimum":5,"maximum":1440},"where":{"default":"jitsi","type":"string","enum":["in_person","google_meet","teams","jitsi","link"],"description":"google_meet and teams need a connected calendar of that provider"},"location":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"For in_person"},"videoUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"For link"},"repeat":{"type":"string","enum":["none","weekly","biweekly","monthly"]},"searchDays":{"default":14,"type":"integer","minimum":1,"maximum":60,"description":"How many days ahead to look for a time"},"people":{"default":[],"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[\\w-]+$"},"description":"personId values from GET /people"},"emails":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":254},"description":"Guests without an account"}},"required":["title","durationMin","repeat"]}}}},"responses":{"201":{"description":"Success (JSON)","content":{"application/json":{"schema":{}}}},"400":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in: open /sign-in in the browser"},"404":{"description":"Refused; see error.code and error.message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"Set by signing in at /sign-in (prefixed __Secure- on https)."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"issues":{}}}}}}}}