{"openapi":"3.1.0","info":{"title":"FlatMeta API","version":"2.0.0","description":"The FlatMeta REST API: explore the world map, search and manage plots, organisations, game progress and billing.\n\nAuthenticate with a session cookie (web app) or `Authorization: Bearer fm_live_…` (API keys from Dashboard → Developers). An MCP server is available at `/mcp`."},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key: fm_live_…"},"session":{"type":"apiKey","in":"cookie","name":"fm_session"}},"schemas":{}},"paths":{"/v1/health":{"get":{"summary":"Health: database, Redis, release, uptime","tags":["world"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/request-code":{"post":{"summary":"Email a 6-digit sign-in code","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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":"Default Response"}}}},"/v1/auth/verify-code":{"post":{"summary":"Sign in (or sign up) with the emailed code; sets the session cookie","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"code":{"type":"string","pattern":"^\\d{6}$"},"displayName":{"type":"string","minLength":2,"maxLength":40},"countryHint":{"type":"string","minLength":2,"maxLength":2},"ref":{"type":"string","maxLength":16},"signupFrom":{"type":"string","maxLength":400},"landingPath":{"type":"string","maxLength":400},"landingSource":{"type":"string","maxLength":120}},"required":["email","code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/password-login":{"post":{"summary":"Sign in with email and password (only for accounts that set one; the email code always works)","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"password":{"type":"string","minLength":1,"maxLength":200}},"required":["email","password"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/password":{"put":{"summary":"Set, change or remove my password. Changing needs the current password; setting the first one needs a fresh emailed code.","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"anyOf":[{"type":"string","minLength":10,"maxLength":200},{"type":"null"}]},"current":{"type":"string","maxLength":200},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["password"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/logout":{"post":{"summary":"Sign out","tags":["auth"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/google":{"get":{"summary":"Start Google sign-in","tags":["auth"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"next","required":false},{"schema":{"type":"string","maxLength":400},"in":"query","name":"lp","required":false},{"schema":{"type":"string","maxLength":120},"in":"query","name":"src","required":false},{"schema":{"type":"string","maxLength":16},"in":"query","name":"ref","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/password-reset":{"post":{"summary":"Email a one-time password reset link (same answer whether or not the account exists)","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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":"Default Response"}}}},"/v1/auth/password-reset/confirm":{"post":{"summary":"Set a new password with the emailed link; signs out every device","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200},"password":{"type":"string","minLength":10,"maxLength":200}},"required":["token","password"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/email":{"post":{"summary":"Change my email: needs my current password (or a code sent to my current address); a link sent to the new address confirms it","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"current":{"type":"string","maxLength":200},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["email"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/email-change/confirm":{"post":{"summary":"Confirm a new email address with the emailed link; tells the old address and signs out every device","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me":{"get":{"summary":"The signed-in user (or null)","tags":["me"],"responses":{"200":{"description":"Default Response"}}},"patch":{"summary":"Update my profile","tags":["me"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","minLength":2,"maxLength":40},"username":{"type":"string","pattern":"^[a-zA-Z0-9_]{3,20}$"},"bio":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}]},"homeCountry":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}]},"weeklyEmail":{"type":"boolean"},"avatar":{"anyOf":[{"type":"object","properties":{"face":{"type":"string","minLength":1,"maxLength":8},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accessory":{"type":"string","maxLength":8},"style":{"type":"string","enum":["classic","bubble","pixel","neon","ghost"]}},"required":["face","color"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/avatar":{"post":{"summary":"Upload an avatar (multipart \"file\")","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/plots":{"get":{"summary":"Plots I own (personally or through my organisations)","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/progress":{"get":{"summary":"XP, level, quests and achievements","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/checkin":{"post":{"summary":"Daily check-in (grows your streak)","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/quests/{id}/claim":{"post":{"summary":"Claim a completed quest reward","tags":["me"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/tour":{"post":{"summary":"Mark the guided tour as done","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/share":{"post":{"summary":"Record a share (XP + quests)","tags":["me"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string","maxLength":40},"channel":{"type":"string","maxLength":20}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/approx-location":{"get":{"summary":"Start position for the map (saved, approximate from the network, or a safe default)","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/handles/{handle}":{"get":{"summary":"Who a @handle is and their public plots","tags":["me"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9_-]+$"},"in":"path","name":"handle","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/handles/{handle}/available":{"get":{"summary":"Can I take this handle?","tags":["me"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":40},"in":"path","name":"handle","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/notifications":{"get":{"summary":"My notifications","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/notifications/read":{"post":{"summary":"Mark notifications read","tags":["me"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/api-keys":{"get":{"summary":"My API keys","tags":["me"],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Create an API key (shown once)","tags":["me"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"scopes":{"default":["plots:read","plots:write"],"type":"array","items":{"type":"string","enum":["plots:read","plots:write","*"]}},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/me/api-keys/{id}":{"delete":{"summary":"Revoke an API key","tags":["me"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/world/plots":{"get":{"summary":"Plots in a map viewport (lightweight)","tags":["world"],"parameters":[{"schema":{"type":"string","pattern":"^-?[\\d.]+,-?[\\d.]+,-?[\\d.]+,-?[\\d.]+$"},"in":"query","name":"bbox","required":true},{"schema":{"type":"number","minimum":0,"maximum":24},"in":"query","name":"zoom","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots":{"get":{"summary":"List and search published plots","tags":["plots"],"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"region","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"category","required":false},{"schema":{"type":"string","enum":["standard","homestead","showcase","landmark","business"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"owner","required":false},{"schema":{"default":"trending","type":"string","enum":["trending","new","loved","nearest"]},"in":"query","name":"sort","required":false},{"schema":{"type":"number"},"in":"query","name":"lat","required":false},{"schema":{"type":"number"},"in":"query","name":"lng","required":false},{"schema":{"default":24,"type":"integer","minimum":1,"maximum":60},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/nearest":{"get":{"summary":"Nearest public plots (landmarks, showcase, published) to a point","tags":["plots"],"parameters":[{"schema":{"type":"number","minimum":-85,"maximum":85},"in":"query","name":"lat","required":true},{"schema":{"type":"number","minimum":-180,"maximum":180},"in":"query","name":"lng","required":true},{"schema":{"default":5,"type":"integer","minimum":1,"maximum":12},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{idOrSlug}":{"get":{"summary":"Get a plot (mini-page data)","tags":["plots"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"idOrSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{idOrSlug}/neighbours":{"get":{"summary":"Neighbouring and nearby plots","tags":["plots"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"idOrSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{idOrSlug}/cover.jpg":{"get":{"summary":"Plot cover as JPEG (for share cards)","tags":["plots"],"parameters":[{"schema":{"default":1200,"type":"integer","minimum":64,"maximum":1600},"in":"query","name":"w","required":false},{"schema":{"type":"string","maxLength":80},"in":"path","name":"idOrSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/quote":{"post":{"summary":"Price, tier and availability for a rectangle of cells","tags":["plots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"minGx":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minGy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxGx":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxGy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["minGx","minGy","maxGx","maxGy"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/claim":{"post":{"summary":"Claim a free Homestead or start checkout for paid land","tags":["plots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rect":{"type":"object","properties":{"minGx":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minGy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxGx":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxGy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["minGx","minGy","maxGx","maxGy"]},"title":{"type":"string","minLength":2,"maxLength":80},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["rect"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}":{"patch":{"summary":"Update plot content","tags":["plots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":80},"tagline":{"anyOf":[{"type":"string","maxLength":140},{"type":"null"}]},"descriptionMd":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"customHtml":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}]},"links":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500}},"required":["label","url"]}},"cta":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500}},"required":["label","url"]},{"type":"null"}]},"category":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"tags":{"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":24}},"theme":{"anyOf":[{"type":"object","properties":{"primary":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["primary","accent"]},{"type":"null"}]},"frame":{"type":"string","maxLength":20},"coverMediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"galleryMediaIds":{"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"galleryRemove":{"type":"string","maxLength":500},"guestbookOpen":{"type":"boolean"},"business":{"anyOf":[{"type":"object","properties":{"phone":{"type":"string","maxLength":40},"email":{"type":"string","maxLength":120,"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,}$"},"address":{"type":"string","maxLength":200},"hours":{"type":"object","propertyNames":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"additionalProperties":{"maxItems":3,"type":"array","items":{"type":"array","prefixItems":[{"type":"string","pattern":"^\\d{2}:\\d{2}$"},{"type":"string","pattern":"^\\d{2}:\\d{2}$"}],"items":false,"minItems":2,"maxItems":2}},"required":["mon","tue","wed","thu","fri","sat","sun"]},"timezone":{"type":"string","maxLength":60},"bookingUrl":{"type":"string","maxLength":500},"offer":{"type":"string","maxLength":140}}},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/publish":{"post":{"summary":"Publish a plot (runs moderation)","tags":["plots"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/media":{"post":{"summary":"Upload an image (multipart field \"file\"); use=cover|gallery applies it","tags":["plots"],"parameters":[{"schema":{"default":"none","type":"string","enum":["cover","gallery","none"]},"in":"query","name":"use","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/like":{"post":{"summary":"Like a plot","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Remove a like","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/visit":{"post":{"summary":"Record a visit to a plot page","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/visitors":{"get":{"summary":"Unique visitors today and this week","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/wave":{"post":{"summary":"Wave at a plot (once a day)","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/guestbook":{"get":{"summary":"Guestbook entries","tags":["social"],"parameters":[{"schema":{"default":20,"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Sign the guestbook","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":280}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/guestbook/{id}":{"delete":{"summary":"Delete a guestbook entry (author, plot owner or staff)","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/report":{"post":{"summary":"Report a plot (or only its custom HTML)","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":500},"about":{"default":"plot","type":"string","enum":["plot","custom_html"]}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/countries":{"get":{"summary":"All countries with land stats","tags":["regions"],"responses":{"200":{"description":"Default Response"}}}},"/v1/countries/{code}":{"get":{"summary":"A country page","tags":["regions"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/countries/{code}/visit":{"post":{"summary":"Record a country visit","tags":["regions"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/regions":{"get":{"summary":"Featured cities","tags":["regions"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/regions/{slug}":{"get":{"summary":"A city page","tags":["regions"],"parameters":[{"schema":{"type":"string","maxLength":60},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/regions/{slug}/visit":{"post":{"summary":"Record a city visit","tags":["regions"],"parameters":[{"schema":{"type":"string","maxLength":60},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sitemap":{"get":{"summary":"Public URLs for the sitemap","tags":["regions"],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{username}":{"get":{"summary":"Public profile","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{username}/follow":{"post":{"summary":"Follow an explorer","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Unfollow","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/leaderboards/{board}":{"get":{"summary":"Leaderboards: xp, xp-week, xp-country, cells-country, plots-loved","tags":["social"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["xp","xp-week","xp-country","cells-country","plots-loved"]},"in":"path","name":"board","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/game/catalogue":{"get":{"summary":"All achievements and quests","tags":["social"],"responses":{"200":{"description":"Default Response"}}}},"/v1/connections":{"get":{"summary":"My connections, requests and blocked players","tags":["social"],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Ask a player to connect (accepts if they already asked you)","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","minLength":3,"maxLength":20}},"required":["username"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/connections/{id}/accept":{"post":{"summary":"Accept a connection request","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/connections/{id}":{"delete":{"summary":"Decline a request or remove a connection","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{username}/block":{"post":{"summary":"Block a player","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Unblock a player","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/users/{username}/relation":{"get":{"summary":"How I am connected to a player","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/chat/nearby":{"get":{"summary":"Last day of chat near a point","tags":["social"],"parameters":[{"schema":{"type":"number","minimum":-85,"maximum":85},"in":"query","name":"lat","required":true},{"schema":{"type":"number","minimum":-180,"maximum":180},"in":"query","name":"lng","required":true},{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"before","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/chat/dm/{username}":{"get":{"summary":"Private chat history with a connection","tags":["social"],"parameters":[{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"before","required":false},{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Send a private message (REST fallback)","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":600}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/chat/clan":{"get":{"summary":"My clan’s chat history","tags":["social"],"parameters":[{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"before","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/chat/unread":{"get":{"summary":"Pending connection requests","tags":["social"],"responses":{"200":{"description":"Default Response"}}}},"/v1/chat/messages/{id}/report":{"post":{"summary":"Report a chat message","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":2,"maxLength":200}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans":{"get":{"summary":"Find clans","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"q","required":false},{"schema":{"default":24,"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Found a clan","tags":["clans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":30},"tag":{"type":"string","minLength":2,"maxLength":6},"description":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}]},"emblem":{"type":"object","properties":{"icon":{"type":"string","maxLength":20},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["icon","color"]}},"required":["name","tag"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/leaderboard":{"get":{"summary":"Clans ranked by total member XP","tags":["clans"],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/mine":{"get":{"summary":"My clan (or null) and my pending invites","tags":["clans"],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}":{"get":{"summary":"A clan page","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"summary":"Edit description or emblem (officers)","tags":["clans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}]},"emblem":{"type":"object","properties":{"icon":{"type":"string","maxLength":20},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["icon","color"]}}}}}},"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Disband (leader)","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}/join":{"post":{"summary":"Ask to join","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}/invite":{"post":{"summary":"Invite a player (officers)","tags":["clans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","minLength":3,"maxLength":20}},"required":["username"]}}}},"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/leave":{"post":{"summary":"Leave my clan","tags":["clans"],"responses":{"200":{"description":"Default Response"}}}},"/v1/clan-requests/{id}/accept":{"post":{"summary":"Accept an invite (invitee) or join request (officers)","tags":["clans"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clan-requests/{id}/decline":{"post":{"summary":"Decline an invite or join request","tags":["clans"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}/members/{username}/role":{"put":{"summary":"Promote or demote (leader)","tags":["clans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["officer","member"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}/members/{username}":{"delete":{"summary":"Remove a member ranked below you","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/clans/{slug}/transfer/{username}":{"post":{"summary":"Hand leadership to a member","tags":["clans"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"path","name":"slug","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/listings":{"get":{"summary":"Land for sale","tags":["marketplace"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"type":"string","enum":["S","A","B","C","O"]},"in":"query","name":"tier","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"minPrice","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"maxPrice","required":false},{"schema":{"default":"new","type":"string","enum":["new","price_asc","price_desc"]},"in":"query","name":"sort","required":false},{"schema":{"default":24,"type":"integer","minimum":1,"maximum":60},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/listings/{id}":{"get":{"summary":"One listing","tags":["marketplace"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"patch":{"summary":"Change the price of my listing","tags":["marketplace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceCents":{"type":"integer","minimum":50,"maximum":10000000}},"required":["priceCents"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Take my listing off the market","tags":["marketplace"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/listing-check":{"get":{"summary":"Can I sell this plot, and what are the limits?","tags":["marketplace"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/list":{"post":{"summary":"List a plot for sale","tags":["marketplace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"priceCents":{"type":"integer","minimum":50,"maximum":10000000}},"required":["priceCents"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/listings/{id}/buy":{"post":{"summary":"Buy a listed plot (returns a checkout URL)","tags":["marketplace"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/sales":{"get":{"summary":"My listings and sales","tags":["marketplace"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/purchases":{"get":{"summary":"Plots I bought","tags":["marketplace"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/balance":{"get":{"summary":"My seller balance, payout status and recent ledger","tags":["marketplace"],"responses":{"200":{"description":"Default Response"}}}},"/v1/payouts/connect":{"post":{"summary":"Start (or resume) payout onboarding; returns a URL","tags":["marketplace"],"responses":{"200":{"description":"Default Response"}}}},"/v1/payouts/refresh":{"post":{"summary":"Re-check my payout account after onboarding","tags":["marketplace"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/marketplace":{"get":{"summary":"Marketplace overview: listings, volume, fees, unpaid seller balances","tags":["admin"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/listings/{id}/void":{"post":{"summary":"Void a listing","tags":["admin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/payouts/manual":{"post":{"summary":"Record a manual payout (sent outside the platform)","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountCents":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":200}},"required":["userId","amountCents"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/search":{"get":{"summary":"Unified search: plots, people, organisations, countries, cities and places. ai=1 parses natural language.","tags":["search"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"q","required":true},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"ai","required":false},{"schema":{"default":8,"type":"integer","minimum":1,"maximum":30},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/geocode":{"get":{"summary":"Geocode a place name","tags":["search"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":120},"in":"query","name":"q","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs":{"post":{"summary":"Create an organisation (you become its owner)","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"kind":{"default":"business","type":"string","enum":["business","brand","nonprofit","other"]},"website":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":1000}},"required":["name"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{slug}":{"get":{"summary":"Organisation profile","tags":["orgs"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}":{"patch":{"summary":"Update an organisation","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"website":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/verify/email":{"post":{"summary":"Send a verification code to an address at the organisation’s website domain","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/verify/code":{"post":{"summary":"Confirm the emailed code and verify the organisation","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["email","code"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/verify/dns":{"post":{"summary":"Get the DNS TXT record that verifies the organisation","tags":["orgs"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/verify/dns/check":{"post":{"summary":"Check the DNS TXT record and verify the organisation","tags":["orgs"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/members":{"get":{"summary":"Members and pending invites","tags":["orgs"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/invites":{"post":{"summary":"Invite a member by email","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"role":{"default":"editor","type":"string","enum":["admin","editor"]}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/invites/accept":{"post":{"summary":"Accept an invite","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":100}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/orgs/{id}/members/{userId}":{"delete":{"summary":"Remove a member","tags":["orgs"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/plans":{"get":{"summary":"Plans, land tiers and upgrade prices","tags":["billing"],"responses":{"200":{"description":"Default Response"}}}},"/v1/features":{"get":{"summary":"Public feature switches (paid checkout, free land allowance, Google sign-in)","tags":["billing"],"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/checkout":{"post":{"summary":"Start a subscription checkout","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["plus","business","brand"]},"interval":{"default":"month","type":"string","enum":["month","year"]},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"returnPath":{"type":"string","maxLength":200},"source":{"type":"string","enum":["pricing","paywall","billing"]}},"required":["plan"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/paywall-seen":{"post":{"summary":"Count a paywall view (anonymous, per day)","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"upsell":{"type":"string","enum":["plus","business","credits"]}},"required":["upsell"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/portal":{"post":{"summary":"Open the Stripe customer portal","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/upgrade":{"post":{"summary":"Buy a Spotlight or Beacon for a plot","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["spotlight","beacon"]}},"required":["kind"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/credits":{"post":{"summary":"Buy an AI Design Pack (+25 designs)","tags":["billing"],"responses":{"200":{"description":"Default Response"}}}},"/v1/billing/orders":{"get":{"summary":"My orders and subscriptions","tags":["billing"],"responses":{"200":{"description":"Default Response"}}}},"/v1/orders/{id}":{"get":{"summary":"One of my orders, and how it can be paid","tags":["billing"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/orders/{id}/pay":{"post":{"summary":"Start paying a pending order with Stripe (card) or PayPal","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["stripe","paypal"]}},"required":["provider"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/design":{"post":{"summary":"AI Plot Designer: 3 variations of copy + cover art (async job, uses 1 credit)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brief":{"type":"string","minLength":3,"maxLength":1500},"name":{"type":"string","maxLength":60},"style":{"type":"string","maxLength":120},"website":{"type":"string","maxLength":200}},"required":["plotId","brief"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/jobs/{id}":{"get":{"summary":"Poll an AI job","tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/jobs/{id}/apply":{"post":{"summary":"Apply one design variation to the plot","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":2},"withImage":{"default":true,"type":"boolean"}},"required":["index"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/suggest-plots":{"post":{"summary":"Where should I claim? Ranked available spots for a goal","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string","minLength":3,"maxLength":300},"lat":{"type":"number"},"lng":{"type":"number"},"country":{"type":"string","minLength":2,"maxLength":2},"size":{"type":"integer","minimum":1,"maximum":5}},"required":["goal"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/ai/ideas":{"post":{"summary":"Content ideas for a plot","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["plotId"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/{slug}/claim":{"post":{"summary":"Start claiming a showcase plot for your organisation","tags":["showcase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":200,"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,}$"},"orgName":{"type":"string","minLength":2,"maxLength":100},"note":{"type":"string","maxLength":1000}},"required":["email","orgName"]}}}},"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/claim/verify":{"post":{"summary":"Verify the work-email code and get the Landmark checkout link","tags":["showcase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["requestId","code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/{slug}/claim/dns":{"post":{"summary":"Start a claim verified by a DNS TXT record","tags":["showcase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgName":{"type":"string","minLength":2,"maxLength":100}},"required":["orgName"]}}}},"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/claim/{id}/verify-dns":{"post":{"summary":"Check the DNS TXT record and continue the claim","tags":["showcase"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/claim/{id}/checkout":{"post":{"summary":"Checkout for an approved claim","tags":["showcase"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/claims/mine":{"get":{"summary":"My claim requests","tags":["showcase"],"responses":{"200":{"description":"Default Response"}}}},"/v1/showcase/{slug}/takedown":{"post":{"summary":"Request removal of a showcase plot","tags":["showcase"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"email":{"type":"string","maxLength":200,"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,}$"},"organisation":{"type":"string","maxLength":120},"message":{"type":"string","minLength":5,"maxLength":2000}},"required":["name","email","message"]}}}},"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/metrics":{"get":{"summary":"Daily growth and revenue metrics","tags":["admin"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":7,"maximum":90},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/stats":{"get":{"summary":"Dashboard numbers","tags":["admin"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/payments-status":{"get":{"summary":"Stripe setup check (key mode, webhook, prices, problems)","tags":["admin"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/users":{"get":{"summary":"Search users","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/users/{id}":{"patch":{"summary":"Change role, ban, plan or bonus credits","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["user","moderator","admin"]},"banned":{"type":"boolean"},"plan":{"type":"string","enum":["free","plus"]},"aiCreditsBonus":{"type":"integer","minimum":0,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/plots":{"get":{"summary":"Search plots","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"kind","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/plots/{id}":{"patch":{"summary":"Moderate or feature a plot","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","hidden"]},"moderationStatus":{"type":"string","enum":["ok","pending","flagged","rejected"]},"spotlightDays":{"type":"integer","minimum":0,"maximum":90}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/plots/{id}/release":{"post":{"summary":"Release a plot (frees its cells)","tags":["admin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/moderation":{"get":{"summary":"Moderation flags","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"default":"open","type":"string","enum":["open","actioned","dismissed"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/moderation/{id}/resolve":{"post":{"summary":"Resolve a flag","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["dismiss","approve","hide","remove","ban"]}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/orders":{"get":{"summary":"Orders","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/orders/{id}/refund":{"post":{"summary":"Refund an order (releases land)","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"default":"Refunded by admin","type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/pricing":{"get":{"summary":"Land tier prices","tags":["admin"],"responses":{"200":{"description":"Default Response"}}},"put":{"summary":"Update land tier prices","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tiers":{"type":"array","items":{"type":"object","properties":{"tier":{"type":"string","enum":["S","A","B","C","O"]},"priceCents":{"type":"integer","minimum":50,"maximum":1000000},"label":{"type":"string","maxLength":40},"description":{"type":"string","maxLength":200}},"required":["tier","priceCents"]}}},"required":["tiers"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase":{"get":{"summary":"Showcase plots","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"approved","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/generate":{"post":{"summary":"Generate showcase plots (runs in the background)","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"countries":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"source":{"default":"curated","type":"string","enum":["curated","ai"]},"count":{"type":"integer","minimum":1,"maximum":30},"names":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":100}},"images":{"type":"string","enum":["procedural","openai","gemini","external"]},"approve":{"default":false,"type":"boolean"},"force":{"default":false,"type":"boolean"},"regenerateImages":{"default":false,"type":"boolean"}},"required":["countries"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/{id}":{"patch":{"summary":"Edit a showcase plot","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":80},"tagline":{"anyOf":[{"type":"string","maxLength":140},{"type":"null"}]},"descriptionMd":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"customHtml":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}]},"links":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500}},"required":["label","url"]}},"cta":{"anyOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"url":{"type":"string","maxLength":500}},"required":["label","url"]},{"type":"null"}]},"category":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"tags":{"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":24}},"theme":{"anyOf":[{"type":"object","properties":{"primary":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["primary","accent"]},{"type":"null"}]},"frame":{"type":"string","maxLength":20},"coverMediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"galleryMediaIds":{"maxItems":6,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"galleryRemove":{"type":"string","maxLength":500},"guestbookOpen":{"type":"boolean"},"business":{"anyOf":[{"type":"object","properties":{"phone":{"type":"string","maxLength":40},"email":{"type":"string","maxLength":120,"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,}$"},"address":{"type":"string","maxLength":200},"hours":{"type":"object","propertyNames":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"additionalProperties":{"maxItems":3,"type":"array","items":{"type":"array","prefixItems":[{"type":"string","pattern":"^\\d{2}:\\d{2}$"},{"type":"string","pattern":"^\\d{2}:\\d{2}$"}],"items":false,"minItems":2,"maxItems":2}},"required":["mon","tue","wed","thu","fri","sat","sun"]},"timezone":{"type":"string","maxLength":60},"bookingUrl":{"type":"string","maxLength":500},"offer":{"type":"string","maxLength":140}}},{"type":"null"}]},"showcase":{"type":"object","properties":{"brand":{"type":"string","maxLength":100},"website":{"type":"string","maxLength":300},"sector":{"type":"string","maxLength":40},"useCase":{"type":"string","maxLength":80},"highlights":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":120}},"imagePrompt":{"type":"string","maxLength":800},"approved":{"type":"boolean"}}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Delete a showcase plot","tags":["admin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/{id}/regenerate-image":{"post":{"summary":"Regenerate a showcase image","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["procedural","openai","gemini","external"]},"prompt":{"type":"string","maxLength":800}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/locations":{"get":{"summary":"Showcase plots with location checks","tags":["admin"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"default":"all","type":"string","enum":["all","unverified","verified","suspect"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Bulk mark showcase locations as checked (or not)","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"verified":{"type":"boolean"},"note":{"type":"string","maxLength":200}},"required":["ids","verified"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/locations/verify-passed":{"post":{"summary":"Verify all showcase locations that passed the automatic check","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apply":{"default":false,"type":"boolean"},"country":{"type":"string","minLength":2,"maxLength":2}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/{id}/move":{"post":{"summary":"Nudge a showcase plot to a new point (keeps its size, marks the location checked)","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lat":{"type":"number","minimum":-85,"maximum":85},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lng"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/approve":{"post":{"summary":"Bulk approve/unapprove showcase plots","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"approved":{"type":"boolean"}},"required":["ids","approved"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/showcase/export":{"get":{"summary":"Export showcase plots in the curated JSON format","tags":["admin"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/claims":{"get":{"summary":"Showcase claim requests","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/claims/{id}":{"post":{"summary":"Approve or reject a manual claim","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","reject"]},"note":{"type":"string","maxLength":500}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/takedowns":{"get":{"summary":"Takedown requests","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/takedowns/{id}":{"post":{"summary":"Act on a takedown request","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["remove","reject"]}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/audit":{"get":{"summary":"Audit log","tags":["admin"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/live/health":{"get":{"summary":"Live hub health: sockets, subscriptions and a Redis pub/sub round trip on this process","tags":["world"],"responses":{"200":{"description":"Default Response"}}}},"/v1/world/stats":{"get":{"summary":"Live world numbers","tags":["world"],"responses":{"200":{"description":"Default Response"}}}},"/v1/world/activity":{"get":{"summary":"Recent public activity","tags":["world"],"parameters":[{"schema":{"default":20,"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sandbox/preview":{"post":{"summary":"Preview custom HTML (returns a short-lived URL on the usercontent origin)","tags":["plots"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string","maxLength":400000}},"required":["html"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/custom-html/versions":{"get":{"summary":"Saved versions of a plot’s custom HTML","tags":["plots"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/custom-html/versions/{version}/restore":{"post":{"summary":"Restore an earlier version (saved as a new version, scanned again)","tags":["plots"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":1,"maximum":9007199254740991},"in":"path","name":"version","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/custom-html":{"get":{"summary":"Custom HTML review queue and switches","tags":["admin"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/custom-html/versions/{id}/preview":{"post":{"summary":"Preview a version waiting for review","tags":["admin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/custom-html/versions/{id}/review":{"post":{"summary":"Approve or reject a custom HTML version","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","reject"]},"note":{"type":"string","maxLength":300}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/plots/{id}/custom-html":{"post":{"summary":"Kill-switch for one plot’s custom HTML","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disabled":{"type":"boolean"}},"required":["disabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/custom-html/global":{"post":{"summary":"Kill-switch for all custom HTML","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disabled":{"type":"boolean"}},"required":["disabled"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/open-houses":{"get":{"summary":"Upcoming open houses on a plot, and how many people are there now","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"post":{"summary":"Schedule an open house on my plot","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":80},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"minutes":{"type":"integer","minimum":15,"maximum":240}},"required":["title","startsAt","minutes"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/plots/{id}/here-now":{"get":{"summary":"How many people are at a plot right now","tags":["social"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/open-houses/now":{"get":{"summary":"Open houses happening now, with people there","tags":["social"],"responses":{"200":{"description":"Default Response"}}}},"/v1/open-houses/{id}":{"delete":{"summary":"Cancel an open house","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/open-houses/{id}/rsvp":{"post":{"summary":"Notify me when this open house starts","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}},"delete":{"summary":"Stop notifying me","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/referral":{"get":{"summary":"My invite link and what it has earned","tags":["me"],"responses":{"200":{"description":"Default Response"}}}},"/v1/me/referrer":{"post":{"summary":"Record who invited me (new accounts only, once)","tags":["me"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":16}},"required":["code"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/brands":{"get":{"summary":"Companies with land reserved for them on FlatMeta","tags":["showcase"],"parameters":[{"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"in":"query","name":"country","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"city","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"page","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/brands/cities":{"get":{"summary":"Cities with at least three companies with reserved land","tags":["showcase"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-land/run":{"post":{"summary":"Run the company-land job now","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Za-z]{2}$"},"take":{"default":10,"type":"integer","minimum":1,"maximum":100},"apply":{"default":false,"type":"boolean"}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-logos":{"get":{"summary":"Company logo switches","tags":["admin"],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-logos/global":{"post":{"summary":"Kill-switch for every company logo","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disabled":{"type":"boolean"}},"required":["disabled"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/plots/{id}/logo":{"post":{"summary":"Hide or show one company plot’s logo","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hidden":{"type":"boolean"}},"required":["hidden"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-land":{"get":{"summary":"Company land register (filters; format=csv exports the filtered view)","tags":["admin"],"parameters":[{"schema":{"type":"string","pattern":"^[A-Za-z]{2}$"},"in":"query","name":"country","required":false},{"schema":{"type":"string","enum":["hidden","reserved","claim_started","claimed","removal_requested","removed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["not_contacted","contacted","replied","sold"]},"in":"query","name":"outreach","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"q","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":1000},"in":"query","name":"page","required":false},{"schema":{"default":"json","type":"string","enum":["json","csv"]},"in":"query","name":"format","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-land/{id}":{"patch":{"summary":"Update outreach fields","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outreachStatus":{"type":"string","enum":["not_contacted","contacted","replied","sold"]},"outreachNotes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"contactedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/company-land/find-contacts":{"post":{"summary":"Look up public contact/press pages on the official websites","tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"default":30,"type":"integer","minimum":1,"maximum":100}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/ask":{"get":{"summary":"Ask FlatMeta: a short answer with the places on the map that match","tags":["search"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":300},"in":"query","name":"q","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/funnel":{"get":{"summary":"Funnel: visit > sign-up > first value > paid","tags":["admin"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":90},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"https://flatmeta.io/api"}],"security":[{"apiKey":[]},{"session":[]}],"tags":[{"name":"auth"},{"name":"me"},{"name":"world"},{"name":"plots"},{"name":"regions"},{"name":"social"},{"name":"search"},{"name":"ai"},{"name":"orgs"},{"name":"billing"},{"name":"showcase"},{"name":"admin"}]}