{"openapi":"3.1.0","info":{"title":"Lahuta Organization API","version":"0.0.1","description":"For an organization's own websites and integrations. Authenticate with an API key from the dashboard in `X-Api-Key`."},"paths":{"/v1/contacts":{"put":{"tags":["Contacts"],"operationId":"contacts.upsert","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"contact":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"firstName":{"type":"string"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"birthDate":{"anyOf":[{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]},{"type":"null"}]},"emails":{"$ref":"#/components/schemas/Arrays_4"},"phones":{"$ref":"#/components/schemas/Arrays_5"},"urls":{"$ref":"#/components/schemas/Arrays_6"},"addresses":{"$ref":"#/components/schemas/Arrays_7"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"favorite":{"type":"boolean"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"anyOf":[{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},{"type":"null"}]},"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]}},"required":["kind","id","firstName","lastName","jobTitle","birthDate","emails","phones","urls","addresses","description","linkedin","image","favorite","source","archivedAt","createdAt","updatedAt","createdBy","orgId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["company"]},"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"emails":{"$ref":"#/components/schemas/Arrays_4"},"phones":{"$ref":"#/components/schemas/Arrays_5"},"urls":{"$ref":"#/components/schemas/Arrays_6"},"addresses":{"$ref":"#/components/schemas/Arrays_7"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"favorite":{"type":"boolean"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"anyOf":[{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},{"type":"null"}]},"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]}},"required":["kind","id","name","emails","phones","urls","addresses","description","linkedin","image","favorite","source","archivedAt","createdAt","updatedAt","createdBy","orgId"],"additionalProperties":false}]},"matchedExisting":{"type":"boolean"},"noteId":{"anyOf":[{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},{"type":"null"}]}},"required":["contact","matchedExisting","noteId"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"firstName":{"type":"string","allOf":[{"minLength":1}]},"lastName":{"$ref":"#/components/schemas/Union_"},"jobTitle":{"$ref":"#/components/schemas/Union_1"},"birthDate":{"$ref":"#/components/schemas/Union_2"},"emails":{"$ref":"#/components/schemas/Arrays_"},"phones":{"$ref":"#/components/schemas/Arrays_1"},"urls":{"$ref":"#/components/schemas/Arrays_2"},"addresses":{"$ref":"#/components/schemas/Arrays_3"},"description":{"$ref":"#/components/schemas/Union_5"},"linkedin":{"$ref":"#/components/schemas/Union_6"},"image":{"$ref":"#/components/schemas/Union_7"},"favorite":{"type":"boolean"},"source":{"$ref":"#/components/schemas/Union_8"},"userId":{"$ref":"#/components/schemas/Union_9"},"note":{"$ref":"#/components/schemas/Objects_4"}},"required":["kind","firstName"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["company"]},"name":{"type":"string","allOf":[{"minLength":1}]},"emails":{"$ref":"#/components/schemas/Arrays_"},"phones":{"$ref":"#/components/schemas/Arrays_1"},"urls":{"$ref":"#/components/schemas/Arrays_2"},"addresses":{"$ref":"#/components/schemas/Arrays_3"},"description":{"$ref":"#/components/schemas/Union_5"},"linkedin":{"$ref":"#/components/schemas/Union_6"},"image":{"$ref":"#/components/schemas/Union_7"},"favorite":{"type":"boolean"},"source":{"$ref":"#/components/schemas/Union_8"},"note":{"$ref":"#/components/schemas/Objects_4"}},"required":["kind","name"],"additionalProperties":false}]}}},"required":true}}},"/v1/groups":{"put":{"tags":["Groups"],"operationId":"groups.write","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/Union_11"},"created":{"type":"boolean"}},"required":["id","name","type","created"],"additionalProperties":false},"columns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/Union_12"},"created":{"type":"boolean"}},"required":["id","name","type","created"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"contactId":{"anyOf":[{"type":"string"},{"type":"null"}]},"created":{"type":"boolean"}},"required":["id","contactId","created"],"additionalProperties":false}}},"required":["group","columns","rows"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"GroupTypeMismatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupTypeMismatchEncoded"}}}},"422":{"description":"ColumnTypeMismatch | ForeignFile","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ColumnTypeMismatchEncoded"},{"$ref":"#/components/schemas/ForeignFileEncoded"}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string","allOf":[{"minLength":1}]},"type":{"type":"string","enum":["person"]},"rows":{"type":"array","items":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Objects_5"},"cols":{"$ref":"#/components/schemas/Arrays_8"}},"required":["contact","cols"],"additionalProperties":false},"allOf":[{"minItems":1},{"maxItems":100}]}},"required":["name","type","rows"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string","allOf":[{"minLength":1}]},"type":{"type":"string","enum":["company"]},"rows":{"type":"array","items":{"type":"object","properties":{"contact":{"$ref":"#/components/schemas/Objects_7"},"cols":{"$ref":"#/components/schemas/Arrays_8"}},"required":["contact","cols"],"additionalProperties":false},"allOf":[{"minItems":1},{"maxItems":100}]}},"required":["name","type","rows"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string","allOf":[{"minLength":1}]},"type":{"type":"string","enum":["general"]},"rows":{"type":"array","items":{"type":"object","properties":{"cols":{"type":"array","items":{"$ref":"#/components/schemas/Union_10"},"allOf":[{"minItems":1},{"maxItems":50}]}},"required":["cols"],"additionalProperties":false},"allOf":[{"minItems":1},{"maxItems":100}]}},"required":["name","type","rows"],"additionalProperties":false}]}}},"required":true}}},"/v1/groups/{group}/rows":{"get":{"tags":["Groups"],"operationId":"groups.rows","parameters":[{"name":"group","in":"path","schema":{"type":"string","allOf":[{"minLength":1}]},"required":true},{"name":"view","in":"query","schema":{"type":"string","allOf":[{"minLength":1}]},"required":true},{"name":"limit","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false},{"name":"offset","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/Union_11"}},"required":["id","name","type"],"additionalProperties":false},"view":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"columns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","name","type"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"contact":{"anyOf":[{"$ref":"#/components/schemas/Union_13"},{"type":"null"}]},"cells":{"type":"object","additionalProperties":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["number"]},"number":{"type":"string","allOf":[{"pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal number"}]}},"required":["kind","number"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["date"]},"date":{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]}},"required":["kind","date"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["select"]},"option":{"type":"string","allOf":[{"minLength":1}]}},"required":["kind","option"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["multiSelect"]},"options":{"type":"array","items":{"type":"string","allOf":[{"minLength":1}]}}},"required":["kind","options"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["phone"]},"phone":{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]}},"required":["kind","phone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["address"]},"address":{"$ref":"#/components/schemas/Objects_3"}},"required":["kind","address"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["file"]},"files":{"type":"array","items":{"$ref":"#/components/schemas/Objects_6"},"allOf":[{"minItems":1},{"maxItems":10}]}},"required":["kind","files"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["relation"]},"contact":{"$ref":"#/components/schemas/Union_13"}},"required":["kind","contact"],"additionalProperties":false}]}}},"required":["id","contact","cells"],"additionalProperties":false}},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["group","view","columns","rows","total","limit","offset"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/events":{"get":{"tags":["Events"],"operationId":"events.list","parameters":[{"name":"limit","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false},{"name":"offset","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"shortCode":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"startAt":{"type":"string"},"endAt":{"type":"string"},"timezone":{"type":"string"},"location":{"type":"string","enum":["virtual","physical"]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"fromCents":{"type":"integer","allOf":[{"minimum":0}]},"occurrenceCount":{"type":"integer"},"attendeeCount":{"anyOf":[{"type":"integer"},{"type":"null"}]},"organizer":{"type":"object","properties":{"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"slug":{"type":"string","allOf":[{"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Lowercase slug (a-z, 0-9, single dashes)"},{"maxLength":64}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["orgId","name","slug","image"],"additionalProperties":false}},"required":["id","shortCode","name","image","startAt","endAt","timezone","location","city","state","fromCents","occurrenceCount","attendeeCount","organizer"],"additionalProperties":false}},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["items","total","limit","offset"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/events/{shortCode}":{"get":{"tags":["Events"],"operationId":"events.get","parameters":[{"name":"shortCode","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"shortCode":{"type":"string"},"name":{"type":"string"},"descriptionHtml":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizer":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}},"required":["name","slug"],"additionalProperties":false},"externalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"object","properties":{"_tag":{"type":"string","enum":["virtual"]}},"required":["_tag"],"additionalProperties":false},{"type":"object","properties":{"_tag":{"type":"string","enum":["physical"]},"fullAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"googleMapsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"latitude":{"anyOf":[{"$ref":"#/components/schemas/Union_4"},{"type":"null"}]},"longitude":{"anyOf":[{"$ref":"#/components/schemas/Union_4"},{"type":"null"}]}},"required":["_tag","fullAddress","city","state","country","googleMapsUrl","latitude","longitude"],"additionalProperties":false}]},"timezone":{"type":"string"},"shareMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"form":{"type":"object","properties":{"maxTicketsPerRegistration":{"anyOf":[{"type":"integer"},{"type":"null"}]},"phoneCollection":{"type":"string","enum":["none","optional","required"]},"requireSeparateAttendeeInfo":{"type":"boolean"},"requireApproval":{"type":"boolean"}},"required":["maxTicketsPerRegistration","phoneCollection","requireSeparateAttendeeInfo","requireApproval"],"additionalProperties":false},"attendeeCount":{"anyOf":[{"type":"integer"},{"type":"null"}]},"recurring":{"type":"boolean"},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Objects_9"}},"cohosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","slug","image"],"additionalProperties":false}},"acceptsCohostApplications":{"type":"boolean"},"guests":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","image"],"additionalProperties":false}},"occurrences":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"startAt":{"type":"string"},"endAt":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["scheduled","cancelled"]},"salesClosed":{"type":"boolean"},"tickets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"priceCents":{"type":"integer","allOf":[{"minimum":0}]},"minQuantity":{"anyOf":[{"type":"integer"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["id","name","description","priceCents","minQuantity","remaining"],"additionalProperties":false}}},"required":["id","startAt","endAt","label","status","salesClosed","tickets"],"additionalProperties":false}},"defaultOccurrenceId":{"anyOf":[{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},{"type":"null"}]}},"required":["id","shortCode","name","descriptionHtml","image","brandColor","organizer","externalUrl","location","timezone","shareMessage","form","attendeeCount","recurring","questions","cohosts","acceptsCohostApplications","guests","occurrences","defaultOccurrenceId"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/newsletter/subscribe":{"post":{"tags":["Newsletter"],"operationId":"newsletter.subscribe","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"pending":{"type":"boolean"},"contactId":{"type":"string"},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"created":{"type":"boolean"}},"required":["id","name","created"],"additionalProperties":false}}},"required":["pending","contactId","topics"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"contact":{"type":"object","properties":{"lastName":{"$ref":"#/components/schemas/Union_"},"jobTitle":{"$ref":"#/components/schemas/Union_1"},"birthDate":{"$ref":"#/components/schemas/Union_2"},"emails":{"$ref":"#/components/schemas/Arrays_"},"phones":{"$ref":"#/components/schemas/Arrays_1"},"urls":{"$ref":"#/components/schemas/Arrays_2"},"addresses":{"$ref":"#/components/schemas/Arrays_3"},"description":{"$ref":"#/components/schemas/Union_5"},"linkedin":{"$ref":"#/components/schemas/Union_6"},"image":{"$ref":"#/components/schemas/Union_7"},"favorite":{"type":"boolean"},"source":{"$ref":"#/components/schemas/Union_8"},"userId":{"$ref":"#/components/schemas/Union_9"},"firstName":{"type":"string","allOf":[{"minLength":1}]}},"additionalProperties":false},"topics":{"type":"array","items":{"type":"string","allOf":[{"minLength":1},{"maxLength":100}]},"allOf":[{"minItems":1},{"maxItems":20}]},"source":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]}},"required":["email"],"additionalProperties":false}}},"required":true}}},"/v1/blog/posts":{"get":{"tags":["Blog"],"operationId":"blog.posts","parameters":[{"name":"tag","in":"query","schema":{"type":"string"},"required":false},{"name":"limit","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false},{"name":"offset","in":"query","schema":{"type":"string","allOf":[{"pattern":"^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"}]},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"keywords":{"$ref":"#/components/schemas/Arrays_10"},"cover":{"$ref":"#/components/schemas/Union_14"},"authors":{"$ref":"#/components/schemas/Arrays_11"},"publishedAt":{"type":"string"}},"required":["slug","title","excerpt","keywords","cover","authors","publishedAt"],"additionalProperties":false}},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["items","total","limit","offset"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/blog/posts/{slug}":{"get":{"tags":["Blog"],"operationId":"blog.post","parameters":[{"name":"slug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"excerpt":{"type":"string"},"keywords":{"$ref":"#/components/schemas/Arrays_10"},"cover":{"$ref":"#/components/schemas/Union_14"},"authors":{"$ref":"#/components/schemas/Arrays_11"},"publishedAt":{"type":"string"},"html":{"type":"string"},"meta":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"canonical":{"type":"string"}},"required":["title","description","image","canonical"],"additionalProperties":false}},"required":["slug","title","excerpt","keywords","cover","authors","publishedAt","html","meta"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/products":{"get":{"tags":["Products"],"operationId":"products.list","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Objects_10"}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/products/{slug}":{"get":{"tags":["Products"],"operationId":"products.get","parameters":[{"name":"slug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"slug":{"type":"string"},"name":{"type":"string"},"descriptionHtml":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"$ref":"#/components/schemas/Union_15"},"fulfillment":{"anyOf":[{"type":"object","properties":{"_tag":{"type":"string","enum":["digital"]}},"required":["_tag"],"additionalProperties":false},{"type":"object","properties":{"_tag":{"type":"string","enum":["physical"]},"shipping":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["default","flat_rate","calculated","free"]},"flatAmountCents":{"anyOf":[{"type":"integer","allOf":[{"minimum":0}]},{"type":"null"}]}},"required":["mode","flatAmountCents"],"additionalProperties":false},{"type":"null"}]},"pickup":{"anyOf":[{"anyOf":[{"type":"object"},{"type":"array"}]},{"type":"null"}]}},"required":["_tag","shipping","pickup"],"additionalProperties":false}]},"specifications":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","allOf":[{"minLength":1}]},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false}},"media":{"type":"array","items":{"$ref":"#/components/schemas/Objects_8"}},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"values":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","name","values"],"additionalProperties":false}},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"sku":{"anyOf":[{"type":"string"},{"type":"null"}]},"priceCents":{"type":"integer","allOf":[{"minimum":0}]},"compareAtCents":{"anyOf":[{"type":"integer","allOf":[{"minimum":0}]},{"type":"null"}]},"optionValueIds":{"type":"array","items":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]}},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]}},"required":["id","title","sku","priceCents","compareAtCents","optionValueIds","image"],"additionalProperties":false}},"seller":{"type":"object","properties":{"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"pickup":{"anyOf":[{"type":"object","properties":{"shopName":{"type":"string","allOf":[{"minLength":1}]},"streetAddress":{"type":"string","allOf":[{"minLength":1}]},"city":{"type":"string","allOf":[{"minLength":1}]},"state":{"type":"string","allOf":[{"minLength":1}]},"zipCode":{"type":"string","allOf":[{"minLength":1}]},"country":{"type":"string","allOf":[{"minLength":1}]},"phone":{"anyOf":[{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["shopName","streetAddress","city","state","zipCode","country","phone","instructions"],"additionalProperties":false},{"type":"null"}]},"freeShippingOverCents":{"anyOf":[{"type":"integer","allOf":[{"minimum":0}]},{"type":"null"}]},"supportEmail":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["orgId","name","slug","image","pickup","freeShippingOverCents","supportEmail"],"additionalProperties":false}},"required":["id","slug","name","descriptionHtml","category","fulfillment","specifications","media","options","variants","seller"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/collections":{"get":{"tags":["Products"],"operationId":"products.collections","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]}},"required":["slug","name","image"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/collections/{slug}":{"get":{"tags":["Products"],"operationId":"products.collection","parameters":[{"name":"slug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"products":{"type":"array","items":{"$ref":"#/components/schemas/Objects_10"}}},"required":["slug","name","description","image","products"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/products/checkouts":{"post":{"tags":["Products"],"operationId":"products.createCheckout","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["checkoutId","url","expiresAt"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"LineUnavailable | Conflict | PaymentsNotReady","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LineUnavailableEncoded"},{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/PaymentsNotReadyEncoded"}]}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","allOf":[{"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Lowercase slug (a-z, 0-9, single dashes)"},{"maxLength":64}]},"lines":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"quantity":{"type":"integer","allOf":[{"exclusiveMinimum":0},{"maximum":999}]}},"required":["variantId","quantity"],"additionalProperties":false},"allOf":[{"minItems":1},{"maxItems":50}]},"couponCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"buyer":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1}]},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]},{"type":"null"}]}},"required":["name","email"],"additionalProperties":false},{"type":"null"}]},"address":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"street1":{"type":"string","allOf":[{"minLength":1}]},"street2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"type":"string","allOf":[{"minLength":1}]},"state":{"type":"string","allOf":[{"minLength":1}]},"zip":{"type":"string","allOf":[{"minLength":1}]},"country":{"type":"string","allOf":[{"minLength":1}]},"phone":{"anyOf":[{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","street1","city","state","zip","country"],"additionalProperties":false},{"type":"null"}]},"successUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["lines"],"additionalProperties":false}}},"required":true}}},"/v1/products/checkouts/{checkoutId}":{"get":{"tags":["Products"],"operationId":"products.getCheckout","parameters":[{"name":"checkoutId","in":"path","schema":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"status":{"type":"string","enum":["open","ordered","expired"]},"expiresAt":{"type":"string"},"order":{"anyOf":[{"type":"object","properties":{"orderId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"shortCode":{"type":"string"},"status":{"type":"string","enum":["pending","confirmed","cancelled","expired"]}},"required":["orderId","shortCode","status"],"additionalProperties":false},{"type":"null"}]}},"required":["checkoutId","status","expiresAt","order"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/services":{"get":{"tags":["Services"],"operationId":"services.list","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"slug":{"type":"string"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/Union_16"},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"fromCents":{"type":"integer","allOf":[{"minimum":0}]},"toCents":{"type":"integer","allOf":[{"minimum":0}]}},"required":["id","slug","name","category","image","fromCents","toCents"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/services/{slug}":{"get":{"tags":["Services"],"operationId":"services.get","parameters":[{"name":"slug","in":"path","schema":{"type":"string"},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"slug":{"type":"string"},"name":{"type":"string"},"descriptionHtml":{"anyOf":[{"type":"string"},{"type":"null"}]},"category":{"$ref":"#/components/schemas/Union_16"},"media":{"type":"array","items":{"$ref":"#/components/schemas/Objects_8"}},"tiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"features":{"type":"array","items":{"type":"string"}},"priceCents":{"type":"integer","allOf":[{"minimum":0}]},"deliveryDays":{"type":"integer"},"revisions":{"type":"integer"}},"required":["id","title","description","features","priceCents","deliveryDays","revisions"],"additionalProperties":false}},"seller":{"type":"object","properties":{"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"name":{"type":"string"},"slug":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["orgId","name","slug","image"],"additionalProperties":false}},"required":["id","slug","name","descriptionHtml","category","media","tiers","seller"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/uploads":{"post":{"tags":["Uploads"],"operationId":"uploads.sign","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"url":{"type":"string"},"publicUrl":{"type":"string"},"contentType":{"type":"string"},"contentDisposition":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"}},"required":["key","url","publicUrl","contentType","contentDisposition","expiresAt"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"422":{"description":"UploadRejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRejectedEncoded"}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["image","attachment"]},"fileName":{"type":"string","allOf":[{"minLength":1}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"type":"integer","allOf":[{"exclusiveMinimum":0}]}},"required":["kind","fileName","contentType","size"],"additionalProperties":false}}},"required":true}}},"/v1/me":{"get":{"tags":["Me"],"operationId":"me.get","parameters":[],"security":[{"bearer":[]},{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"email":{"type":"string"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","email","firstName","lastName","image"],"additionalProperties":false},"membership":{"anyOf":[{"type":"object","properties":{"role":{"anyOf":[{"type":"string","enum":["admin","member","org-staff"]},{"type":"null"}]},"permissions":{"type":"array","items":{"type":"string","enum":["crm:read","crm:write","commerce:manage","events:manage","bookings:manage","blog:manage","social:manage","org:manage","internal:manage"]}}},"required":["role","permissions"],"additionalProperties":false},{"type":"null"}]}},"required":["user","membership"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UnauthorizedEncoded"},{"$ref":"#/components/schemas/UnauthorizedEncoded"}]}}}}}}},"/v1/emails":{"post":{"tags":["Emails"],"operationId":"emails.send","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"emailId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"contactId":{"type":"string"},"opened":{"type":"boolean"}},"required":["emailId","contactId","opened"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"422":{"description":"NoAddress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoAddressEncoded"}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","allOf":[{"pattern":"^[A-Za-z0-9_.:-]{1,128}$","description":"1-128 of letters, digits, _ . : -"}]},"contact":{"$ref":"#/components/schemas/Union_17"},"subject":{"type":"string","allOf":[{"pattern":"^[^\\r\\n]{1,200}$","description":"1-200 characters on one line"}]},"body":{"type":"string","allOf":[{"minLength":1},{"maxLength":20000}]},"replyTo":{"type":"string"}},"required":["key","contact","subject","body"],"additionalProperties":false}}},"required":true}}},"/v1/notifications":{"post":{"tags":["Notifications"],"operationId":"notifications.notify","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"notified":{"type":"integer"}},"required":["notified"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","allOf":[{"pattern":"^[A-Za-z0-9_.:-]{1,128}$","description":"1-128 of letters, digits, _ . : -"}]},"subject":{"type":"string","allOf":[{"pattern":"^[^\\r\\n]{1,200}$","description":"1-200 characters on one line"}]},"body":{"type":"string","allOf":[{"minLength":1},{"maxLength":20000}]},"url":{"type":"string"}},"required":["key","subject","body"],"additionalProperties":false}}},"required":true}}},"/v1/checkouts":{"post":{"tags":["Checkouts"],"operationId":"checkouts.start","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"url":{"type":"string"}},"required":["checkoutId","url"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"409":{"description":"PaymentsNotReady | Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentsNotReadyEncoded"},{"$ref":"#/components/schemas/ConflictEncoded"}]}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}},"502":{"description":"CheckoutUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutUnavailableEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","allOf":[{"pattern":"^[A-Za-z0-9_.:-]{1,128}$","description":"1-128 of letters, digits, _ . : -"}]},"contact":{"$ref":"#/components/schemas/Union_17"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":200}]},"amount":{"type":"integer","allOf":[{"minimum":0},{"exclusiveMinimum":0}]},"quantity":{"type":"integer","allOf":[{"minimum":1,"maximum":999}]}},"required":["name","amount","quantity"],"additionalProperties":false},"allOf":[{"minItems":1},{"maxItems":50}]},"successUrl":{"type":"string"},"cancelUrl":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Objects_11"}},"required":["key","contact","items","successUrl","cancelUrl"],"additionalProperties":false}}},"required":true}}},"/v1/checkouts/{checkoutId}":{"get":{"tags":["Checkouts"],"operationId":"checkouts.get","parameters":[{"name":"checkoutId","in":"path","schema":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"status":{"type":"string","enum":["open","paid","expired","refunded"]},"amountCents":{"type":"integer","allOf":[{"minimum":0}]},"contactId":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Objects_11"},"paidAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["checkoutId","status","amountCents","contactId","metadata","paidAt"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/org":{"get":{"tags":["Organization"],"operationId":"organization.get","parameters":[{"name":"include","in":"query","schema":{"type":"string"},"required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string","allOf":[{"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Lowercase slug (a-z, 0-9, single dashes)"},{"maxLength":64}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"paymentsReady":{"type":"boolean"}},"required":["name","slug","image"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/bookings/types":{"get":{"tags":["Bookings"],"operationId":"bookings.types","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"slug":{"type":"string"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"durationMinutes":{"type":"integer"},"timezone":{"type":"string"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailField":{"type":"string","enum":["required","optional"]},"phoneField":{"type":"string","enum":["required","optional"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Objects_9"}},"organizer":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}},"required":["name","slug"],"additionalProperties":false}},"required":["id","slug","title","description","durationMinutes","timezone","instructions","emailField","phoneField","questions","organizer"],"additionalProperties":false}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}}}}},"/v1/bookings/types/{slug}/slots":{"get":{"tags":["Bookings"],"operationId":"bookings.slots","parameters":[{"name":"slug","in":"path","schema":{"type":"string"},"required":true},{"name":"from","in":"query","schema":{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]},"required":true},{"name":"to","in":"query","schema":{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]},"required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"startsAt":{"type":"string"},"endsAt":{"type":"string"}},"required":["startsAt","endsAt"],"additionalProperties":false}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}}}}},"/v1/bookings":{"post":{"tags":["Bookings"],"operationId":"bookings.create","parameters":[],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"bookingId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"contactId":{"type":"string"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"manageUrl":{"type":"string"},"opened":{"type":"boolean"}},"required":["bookingId","contactId","startsAt","endsAt","manageUrl","opened"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"SlotUnavailable | BookingClosed","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SlotUnavailableEncoded"},{"$ref":"#/components/schemas/BookingClosedEncoded"}]}}}},"422":{"description":"AnswersInvalid | ContactInfoRequired","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnswersInvalidEncoded"},{"$ref":"#/components/schemas/ContactInfoRequiredEncoded"}]}}}},"429":{"description":"TooManyRequests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","allOf":[{"pattern":"^[A-Za-z0-9_.:-]{1,128}$","description":"1-128 of letters, digits, _ . : -"}]},"type":{"type":"string"},"startsAt":{"type":"string"},"contact":{"$ref":"#/components/schemas/Union_17"},"answers":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/Union_4"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"object","properties":{"street":{"type":"string","allOf":[{"maxLength":200}]},"city":{"type":"string","allOf":[{"maxLength":200}]},"state":{"type":"string","allOf":[{"maxLength":200}]},"zip":{"type":"string","allOf":[{"maxLength":200}]}},"required":["street","city","state","zip"],"additionalProperties":false}]}},"source":{"anyOf":[{"type":"string","allOf":[{"minLength":1},{"maxLength":100}]},{"type":"null"}]}},"required":["key","type","startsAt","contact"],"additionalProperties":false}}},"required":true}}}},"components":{"schemas":{"Union_":{"anyOf":[{"type":"string"},{"type":"null"}]},"Union_1":{"anyOf":[{"type":"string"},{"type":"null"}]},"Union_2":{"anyOf":[{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]},{"type":"null"}]},"Union_3":{"anyOf":[{"type":"string","allOf":[{"minLength":1},{"maxLength":32}]},{"type":"null"}]},"Objects_":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/Union_3"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false},"Arrays_":{"type":"array","items":{"$ref":"#/components/schemas/Objects_"}},"Objects_1":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/Union_3"},"value":{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]}},"required":["label","value"],"additionalProperties":false},"Arrays_1":{"type":"array","items":{"$ref":"#/components/schemas/Objects_1"}},"Objects_2":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/Union_3"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false},"Arrays_2":{"type":"array","items":{"$ref":"#/components/schemas/Objects_2"}},"Union_4":{"anyOf":[{"type":"number"},{"type":"string","enum":["Infinity","-Infinity","NaN"]}]},"Objects_3":{"type":"object","properties":{"label":{"$ref":"#/components/schemas/Union_3"},"formattedAddress":{"type":"string","allOf":[{"minLength":1}]},"addressLine1":{"anyOf":[{"type":"string"},{"type":"null"}]},"addressLine2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"zip":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]},"latitude":{"anyOf":[{"$ref":"#/components/schemas/Union_4"},{"type":"null"}]},"longitude":{"anyOf":[{"$ref":"#/components/schemas/Union_4"},{"type":"null"}]},"placeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"googleMapsURL":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","formattedAddress","addressLine1","addressLine2","city","state","zip","country","latitude","longitude","placeId","googleMapsURL"],"additionalProperties":false},"Arrays_3":{"type":"array","items":{"$ref":"#/components/schemas/Objects_3"}},"Union_5":{"anyOf":[{"type":"string"},{"type":"null"}]},"Union_6":{"anyOf":[{"type":"string"},{"type":"null"}]},"Union_7":{"anyOf":[{"type":"string"},{"type":"null"}]},"Union_8":{"anyOf":[{"type":"string","allOf":[{"minLength":1},{"maxLength":100}]},{"type":"null"}]},"Union_9":{"anyOf":[{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},{"type":"null"}]},"Objects_4":{"type":"object","properties":{"key":{"type":"string","allOf":[{"pattern":"^[A-Za-z0-9_.:-]{1,128}$","description":"1-128 of letters, digits, _ . : -"}]},"body":{"type":"string","allOf":[{"minLength":1},{"maxLength":20000}]}},"required":["body"],"additionalProperties":false},"Arrays_4":{"type":"array","items":{"$ref":"#/components/schemas/Objects_"}},"Arrays_5":{"type":"array","items":{"$ref":"#/components/schemas/Objects_1"}},"Arrays_6":{"type":"array","items":{"$ref":"#/components/schemas/Objects_2"}},"Arrays_7":{"type":"array","items":{"$ref":"#/components/schemas/Objects_3"}},"UnauthorizedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Unauthorized"]}},"required":["_tag"],"additionalProperties":false},"Objects_5":{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"firstName":{"type":"string","allOf":[{"minLength":1}]},"lastName":{"$ref":"#/components/schemas/Union_"},"jobTitle":{"$ref":"#/components/schemas/Union_1"},"birthDate":{"$ref":"#/components/schemas/Union_2"},"emails":{"$ref":"#/components/schemas/Arrays_"},"phones":{"$ref":"#/components/schemas/Arrays_1"},"urls":{"$ref":"#/components/schemas/Arrays_2"},"addresses":{"$ref":"#/components/schemas/Arrays_3"},"description":{"$ref":"#/components/schemas/Union_5"},"linkedin":{"$ref":"#/components/schemas/Union_6"},"image":{"$ref":"#/components/schemas/Union_7"},"favorite":{"type":"boolean"},"source":{"$ref":"#/components/schemas/Union_8"},"userId":{"$ref":"#/components/schemas/Union_9"}},"required":["kind","firstName"],"additionalProperties":false},"Objects_6":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":255}]},"size":{"type":"integer","allOf":[{"minimum":0}]},"contentType":{"anyOf":[{"type":"string","allOf":[{"maxLength":255}]},{"type":"null"}]}},"required":["url","name","size","contentType"],"additionalProperties":false},"Union_10":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["text","url","email"]},"value":{"type":"string"}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["number"]},"value":{"anyOf":[{"$ref":"#/components/schemas/Union_4"},{"type":"string","allOf":[{"pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal number"}]}]}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["date"]},"value":{"type":"string","allOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Calendar date (YYYY-MM-DD)"}]}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["select"]},"value":{"type":"string","allOf":[{"minLength":1}]}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["multiSelect"]},"value":{"type":"array","items":{"type":"string","allOf":[{"minLength":1}]}}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["phone"]},"value":{"type":"string","allOf":[{"pattern":"^\\+[1-9]\\d{1,14}$","description":"Phone number in E.164 format"}]}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["address"]},"value":{"$ref":"#/components/schemas/Objects_3"}},"required":["name","type","value"],"additionalProperties":false},{"type":"object","properties":{"name":{"type":"string","allOf":[{"minLength":1},{"maxLength":64}]},"type":{"type":"string","enum":["file"]},"value":{"type":"array","items":{"$ref":"#/components/schemas/Objects_6"},"allOf":[{"minItems":1},{"maxItems":10}]}},"required":["name","type","value"],"additionalProperties":false}]},"Arrays_8":{"type":"array","items":{"$ref":"#/components/schemas/Union_10"},"allOf":[{"maxItems":50}]},"Objects_7":{"type":"object","properties":{"kind":{"type":"string","enum":["company"]},"name":{"type":"string","allOf":[{"minLength":1}]},"emails":{"$ref":"#/components/schemas/Arrays_"},"phones":{"$ref":"#/components/schemas/Arrays_1"},"urls":{"$ref":"#/components/schemas/Arrays_2"},"addresses":{"$ref":"#/components/schemas/Arrays_3"},"description":{"$ref":"#/components/schemas/Union_5"},"linkedin":{"$ref":"#/components/schemas/Union_6"},"image":{"$ref":"#/components/schemas/Union_7"},"favorite":{"type":"boolean"},"source":{"$ref":"#/components/schemas/Union_8"}},"required":["kind","name"],"additionalProperties":false},"Union_11":{"type":"string","enum":["person","company","general"]},"Union_12":{"type":"string","enum":["text","url","email","number","date","select","multiSelect","phone","address","file"]},"NotFoundEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["NotFound"]},"resource":{"type":"string"},"id":{"type":"string"}},"required":["_tag","resource"],"additionalProperties":false},"GroupTypeMismatchEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["GroupTypeMismatch"]},"groupId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"existing":{"$ref":"#/components/schemas/Union_11"},"given":{"$ref":"#/components/schemas/Union_11"}},"required":["_tag","groupId","existing","given"],"additionalProperties":false},"ColumnTypeMismatchEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["ColumnTypeMismatch"]},"column":{"type":"string"},"existing":{"type":"string"},"given":{"$ref":"#/components/schemas/Union_12"}},"required":["_tag","column","existing","given"],"additionalProperties":false},"ForeignFileEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["ForeignFile"]},"column":{"type":"string"},"url":{"type":"string"}},"required":["_tag","column","url"],"additionalProperties":false},"Arrays_9":{"type":"array","items":{"type":"string"}},"Union_13":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}]},"urls":{"$ref":"#/components/schemas/Arrays_9"}},"required":["kind","name","firstName","lastName","jobTitle","id","email","phone","image","linkedin","urls"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["company"]},"name":{"type":"string"},"id":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}]},"urls":{"$ref":"#/components/schemas/Arrays_9"}},"required":["kind","name","id","email","phone","image","linkedin","urls"],"additionalProperties":false}]},"Objects_8":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"type":{"type":"string","enum":["image","video"]},"url":{"type":"string"},"alt":{"anyOf":[{"type":"string"},{"type":"null"}]},"width":{"anyOf":[{"type":"integer"},{"type":"null"}]},"height":{"anyOf":[{"type":"integer"},{"type":"null"}]},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","type","url","alt","width","height","thumbnail"],"additionalProperties":false},"Objects_9":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"question":{"type":"string"},"type":{"type":"string","enum":["text","number","date","radio","checkbox","multiSelect","address"]},"options":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"required":{"type":"boolean"}},"required":["id","question","type","options","required"],"additionalProperties":false},"Arrays_10":{"type":"array","items":{"type":"string"}},"Union_14":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"Arrays_11":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","image"],"additionalProperties":false}},"Union_15":{"type":"string","enum":["apparel","accessories","art","baby-and-kids","books-and-media","digital","electronics","food-and-drink","furniture","handmade","health-and-beauty","home-and-living","jewelry","music","office-and-stationery","outdoors","pet-supplies","photography","plants-and-garden","services","sports-and-fitness","tickets-and-passes","toys-and-games","vintage","other"]},"Objects_10":{"type":"object","properties":{"id":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"slug":{"type":"string"},"name":{"type":"string"},"category":{"$ref":"#/components/schemas/Union_15"},"image":{"anyOf":[{"$ref":"#/components/schemas/Objects_8"},{"type":"null"}]},"fromCents":{"type":"integer","allOf":[{"minimum":0}]},"toCents":{"type":"integer","allOf":[{"minimum":0}]}},"required":["id","slug","name","category","image","fromCents","toCents"],"additionalProperties":false},"LineUnavailableEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["LineUnavailable"]},"variantId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]},"reason":{"type":"string","enum":["not_found","not_for_sale","wrong_org","missing_weight"]}},"required":["_tag","variantId","reason"],"additionalProperties":false},"ConflictEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Conflict"]},"resource":{"type":"string"},"reason":{"type":"string"}},"required":["_tag"],"additionalProperties":false},"PaymentsNotReadyEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["PaymentsNotReady"]},"orgId":{"type":"string","allOf":[{"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|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}]}},"required":["_tag","orgId"],"additionalProperties":false},"TooManyRequestsEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["TooManyRequests"]},"retryAfterSeconds":{"type":"integer"}},"required":["_tag","retryAfterSeconds"],"additionalProperties":false},"Union_16":{"type":"string","enum":["design","marketing","development","writing-translation","video-animation","music-audio","business","consulting","photography","coaching","wellness","education","legal","finance","real-estate","events","home-services","beauty","tech-support","other"]},"UploadRejectedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["UploadRejected"]},"reason":{"type":"string","enum":["unsupported_type","too_large"]},"message":{"type":"string"}},"required":["_tag","reason","message"],"additionalProperties":false},"Union_17":{"anyOf":[{"$ref":"#/components/schemas/Objects_5"},{"$ref":"#/components/schemas/Objects_7"}]},"NoAddressEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["NoAddress"]}},"required":["_tag"],"additionalProperties":false},"Objects_11":{"type":"object","patternProperties":{"^[A-Za-z0-9_.-]{1,40}$":{"type":"string","allOf":[{"maxLength":500}]}}},"CheckoutUnavailableEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["CheckoutUnavailable"]}},"required":["_tag"],"additionalProperties":false},"SlotUnavailableEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["SlotUnavailable"]},"startsAt":{"type":"string"}},"required":["_tag","startsAt"],"additionalProperties":false},"BookingClosedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["BookingClosed"]},"reason":{"type":"string","enum":["archived","cancelled","past"]}},"required":["_tag","reason"],"additionalProperties":false},"AnswersInvalidEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["AnswersInvalid"]},"questionIds":{"type":"array","items":{"type":"string"}}},"required":["_tag","questionIds"],"additionalProperties":false},"ContactInfoRequiredEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["ContactInfoRequired"]},"fields":{"type":"array","items":{"type":"string","enum":["email","phone"]}}},"required":["_tag","fields"],"additionalProperties":false}},"securitySchemes":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header"},"bearer":{"type":"http","scheme":"Bearer"}}},"security":[],"tags":[{"name":"Contacts","description":"People and companies in the organization's address book. A call may leave a plain-text note on the contact it upserts."},{"name":"Groups","description":"Send rows to a group by name and type. A group that does not exist is created; a column that does not exist is created with the type the cell names. Contacts inside rows are upserted the way `PUT /contacts` does. Reading goes through a view, which is what a site is shown: its visible columns, its filters, its sort. A contact is read as a public card, never with an email, phone or address."},{"name":"Events","description":"Upcoming events and the page data for one of them."},{"name":"Newsletter","description":"Signing an address up to the organization's newsletter."},{"name":"Blog","description":"The organization's published posts."},{"name":"Products","description":"What the organization sells, how it is arranged, and the checkout page a site sends a buyer to."},{"name":"Services","description":"The services the organization offers."},{"name":"Uploads","description":"Uploading is two steps: ask for a signed url here, then PUT the file straight to it within the hour, sending `Content-Type` — and `Content-Disposition` when one is returned — exactly as given. `publicUrl` is where the file is served from, and what a `file` cell in `PUT /groups` takes."},{"name":"Me","description":"The signed-in visitor. Send the access token the person signed in to your site with as `Authorization: Bearer`, beside the API key. A missing or expired token is a 401: treat it as signed out."},{"name":"Emails","description":"One transactional email to one contact, sent from the organization's address. The subject and body are sent as written; the body is plain text. It is recorded on the contact's timeline, and an address that bounced or complained is not mailed again."},{"name":"Notifications","description":"Tells the organization's members something happened on its site. It lands in each member's notification feed and, unless they have turned \"Submissions\" off, in their inbox. The subject and body are the site's own words; the body is plain text."},{"name":"Checkouts","description":"A one-time payment for whatever the site sells: dues, a donation, a deposit. The lines are the site's own, amounts in cents. The organization needs a connected Stripe account that can take payments; `GET /org?include=paymentsReady` says whether it has one. The same key is the same checkout, so a retried call cannot open two."},{"name":"Organization","description":"The key's own organization. `?include=paymentsReady` adds whether it can take a payment, for a site deciding whether to show a pay button."},{"name":"Bookings","description":"Offer the organization's booking types on its own site. Read the types and the questions each asks, read the open times for a range of days, then book one for a contact. The person gets the same confirmation and calendar entry the hosted page sends."}]}