{"openapi":"3.1.0","info":{"title":"GalleryQR API for assistants","version":"1","description":"Do a person's GalleryQR setup for them: create the event, change its settings and info, add co-hosts, design the QR code, check uploads and approve photos. The person signs in and approves your access once; they connect storage and pay themselves. Anything that costs money returns a link for them. HTTP-only agents sign in with the device flow (RFC 8628): POST https://galleryqr.com/api/auth/device/code with client_id=ai-assistant and scope=\"events:read events:write offline_access\", show the person the user_code and https://galleryqr.com/connect, then poll https://galleryqr.com/api/auth/oauth2/token. MCP clients connect to https://galleryqr.com/mcp and sign in with OAuth."},"servers":[{"url":"https://galleryqr.com"}],"components":{"securitySchemes":{"assistant":{"type":"oauth2","description":"Device flow: https://galleryqr.com/api/auth/device/code, verification at https://galleryqr.com/connect. Discovery: https://galleryqr.com/.well-known/oauth-authorization-server.","flows":{"authorizationCode":{"authorizationUrl":"https://galleryqr.com/api/auth/oauth2/authorize","tokenUrl":"https://galleryqr.com/api/auth/oauth2/token","refreshUrl":"https://galleryqr.com/api/auth/oauth2/token","scopes":{"events:read":"See the person's events, settings and upload counts","events:write":"Create and change the person's events","offline_access":"Stay connected until the person removes the assistant"}}}}}},"paths":{"/api/v1/attention":{"get":{"operationId":"get_attention","summary":"What needs attention","description":"One check-in for running events without opening the app: storage that is missing, full or needs reconnecting, photos and guestbook messages waiting for approval, and test uploads that ran out. Each item names the tool that handles it or the link the person opens. Leave out eventId to check every event the person owns or co-hosts.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events":{"get":{"operationId":"list_my_events","summary":"List my events","description":"The events the person owns or co-hosts, with their gallery links. Start here to find an event's id.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"post":{"operationId":"create_event","summary":"Create an event","description":"Creates a photo gallery event in the person's account. It saves every file to each storage account they have connected that works right now. Needs only a name. If they have not connected Google Drive, OneDrive or Dropbox yet, this returns the link where they do it. Guests can upload as soon as the event exists. When waitingForStorage is true nothing is connected to it yet: photos stay in the gallery and copy over once the person connects storage at storageUrl.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":false,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":3,"description":"The event name guests see."}},"required":["name"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/storage":{"get":{"operationId":"list_storage_destinations","summary":"List connected storage","description":"The Google Drive, OneDrive and Dropbox accounts the person connected. A new event saves to every one that does not need reconnecting. Connecting one is the person's step.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}":{"get":{"operationId":"get_event","summary":"Get an event","description":"An event's settings, links and info sections, and whether it is paid: a gallery that isn't unlocked yet says how many of its owner's test uploads are used (counted across all of that account's galleries), and its owner gets the link where they pay the $39 unlock for unlimited photos and videos in every gallery they own.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"patch":{"operationId":"update_event_settings","summary":"Change event settings","description":"Changes an event's name, date, location, look (theme color, light or dark, font pairing) and guest access: whether the link is live, guests can browse, uploads are open, uploads wait for approval, and the guestbook is on. Only the fields you send change.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":3},"eventDate":{"description":"The day of the event as YYYY-MM-DD. Guests see it under the name in their own date format. null removes it.","anyOf":[{"type":"string"},{"type":"string","const":""},{"type":"null"}]},"location":{"description":"Where the event is, as a short place name like \"Hotel Figueroa, Los Angeles\". Guests can open it in their maps app. null removes it.","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"themeColor":{"type":"string","enum":["gray","red","pink","purple","violet","indigo","blue","cyan","teal","green","grass","orange","brown","sky","mint","lime","yellow","amber","gold","bronze","crimson","plum","tomato","sage","olive","sand","slate","charcoal","canvas","paper","garnet","apricot","cocoa","midnight"]},"themeMode":{"type":"string","enum":["light","dark","auto"]},"palette":{"description":"Sets the theme color and light or dark together; send it without themeColor and themeMode.","type":"string","enum":["light","dark","paper","ink","slate","charcoal","garnet","jade","cocoa","midnight"]},"fontPairing":{"type":"string","enum":["heirloom","poise","inscription","cadence","muse","studio","modern","gather","vow","ribbon","correspondence","invitation","inherit","elegant-modern","artistic-refined","modern-minimal","playful-handwritten","romantic-classic","artistic-signature","casual-friendly"]},"linkLive":{"description":"Off takes the gallery link offline for everyone.","type":"boolean"},"guestsCanBrowse":{"description":"Off makes the gallery upload-only for guests.","type":"boolean"},"acceptingUploads":{"type":"boolean"},"approveFirst":{"description":"New guest uploads wait for the host before other guests see them.","type":"boolean"},"guestbookOn":{"description":"Guests can leave written, voice or video messages.","type":"boolean"}},"required":[]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"delete":{"operationId":"delete_event","summary":"Delete an event","description":"Deletes the gallery for good: its link stops working and every photo, video, guestbook message, QR design and print order record in it is removed. Copies already saved in each host's storage stay there. Owner only. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"confirm","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/sections":{"put":{"operationId":"set_info_sections","summary":"Set the event's info sections","description":"Replaces the info shown above the gallery with this list, in order: text sections (schedule, a welcome note) and link sections (registry, livestream). Send an empty list to remove them all.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sections":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"title":{"type":"string"},"content":{"type":"string","minLength":1}},"required":["type","content"]},{"type":"object","properties":{"type":{"type":"string","const":"link"},"title":{"type":"string"},"content":{"description":"The link address; HTTPS is added if omitted.","type":"string"}},"required":["type","content"]}]}}},"required":["sections"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/cohosts":{"get":{"operationId":"list_cohosts","summary":"List co-hosts","description":"The people who help run an event. Owner only. Adding co-hosts needs the $39 unlock.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"post":{"operationId":"add_cohost","summary":"Add a co-host","description":"Lets someone help run the event: they sign in with this email to see and manage photos. Owner only, and only after the $39 unlock; otherwise this returns the link where the person pays. We email them the first time they are added to this event.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/cohosts/{cohostId}":{"delete":{"operationId":"remove_cohost","summary":"Remove a co-host","description":"Ends a co-host's access to the event at once. Owner only. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cohostId","in":"path","required":true,"schema":{"type":"string"}},{"name":"confirm","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/leave":{"post":{"operationId":"leave_event","summary":"Stop co-hosting an event","description":"The person stops helping run an event they co-host: they lose access and the gallery stops saving to their storage. The owner cannot leave their own event. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirm":{"anyOf":[{"type":"boolean","const":true},{"type":"string","const":"true"}],"description":"Ask the person first, then send true."}},"required":["confirm"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/storage":{"get":{"operationId":"get_event_storage","summary":"Check where photos are saved","description":"Every Google Drive, OneDrive or Dropbox account this gallery saves to, how many of its files each one holds, and why a copy is stuck (reconnect, full or behind). Co-hosts see only their own accounts. Also lists the person's own accounts the gallery could add (use add_event_storage) and the links where they connect or reconnect an account themselves.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"post":{"operationId":"add_event_storage","summary":"Save the gallery to another account","description":"Turns on one of the person's own connected accounts for this gallery, from accountsToAdd in get_event_storage. Files already in the gallery copy there too. An account they have not connected yet needs its link from get_event_storage first.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"connectionId":{"type":"string","minLength":1,"description":"An accountsToAdd connectionId from get_event_storage."}},"required":["connectionId"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/storage/{destinationId}":{"delete":{"operationId":"remove_event_storage","summary":"Stop saving to an account","description":"Stops saving this gallery's new files to one of the person's own accounts. Files already saved there stay. A gallery keeps at least one place to save. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"destinationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"confirm","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/qr-designs":{"get":{"operationId":"list_qr_designs","summary":"List QR designs","description":"The event's saved QR code designs (cards, stickers, table displays), plus the formats, font pairings and backgrounds a design can use.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}},"post":{"operationId":"save_qr_design","summary":"Design the QR code","description":"Creates a QR code design for printing, or changes one when designId is given. Choose the layout (format and orientation), style (font pairing), whether the event name shows, the instruction line, a personal note and a background. Only the fields you send change.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"designId":{"description":"Leave out to make a new design.","type":"string"},"name":{"type":"string","minLength":1},"format":{"type":"string","enum":["sticker-2x2","sticker-3x3","sticker-circle-3","card-oak-6x4","business-card-us","card-4x6","tent-card-4x6","sticker-sheet-us"]},"orientation":{"type":"string","enum":["horizontal","vertical"]},"fontPairing":{"type":"string","enum":["elegant-modern","artistic-refined","modern-minimal","playful-handwritten","romantic-classic","artistic-signature","casual-friendly"]},"showEventName":{"type":"boolean"},"instructions":{"description":"The line under the code. An empty string hides it.","type":"string"},"note":{"description":"A personal note on the card. An empty string hides it.","type":"string"},"background":{"description":"One of the background images, or none.","type":"string","enum":["Abstract Flowing Composition","Blue Floral Pattern","Delicate Pink Flowers","Elegant Bird Illustration","Minimalist Flower Art","none"]}},"required":[]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/qr":{"get":{"operationId":"get_qr_image","summary":"Get the QR code image","description":"Print-ready images of the event's QR code: the plain code at 2048px, and with a designId the design's finished artwork, drawn exactly as it prints. Show the artwork to the person as the preview of their card.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"designId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/print-products":{"get":{"operationId":"list_print_products","summary":"List print products and prices","description":"Printed cards, stickers and table displays the person can order, with prices for a delivery country. Prices include shipping. Each product lists the design formats it prints (designFormats); give a designId to see only products that fit that design.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"country","in":"query","required":true,"schema":{"type":"string"}},{"name":"designId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/print-orders":{"post":{"operationId":"start_print_order","summary":"Start a print order","description":"Checks that a product, quantity and design fit together, draws the print artwork, and returns a preview of it with the link where the person pays. Nothing is charged here; paying is always the person's step.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"designId":{"type":"string","minLength":1},"product":{"type":"string","enum":["prodigi-postcard-6x4","gallery-board-6x4","sticker-2x2","sticker-3x3","business-card-us","postcard-4x6"]},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["designId","product","quantity"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/print-orders":{"get":{"operationId":"list_print_orders","summary":"List print orders","description":"Printed card orders on the events the person owns or co-hosts, newest first, with its status (PENDING, PAID, PROCESSING, FULFILLED, SHIPPED, DELIVERED, FAILED or CANCELLED) and tracking links. Each status is checked with the print provider, and a changed one is saved.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/guestbook":{"get":{"operationId":"list_guestbook","summary":"Read the guestbook","description":"Every guestbook message, newest first: written messages with their text, voice and video messages with a link to play them. Messages waiting for approval are included and marked; approve them with approve_photos and delete them with delete_photos. Pass nextCursor back for more.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/guests":{"get":{"operationId":"list_guests","summary":"List guests who added photos","description":"Everyone who added photos or videos to the gallery, with how many of each and when they last added one. Use a guestId with list_photos to see one guest's photos.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/photos":{"get":{"operationId":"list_photos","summary":"List photos","description":"The gallery's photos and videos, newest first, with links to look at each one. Filter by guest (guestId from list_guests) or by photos or videos. Uploads waiting for approval are included and marked. Pages of up to 100; pass nextCursor back for more. favorites: true lists all of the person's favorites at once and ignores the other filters.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"guestId","in":"query","required":false,"schema":{"type":"string"}},{"name":"media","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"favorites","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/favorites":{"post":{"operationId":"favorite_photos","summary":"Mark favorites","description":"Marks photos as the person's favorites, or unmarks them with favorite: false. Their favorites list is list_photos with favorites: true; each host has their own.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"photoIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"favorite":{"type":"boolean"}},"required":["photoIds","favorite"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/photos/delete":{"post":{"operationId":"delete_photos","summary":"Delete photos","description":"Deletes photos, videos or guestbook messages from the gallery for good, and moves the copies saved in each host's storage to that storage's trash. Use ids from list_photos, list_photos_awaiting_approval or list_guestbook. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"photoIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"confirm":{"anyOf":[{"type":"boolean","const":true},{"type":"string","const":"true"}],"description":"Ask the person first, then send true."}},"required":["photoIds","confirm"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/uploads":{"get":{"operationId":"get_upload_counts","summary":"Upload counts","description":"How many photos and videos guests added and how many wait for approval, the same for guestbook messages, and how many files reached the person's storage.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/awaiting-approval":{"get":{"operationId":"list_photos_awaiting_approval","summary":"Photos awaiting approval","description":"Guest uploads that wait for the host before other guests see them, when approve-first is on. Each has a thumbnail link.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/approve":{"post":{"operationId":"approve_photos","summary":"Approve photos","description":"Shows photos, videos or guestbook messages that were waiting for approval to every guest. Use ids from list_photos_awaiting_approval or list_guestbook.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"photoIds":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["photoIds"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/slideshow":{"get":{"operationId":"get_slideshow","summary":"Slideshow","description":"The links that play the event's photos as a slideshow on a TV or laptop, and the choices on its start screen (speed, the QR code on screen, videos in or out). The host link works while signed in; the guest link only while guests can browse.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/download":{"get":{"operationId":"get_download_link","summary":"Download all originals","description":"A link that downloads every original photo and video as one zip. It works on any device with no sign-in for one hour; after that it asks the person to sign in first. Hand it only to the person who asked.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/guests/{guestId}/rename":{"post":{"operationId":"rename_guest","summary":"Rename a guest's album","description":"Changes the name a guest's photos are filed under, in the gallery and on their folder in each host's storage.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"guestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/guests/merge":{"post":{"operationId":"merge_guests","summary":"Join guests' albums","description":"Moves every upload of the source guests into the target guest's album, for one person who used two phones or typed their name two ways. The target guest's name is kept. It cannot be undone. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"targetGuestId":{"type":"string","minLength":1,"description":"A guestId from list_guests."},"sourceGuestIds":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"confirm":{"anyOf":[{"type":"boolean","const":true},{"type":"string","const":"true"}],"description":"Ask the person first, then send true."}},"required":["targetGuestId","sourceGuestIds","confirm"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/guests/{guestId}":{"delete":{"operationId":"delete_guest_album","summary":"Delete a guest's album","description":"Deletes every photo and video one guest added to this gallery, for good, and moves the copies saved in each host's storage to that storage's trash. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}},{"name":"guestId","in":"path","required":true,"schema":{"type":"string"}},{"name":"confirm","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/duplicates":{"get":{"operationId":"list_duplicates","summary":"Find duplicate photos","description":"Photos and videos that were uploaded more than once, grouped by the same file. Each group lists every copy with who added it and links to look at it. Keep one with resolve_duplicates.","security":[{"assistant":["events:read"]}],"x-read-only":true,"x-destructive":false,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}},"/api/v1/events/{eventId}/duplicates/resolve":{"post":{"operationId":"resolve_duplicates","summary":"Keep one copy of a duplicate","description":"Keeps one copy from a list_duplicates group and deletes the others for good, with their copies in each host's storage moved to its trash. Ask the person first, then send confirm: true.","security":[{"assistant":["events:write"]}],"x-read-only":false,"x-destructive":true,"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"imageHash":{"type":"string","minLength":1,"description":"The group's imageHash."},"keepPhotoId":{"type":"string","minLength":1,"description":"The copy to keep."},"confirm":{"anyOf":[{"type":"boolean","const":true},{"type":"string","const":"true"}],"description":"Ask the person first, then send true."}},"required":["imageHash","keepPhotoId","confirm"]}}}},"responses":{"200":{"description":"Done. `message` is one sentence to tell the person.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"additionalProperties":true}}}},"400":{"description":"Invalid input, field by field","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"401":{"description":"No token, or a token the person revoked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"403":{"description":"The token lacks the scope, or only the owner can do this","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"404":{"description":"No such event for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}},"409":{"description":"A step for the person comes first; see link","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"link":{"type":"string","description":"Where the person finishes a step the assistant cannot: connect storage, pay."}},"required":["error"]}}}}}}}}}