{"components":{"parameters":{"Id":{"schema":{"type":"integer","minimum":1},"name":"id","in":"path","required":true},"QueryMemberId":{"required":false,"name":"member_id","in":"query","schema":{"type":"integer","minimum":1}},"Status":{"schema":{"type":"integer"},"name":"status","in":"query"},"DateFrom":{"name":"from","in":"query","schema":{"type":"string","format":"date"}},"MemberId":{"name":"member_id","in":"path","required":true,"schema":{"minimum":1,"type":"integer"}},"Limit":{"in":"query","name":"limit","schema":{"maximum":100,"minimum":1,"type":"integer","default":25}},"IdempotencyKey":{"in":"header","name":"Idempotency-Key","required":false,"schema":{"type":"string","maxLength":80}},"DateTo":{"schema":{"type":"string","format":"date"},"name":"to","in":"query"},"LeadId":{"required":false,"name":"lead_id","in":"query","schema":{"minimum":1,"type":"integer"}},"QueryClassId":{"required":false,"name":"class_id","in":"query","schema":{"type":"integer","minimum":1}},"Cursor":{"in":"query","name":"cursor","schema":{"type":"integer","minimum":0}}},"securitySchemes":{"BearerAuth":{"type":"http","bearerFormat":"us_…","scheme":"bearer"}},"schemas":{"AttendanceInput":{"required":["member_id","class_id","date"],"properties":{"category_id":{"type":["integer","null"],"minimum":1},"class_id":{"type":"integer","minimum":1},"member_id":{"type":"integer","minimum":1},"date":{"type":"string","format":"date"}},"type":"object"},"InvoiceInput":{"properties":{"member_id":{"minimum":1,"type":"integer"},"amount":{"exclusiveMinimum":0,"type":"number"},"category_id":{"minimum":1,"type":["integer","null"]},"check_multiplier":{"maximum":5,"minimum":0,"type":"number"},"cc_multiplier":{"maximum":5,"minimum":0,"type":"number"},"description":{"type":"string"},"class_id":{"minimum":1,"type":["integer","null"]}},"required":["member_id","amount"],"type":"object"},"MemberEnrollment":{"required":["member_id"],"properties":{"member_id":{"type":"integer","minimum":1}},"type":"object"},"ClassInput":{"required":["name","duration","frequency","can_start","can_end"],"properties":{"duration":{"maximum":600,"type":"integer","minimum":1},"self_enroll":{"type":"boolean"},"frequency":{"minimum":0,"type":"integer"},"max_students":{"type":"integer","minimum":0},"can_end":{"type":"integer","minimum":0,"maximum":2400},"teacher_id":{"type":["integer","null"],"minimum":1},"room_id":{"minimum":1,"type":["integer","null"]},"times":{"type":"array","items":{"type":"object","required":["day_id","start_time"],"properties":{"day_id":{"type":"integer","minimum":1},"start_time":{"type":"integer","minimum":0,"maximum":2400}}},"description":"One day/time pair per day, stored in class_day_time; start_time is military time."},"name":{"type":"string","maxLength":99},"public_description":{"maxLength":5000,"type":"string"},"days":{"description":"Day IDs stored in class_day; the request replaces the complete class-day set.","items":{"minimum":1,"type":"integer"},"type":"array"},"can_start":{"maximum":2400,"minimum":0,"type":"integer"},"description":{"type":"string","maxLength":1000},"is_public":{"type":"boolean"}},"type":"object"},"MarkPaidInput":{"type":"object","properties":{"confirm":{"type":"boolean"},"payment_method_id":{"type":"integer","minimum":1}}},"ErrorBody":{"type":"object","properties":{"errors":{"type":"object"},"error":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}}}}},"InvoiceSendInput":{"properties":{"channel":{"type":"string","enum":["email","sms"]},"confirm":{"type":"boolean"}},"type":"object"},"ConfirmInput":{"properties":{"confirm":{"type":"boolean"}},"type":"object"},"ClassPatch":{"properties":{"self_enroll":{"type":"boolean"},"frequency":{"type":"integer","minimum":0},"duration":{"maximum":600,"type":"integer","minimum":1},"room_id":{"type":["integer","null"],"minimum":1},"teacher_id":{"minimum":1,"type":["integer","null"]},"can_end":{"maximum":2400,"minimum":0,"type":"integer"},"max_students":{"minimum":0,"type":"integer"},"times":{"type":"array","items":{"type":"object","required":["day_id","start_time"],"properties":{"start_time":{"maximum":2400,"minimum":0,"type":"integer"},"day_id":{"minimum":1,"type":"integer"}}},"description":"One day/time pair per day, stored in class_day_time; start_time is military time."},"days":{"type":"array","description":"Day IDs stored in class_day; the request replaces the complete class-day set.","items":{"minimum":1,"type":"integer"}},"name":{"type":"string","maxLength":99},"public_description":{"maxLength":5000,"type":"string"},"can_start":{"minimum":0,"type":"integer","maximum":2400},"description":{"maxLength":1000,"type":"string"},"is_public":{"type":"boolean"}},"type":"object"}},"responses":{"Conflict":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request conflicts with the current resource state."},"UnprocessableEntity":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The request did not pass validation."},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The resource was not found in the key company."},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, expired, or revoked API key."},"Forbidden":{"description":"The key is missing a required scope or privilege.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"Error":{"description":"API error","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"object"},"error":{"type":"object"}}}}}},"TooManyRequests":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A rate or company daily message limit was exceeded.","headers":{"Retry-After":{"schema":{"type":"integer"}}}},"Json":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON response"}},"requestBodies":{"InvoiceSendInput":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceSendInput"}}}},"JsonObject":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"ConfirmInput":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmInput"}}}},"ClassPatch":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassPatch"}}},"required":true},"AttendanceInput":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttendanceInput"}}}},"InvoiceInput":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceInput"}}},"required":true},"MemberEnrollment":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberEnrollment"}}},"required":true},"ClassInput":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassInput"}}},"required":true},"MarkPaidInput":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkPaidInput"}}},"required":true}}},"openapi":"3.1.0","info":{"title":"users.solutions API","version":"1.0.0","license":{"identifier":"LicenseRef-Proprietary","name":"Proprietary"},"description":"Company, member, lead, class, attendance, invoice, message, and automation endpoints for users.solutions."},"paths":{"/auto-invoices":{"get":{"responses":{"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"operationId":"getAutoInvoices","security":[{"BearerAuth":[]}],"summary":"List company automatic invoice rules"}},"/leads/{id}/notes":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"201":{"$ref":"#/components/responses/Json"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Add a lead note","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"BearerAuth":[]}],"operationId":"postLeadsIdNotes","requestBody":{"$ref":"#/components/requestBodies/JsonObject"}}},"/rooms":{"get":{"responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"}},"operationId":"getRooms","security":[{"BearerAuth":[]}],"summary":"List active company rooms"}},"/attendance":{"get":{"parameters":[{"$ref":"#/components/parameters/QueryClassId"},{"$ref":"#/components/parameters/QueryMemberId"},{"$ref":"#/components/parameters/DateFrom"},{"$ref":"#/components/parameters/DateTo"}],"operationId":"getAttendance","security":[{"BearerAuth":[]}],"responses":{"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"summary":"List attendance records"},"post":{"responses":{"201":{"$ref":"#/components/responses/Json"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postAttendance","security":[{"BearerAuth":[]}],"requestBody":{"$ref":"#/components/requestBodies/AttendanceInput"},"summary":"Record attendance idempotently"}},"/invoices/{id}/send":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"operationId":"postInvoicesIdSend","security":[{"BearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/InvoiceSendInput"},"summary":"Preview or confirm an invoice reminder"}},"/invoices/{id}":{"delete":{"requestBody":{"$ref":"#/components/requestBodies/ConfirmInput"},"summary":"Preview or confirm invoice deletion","responses":{"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"BearerAuth":[]}],"operationId":"deleteInvoicesId","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"confirm"}]},"get":{"security":[{"BearerAuth":[]}],"operationId":"getInvoicesId","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"}},"summary":"Get an invoice with its web and pay URLs"},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/classes/{id}":{"patch":{"operationId":"patchClassesId","security":[{"BearerAuth":[]}],"responses":{"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"}},"summary":"Update a class","requestBody":{"$ref":"#/components/requestBodies/ClassPatch"}},"get":{"security":[{"BearerAuth":[]}],"operationId":"getClassesId","responses":{"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"}},"summary":"Get a class with days, times, room, teacher, and enrolled members"},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/automations/{id}/enable":{"post":{"summary":"Enable an automation","operationId":"postAutomationsIdEnable","security":[{"BearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/classes":{"post":{"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"BearerAuth":[]}],"operationId":"postClasses","responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"201":{"$ref":"#/components/responses/Json"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Create a class","requestBody":{"$ref":"#/components/requestBodies/ClassInput"}},"get":{"summary":"List company classes with schedule and enrolled members","operationId":"getClasses","security":[{"BearerAuth":[]}],"responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/messages/email":{"post":{"responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postMessagesEmail","security":[{"BearerAuth":[]}],"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"summary":"Preview or send email to members and leads"}},"/classes/{id}/members/{member_id}":{"parameters":[{"$ref":"#/components/parameters/Id"},{"$ref":"#/components/parameters/MemberId"}],"delete":{"summary":"Preview or confirm class unenrollment","requestBody":{"$ref":"#/components/requestBodies/ConfirmInput"},"parameters":[{"schema":{"type":"boolean"},"in":"query","name":"confirm"}],"security":[{"BearerAuth":[]}],"operationId":"deleteClassesIdMembersMember_id","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/invoices":{"post":{"summary":"Create an invoice","requestBody":{"$ref":"#/components/requestBodies/InvoiceInput"},"security":[{"BearerAuth":[]}],"operationId":"postInvoices","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"201":{"$ref":"#/components/responses/Json"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"get":{"summary":"List invoices","responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"}},"parameters":[{"$ref":"#/components/parameters/QueryMemberId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/DateFrom"},{"$ref":"#/components/parameters/DateTo"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"operationId":"getInvoices","security":[{"BearerAuth":[]}]}},"/messages":{"get":{"summary":"Read SMS and email usage logs","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"BearerAuth":[]}],"operationId":"getMessages","parameters":[{"$ref":"#/components/parameters/QueryMemberId"},{"$ref":"#/components/parameters/LeadId"}]}},"/invoice-categories":{"get":{"summary":"List active invoice categories","responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"}},"operationId":"getInvoiceCategories","security":[{"BearerAuth":[]}]}},"/classes/{id}/members":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"requestBody":{"$ref":"#/components/requestBodies/MemberEnrollment"},"summary":"Enroll a member in a class","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"},"201":{"$ref":"#/components/responses/Json"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}},"operationId":"postClassesIdMembers","security":[{"BearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/company":{"patch":{"responses":{"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"BearerAuth":[]}],"operationId":"patchCompany","requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"summary":"Update editable company contact fields"},"get":{"summary":"Read the key's company","operationId":"getCompany","security":[{"BearerAuth":[]}],"responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/fields/{id}":{"patch":{"summary":"Update a member field","requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"security":[{"BearerAuth":[]}],"operationId":"patchFieldsId","responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"}}},"delete":{"security":[{"BearerAuth":[]}],"operationId":"deleteFieldsId","parameters":[{"in":"query","name":"confirm","schema":{"type":"boolean"}}],"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Deactivate a member field after confirmation"},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/leads/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"summary":"Get a lead and recent activity","security":[{"BearerAuth":[]}],"operationId":"getLeadsId","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}}},"patch":{"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"summary":"Update lead contact fields, stage, and tags","responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"operationId":"patchLeadsId","security":[{"BearerAuth":[]}]}},"/automations/{id}":{"get":{"responses":{"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"operationId":"getAutomationsId","security":[{"BearerAuth":[]}],"summary":"Get an automation and its latest 20 runs"},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/teachers":{"get":{"summary":"List company teachers","security":[{"BearerAuth":[]}],"operationId":"getTeachers","responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/member-form":{"get":{"responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"BearerAuth":[]}],"operationId":"getMemberForm","summary":"Get standard and custom member fields"}},"/members/{id}":{"delete":{"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Deactivate a member after confirmation","operationId":"deleteMembersId","security":[{"BearerAuth":[]}],"parameters":[{"schema":{"type":"boolean"},"name":"confirm","in":"query"}],"requestBody":{"$ref":"#/components/requestBodies/JsonObject"}},"get":{"responses":{"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"security":[{"BearerAuth":[]}],"operationId":"getMembersId","summary":"Get a member and custom field values"},"parameters":[{"$ref":"#/components/parameters/Id"}],"patch":{"operationId":"patchMembersId","security":[{"BearerAuth":[]}],"responses":{"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"summary":"Update a member","requestBody":{"$ref":"#/components/requestBodies/JsonObject"}}},"/members":{"post":{"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postMembers","security":[{"BearerAuth":[]}],"summary":"Create a member","responses":{"201":{"$ref":"#/components/responses/Json"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"get":{"responses":{"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"parameters":[{"schema":{"type":"string"},"in":"query","name":"q"},{"schema":{"type":"integer","enum":[0,1]},"name":"status","in":"query"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"operationId":"getMembers","security":[{"BearerAuth":[]}],"summary":"List members"}},"/openapi.json":{"get":{"summary":"Get this OpenAPI document","responses":{"200":{"description":"OpenAPI 3.1 document"},"404":{"$ref":"#/components/responses/NotFound"}},"operationId":"getOpenApiJson","security":[]}},"/automations/{id}/disable":{"post":{"operationId":"postAutomationsIdDisable","security":[{"BearerAuth":[]}],"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Disable an automation"},"parameters":[{"$ref":"#/components/parameters/Id"}]},"/fields":{"get":{"summary":"List member fields","responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"BearerAuth":[]}],"operationId":"getFields"},"post":{"responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"201":{"$ref":"#/components/responses/Json"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"Create a member field","security":[{"BearerAuth":[]}],"operationId":"postFields","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/JsonObject"}}},"/messages/sms":{"post":{"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"summary":"Preview or send SMS to members and leads","responses":{"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}},"operationId":"postMessagesSms","security":[{"BearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/automations":{"get":{"summary":"List company automations with step summaries","operationId":"getAutomations","security":[{"BearerAuth":[]}],"responses":{"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"403":{"$ref":"#/components/responses/Forbidden"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/invoices/{id}/mark-paid":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"security":[{"BearerAuth":[]}],"operationId":"postInvoicesIdMarkPaid","responses":{"403":{"$ref":"#/components/responses/Forbidden"},"200":{"$ref":"#/components/responses/Json"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"401":{"$ref":"#/components/responses/Unauthorized"}},"summary":"Preview or confirm a manual mark-paid update","requestBody":{"$ref":"#/components/requestBodies/MarkPaidInput"}}},"/leads":{"post":{"requestBody":{"$ref":"#/components/requestBodies/JsonObject"},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"operationId":"postLeads","security":[{"BearerAuth":[]}],"summary":"Create a lead","responses":{"429":{"$ref":"#/components/responses/TooManyRequests"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"201":{"$ref":"#/components/responses/Json"},"409":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}},"get":{"security":[{"BearerAuth":[]}],"operationId":"getLeads","parameters":[{"schema":{"type":"string"},"in":"query","name":"q"},{"name":"stage","in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"404":{"$ref":"#/components/responses/NotFound"},"200":{"$ref":"#/components/responses/Json"},"403":{"$ref":"#/components/responses/Forbidden"}},"summary":"List leads"}}},"servers":[{"url":"https://users.solutions/api/v1"}]}