MCP App Store
by KeenEthics

Overview

1barn is barn management software for boarding and lesson barns. Connect your 1barn account and ask ChatGPT what's due, who owns a horse, which stalls are open, or where the signed boarding contract for a horse is. Staff can log care, add health records, mark a horse injured, schedule service days, send documents for signature, set up event types with deposits, check people in, see bookings and open times, manage lesson terms and let the solvers propose the timetable, run the staff schedule, and message the barn. Boarders see their own horses. Every action runs under your 1barn login and the role your barn gave you.

Tools

barn_add_family_member

ChatGPT
Add someone to the caller's family at the barn, as My info's Add family member does: always a new person (never matched to someone already there), linked to the caller (a child: they see the child's and the child's lessons and sign-ups go on the caller's account; a spouse: both ways; someone else: nothing shared), and the barn told. It makes a person and tells the barn, so call it first without confirm: nothing changes and the answer says what would happen; call again with confirm=true only after the person says yes.

barn_add_health_record

ChatGPT
Write down that something happened — shots given, feet done, the vet out. The next due date is worked out from the barn's interval unless you pass one; a vet who says "back in three weeks" outranks the interval. Record a vaccine's lot number when you have it: that's the number a recall notice quotes. notes is Markdown (up to 10,000 characters) and internal to staff unless notes_shared is true, which shows the notes to the horse's owner too; leave it false unless the user asked to share them. Staff only.

barn_add_health_records

ChatGPT
The same record for several horses in one save — the vet did spring shots for the whole barn, the farrier did eight. One record per horse, each horse's next due date from its own cycle unless you pass one. All or nothing: an unknown or archived horse saves none of them. notes is Markdown, internal to staff unless notes_shared is true (then each horse's owner sees them); leave it false unless the user asked to share them. Staff only.

barn_add_horse_to_service_day

ChatGPT
Sign a horse up for a service day. Staff can add any horse; an owner can add their own. The note is what the provider needs to know — "hinds only", "needs to be first, he doesn't wait well".

barn_add_horses_with_answers

ChatGPT
Put horses on a service day, each its own way: [{horse_id, mode: ask | fill | none, answers?, finished?}]. ask sends the owner a notice and an email to answer in 1barn; fill saves answers now (keyed by question id, short name or label); none puts the horse on with nothing asked. All or nothing when it can't be done (not your horse, closed, full); a horse already on is skipped. When any horse is ask, call it first without confirm: nothing is added, and the answer says who would hear; call again with confirm=true only after the person says yes. Modes are staff's; an owner's entries are their own horse's answers.

barn_add_my_emergency_contact

ChatGPT
Add an emergency contact for the caller and the people they keep: always a new person at the barn. The barn is told. Answers My info.

barn_add_note

ChatGPT
Add a note (subject: horse|person; visibility: staff|owners|all, default staff). body is Markdown (bold, lists, links), up to 10,000 characters. Docs: https://help.1barn.com/assistants/

barn_add_party

ChatGPT
Give someone an interest in a horse (role: owner|lessee|billing| agent|trainer|contact), from a date. This is also what lets them see the horse at all, so a full-lease arrangement usually means a lessee row here. A contact is connected without owning it (a rider, family, someone who pays) and sees the horse only when can_see is true, or, left off, when the barn's default lets contacts see their horses. percent is for split ownership — leave it off when someone owns the whole horse. Use barn_transfer_horse for a sale; this adds a party without ending anyone else's. Staff only.

barn_archive_label

ChatGPT
Archive a label (name or id): it leaves the People filter, the pickers, messaging and people's pages, and everyone keeps it, so barn_unarchive_label brings it back exactly. Staff.

barn_archive_person

ChatGPT
Archive a person, as their page's Archive does: off every list, their login here off, open invites cancelled; nothing they did is removed. Someone others bill to asks first who pays now for each of them (question, with each person's options): ask the person and send the answers as bills_to {person_id: "keep" | "own" | a person id}. Keep is anyone's; another answer needs finance. Call it first without confirm: nothing changes; call again with confirm=true only after the person says yes. The owner, or a manager with the logins permission; refused for anyone who works here (staffing_change_employment_status does it). Notifies nobody.

barn_archive_service_day

ChatGPT
Take a service day off the calendar, its list and all (archived, not deleted: who was on last spring's vaccine day stays on record). Notifies nobody; members' calendar subscriptions drop it. Call it first without confirm: nothing changes, and the answer names the day and how many horses are on it; tell the person, and call again with confirm=true only after they say yes. Staff only.

barn_arrange_shapes

ChatGPT
Line up shapes on a map as one change. The owner, or a manager with the settings permission.

barn_ask_service_day_order

ChatGPT
Ask 1barn's second look at a service day's order as it stands (call barn_suggest_service_day_order first): reads the owners' notes and the provider's plan and proposes moves, each with its reason quoting the note. Changes nothing: tell the person the moves, and save order with barn_set_service_day_order only if they agree. Counts as half an Ask question; asked false means it couldn't run and the order stands. Staff only.

barn_assign_space

ChatGPT
Put a horse in a space — a stall, a run, a paddock, a pasture. This is the tool for "move X to stall 6" and "turn X out in the back field". is_home moves it there to live (ending its previous home); is_turnout is where it goes out. A pasture is often both at once. Space ids come from barn_get_facility_map; a space that doesn't exist yet is made with barn_create_space. Capacity-checked. Staff only.

barn_assign_stall

ChatGPT
Move a horse into a stall (or any space) to live there — the same as barn_assign_space with is_home. Ends its previous home. Give the space as space_id; stall_id means the same thing. Staff only.

barn_assign_turnout

ChatGPT
Turn a horse out in a paddock, pasture or turnout — the same as barn_assign_space with is_turnout. Its home is untouched. Give the space as space_id; turnout_id means the same thing. Staff only.

barn_attach_file

ChatGPT
Attach one of a horse's files to its health record or paper, replacing any file there, or take it off. A paper's file is shared with the horse's owners when attached (barn_update_file turns that off); a health record's file stays as it was. Notifies nobody. Staff only.

barn_calendar_color_suggestions

ChatGPT
The active horses and teaching people with no calendar color (they draw grey on the calendar), each with a suggested color (#rrggbb) from the calendar's palette, distinct from the colors that kind already has: horses, people ([{id, name, color}]), taken (the colors each kind already uses) and uncolored ({horses, people} counts). Saves nothing; barn_set_calendar_colors saves. Staff only.

barn_calendar_colors

ChatGPT
Everyone's calendar colors (Settings › Calendar colors): people (staff and Instructors, who color the Schedule and the lesson calendar) and horses (active lesson horses), each {id, name, color (#rrggbb or null), looks_like: the others of that kind whose color reads as the same}; and suggested ({people, horses}: [{id, name, was, color}]), the changes that spread each kind's colors out. Saves nothing; barn_set_calendar_colors saves. Staff only.

barn_care_day

ChatGPT
The whole barn's round for a day — everything logged (items), and flagged: the positions in items of what was marked not done, which is what somebody has to read before they go home. The day is the barn's own, in its timezone. Defaults to today. Staff only.

barn_care_log

ChatGPT
What actually happened to this horse lately, newest first, with who did it (by name). An owner sees their own horse's, minus anything kept back.

barn_care_month

ChatGPT
Care › Month, the barn's paper calendar of extra care: each horse's Extra care and temporary care lines (stall rest for a week, a course of meds) in a month, each a run of days with which were done, by whom, and what each charged; days still to come say what they will charge. Staff; prices only, never balances.

barn_care_plan

ChatGPT
A horse's care plan as its owner reads it: every line in force or still to start (feed, hay, supplements, meds, turnout, blankets), by round, with no one's name on them; and the caller's suggestions for it (for the barn's owner and managers, everyone's still waiting). For the horse's owners and lessees while the lease runs, when the barn shares plans (access says what the caller may do), and for staff. Never the care log or who did what. Each line's id is what barn_suggest_care_change takes as instruction_id.

barn_care_reminders

ChatGPT
The barn's owner reminders (Settings › Horse care): whether a horse's owners and lessees hear when its care comes due (remind_owners, on unless turned off: the care they schedule themselves and dates typed on their horse's records), and whether that includes barn-policy care (barn_policy_too, off unless turned on: core vaccines, deworming, Coggins). App and email, at most twice per item and due date: when it comes inside its warning time, and once if it passes the date.

barn_care_sharing

ChatGPT
What the barn shares of horses' care with their owners (Settings › Horse care › What owners see): owners_see_plan (owners, and lessees while the lease runs, see their horse's care plan, never the log), owners_suggest (they can suggest changes) and staff_approve (staff without manager rights can approve them too).

barn_care_suggestions

ChatGPT
Care suggestions from horse owners, newest first. The barn's owner and managers (and staff, when the barn lets them decide) get the barn's waiting ones, or another status (pending, approved, declined, withdrawn); a client gets their own. horse_id narrows to one horse; limit at most 100. Each says what it would change from (now) and to (suggested), why, who sent it and what the barn answered.

barn_care_today

ChatGPT
The whole barn's care for today, as the Care page shows it: every horse in barn order (the walk down the aisle), with where it lives, its health status, and its care lines by round (am, noon, pm, night, any). Rounds aren't clock times: what time the morning feed happens is the barn's business, so never say one. Each line says what it is and done: who marked it and when (skipped with a note when it was marked not done), or null while it's still to do. logged is how many care-log entries stand today and by how many people. Each line's instruction_id is what barn_mark_care_done and barn_mark_care_done_many take. places lists each place's own care (a paddock's hay, a field's trough), with the horses that live or are turned out there, in the same shape. Staff only.

barn_change_extra_care

ChatGPT
Change logged Extra care where it's seen (a horse's Care log): how many, the note, the day, or the price of one with no price of its own. A price list price changes in the month's care charges instead (finance_set_care_charge). Never an undone or posted entry. Whoever logged it, a manager or the owner.

barn_clear_reminder_interval

ChatGPT
Put a cycle back to what applies without it: a horse's own cycle (pass horse_id) back to the barn's, a vaccine's own (product) back to the barn's vaccination cycle, or the barn's back to 1barn's default. Existing due dates don't move. Nothing to clear isn't an error. Returns what now applies: kind, every_days, lead_days and source ("barn" or "default"; nulls when nothing does). The barn's own cycle: the owner, or a manager with the settings permission; a horse's: any staff member.

barn_close_arena

ChatGPT
Close an arena for a time (spec 80): bookable times there stop, a lesson scheduled there warns, and families see it on the calendar. Owners and managers; no "all arenas" (close each one). Call without confirm first: nothing changes, and the answer lists what's in the arena then, each with its choices. Put each to the person (move to another arena where there's room, keep it going ahead, or cancel it the usual way: the barn's side, "Arena or facility", families told, make-up credits by policy, a booking refunded), and the post. Then call with answers and confirm=true only after they say yes.

barn_closure_preview

ChatGPT
What closing an arena then would meet, changing nothing: each lesson and event in it then with its choices (answer values for barn_close_arena: move:<arena_id> where there's room, keep, cancel; an event place:<arena_id> or keep), what a cancel refunds, and the post to boarders. Times are the barn's: part of a day is starts_on with start_time and end_time (HH:MM); all day is all_day=true; several days adds ends_on (through); repeat_weekly_until repeats it weekly. Owners and managers.

barn_confirm_emergency_card

ChatGPT
Say the card is still right, without changing anything. Use this when an owner has read it back and confirmed it.

barn_connect_login

ChatGPT
Decide one Connect this login (an id from barn_login_connections): action connect (with person_id, one of its candidates), new_person (a new person for the login), leave (stays unconnected; they book as a guest), or undo (takes the choice back; a connection is disconnected). Connecting gives the login that person's portal as a customer and emails them; it never merges records. Call first without confirm: nothing changes, and the answer says what would happen; call again with confirm=true only after the person says yes. The owner, or a manager with the logins permission.

barn_create_arena

ChatGPT
Add an arena: "Indoor Arena", "Dressage Ring", "Jump Field". cover is indoor, covered or outdoor; size and surface are free text as the barn says them ("60 × 120 ft", "sand and fiber"); lights says whether it's lit; uses is any of lessons, events, open_riding, lunging, jumping, turnout; capacity is how many lessons may run in it at once (the arena kind's usual number when left out); parent_space_id puts it inside a barn (an indoor arena under the barn's roof). Anything not said can be added later with barn_update_arena. Staff only.

barn_create_horse

ChatGPT
Create a horse (sex: mare|gelding|stallion|unknown). name is what the barn calls it; registered_name, optional, is what's on its papers. foaled_on is the full foaling date (YYYY-MM-DD) when known, and sets the foal year; weight_lb is whole pounds; uses is any of boarder, competition, pleasure, for_sale, trail, in_training; height is hands and inches to the half inch, as said: "15.2", "15.2½", "15h 2.5in", or inches, "62.5in". Staff only.

barn_create_map

ChatGPT
Make a new map on a plain grid. A picture behind it is uploaded in the app. barn_lay_out_stalls fills a barn's floor plan. The owner, or a manager with the settings permission.

barn_create_organization

ChatGPT
Add an organization: a vet clinic, a farrier's business, a feed company, or the barn's own business ("Stagecoach Stables") that owns horses. It's kept with the barn's people, so it can be a horse's vet or owner, a service day's vendor or the emergency card's vet, just as a person can. It has one name, its own email (the front desk), phone, website, address ({street1, street2, city, state, postal_code, country}) and vendor_types (the barn's names or keys, barn_list_vendor_types: a clinic is "Vet"). It can't sign in or be billed, and has no birth date or rider level. Add the people who work there with barn_create_person's organization, or barn_update_person's for someone already in the barn. Returns its id, name and vendor types. Staff only.

barn_create_person

ChatGPT
Create a person. works_here puts them on the schedule and payroll (staff); tags are the relationships records can't tell: vendor and emergency_contact. A vendor's vendor_types are the barn's names or keys (barn_list_vendor_types), several allowed ("Bodywork", "Chiropractor"); giving any makes them a vendor. The old tags vet and farrier still work and mean those types. Boarder, rider and parent are worked out from horses, lessons and family, so aren't set here. alternate_emails are other valid addresses they write from (never used to sign in), alternate_phones other numbers. address and billing_address are {street1, street2, city, state, postal_code, country}; billing_same_as_mailing says the bills go to the mailing address. kind (boarder|staff|vendor_contact|other) is still taken from older callers. Returns their id, name, relationships and vendor types. Staff only.

barn_create_service_day

ChatGPT
Put a service day on the barn calendar that owners can sign their horses up for (kind: farrier|vet|vaccine|dentist|bodywork|clinic|other). Set capacity when the provider can only get through so many. notes are for the owners, in Markdown (bold, short lists, links; plain text is fine). Staff only.

barn_create_space

ChatGPT
Add a space to the facility: "Turnout 6", "Stall 12", "Back Pasture". kind is a space kind's name or key (see barn_list_space_kinds — stall, turnout, paddock, pasture, barn…). parent_space_id puts it inside another space, a stall inside a barn; capacity is how many horses it holds, defaulting to the kind's usual number. Staff only.

barn_create_space_kind

ChatGPT
Add a kind of space to the barn (Settings › Spaces): "Run-in shed", "Round pen". can_be_home: horses can live in one; can_be_turnout: horses can go out in one; assignable: it takes horses at all (false for a tack room or wash rack); default_capacity: how many horses one usually holds. Spaces of it are then made with barn_create_space. Notifies nobody. The owner, or a manager with the settings permission.

barn_create_vendor_type

ChatGPT
Add a kind of vendor to the barn's list (Settings › Vendor types): "Saddle fitter", "Massage". It goes at the end; reorder with barn_reorder_vendor_types. Notifies nobody. The owner, or a manager with the settings permission.

barn_decide_care_suggestion

ChatGPT
Approve or decline an owner's care suggestion. The barn's owner and managers (and staff, when the barn lets them). decision: approve changes the plan: a change replaces the line from its start day (the old one ends that day and stays in the horse's history), a stop ends the line, something new is added. Pass any of care_time, product, amount, unit, detail, effective_from, effective_to (ISO dates) to approve an edited version instead. decline needs note: the reason, which the owner reads; the plan stays as it was. With an approval note is optional and goes to the owner too. Either way the owner gets a notice (their phone, their email). Call it first without confirm: nothing changes, and the answer says what would happen and who would be notified; tell the person, and call again with confirm=true only after they say yes.

barn_decide_health_status_suggestion

ChatGPT
Accept or decline an owner's suggested health status. Staff. accept sets the horse's health status as suggested (its history kept); decline needs note, the reason the owner reads, and the status stays. Either way the owner gets a notice. Call it first without confirm: nothing changes, and the answer says what would happen; call again with confirm=true only after the person says yes.

barn_decline_service_day

ChatGPT
An owner's "Not this time" for one of their horses on a service day still taking sign-ups (the Calendar's Book & sign up): the horse shows as declined on the barn's list, isn't asked again, and can still be added (barn_add_horse_to_service_day) until sign-ups close, which clears this. undo=true takes the answer back. A horse already on the list is taken off with barn_remove_horse_from_service_day instead. Families for their own horses; staff on an owner's behalf. Tells nobody. Returns day_id, horse_id, horse_name and declined.

barn_delete_health_record

ChatGPT
Delete a health record entered by mistake, for good. Call it first without confirm: nothing changes, and the answer says which record it is; tell the person, and call again with confirm=true only after they say yes. Notifies nobody. Staff only.

barn_delete_label

ChatGPT
Delete a label (name or id): it comes off everyone who has it; the people stay. Say how many have it and ask before confirming. Staff.

barn_delete_map

ChatGPT
Delete a map and its shapes; spaces and horses don't change, and shapes on other maps that opened it stop linking. barn_restore_map brings it all back. Say which and ask before confirming. The owner, or a manager with the settings permission.

barn_delete_note

ChatGPT
Delete a note on a horse or person, for good. The owner or a manager can delete any note; anyone else only one they wrote. Without confirm=true it says what it would do and changes nothing.

barn_delete_renewal

ChatGPT
Delete a paper (a Coggins, insurance) entered by mistake, for good. Call it first without confirm: nothing changes, and the answer says which paper it is; call again with confirm=true only after the person says yes. Notifies nobody. Staff, or the horse's owner or lessee on a paper they added.

barn_disconnect_login

ChatGPT
Disconnect a customer's login from their person record: the login loses its place at this barn and the person keeps their record (barn_archive_person or turning the login off are for stopping access but keeping the connection). Logged; nobody is emailed. Call first without confirm: nothing changes, and the answer says what would happen; call again with confirm=true only after the person says yes. The owner, or a manager with the logins permission.

barn_edit_closure

ChatGPT
Change a closure's times, why or note. Only what's given changes. Anything newly in the arena then needs an answer, as when closing (what was answered before isn't asked again). Call without confirm first (nothing changes), then with answers and confirm=true once the person says yes. Owners and managers.

barn_emergency_card

ChatGPT
Who to call and what you're allowed to do if this horse is in trouble at 2am: vet and after-hours number, referral hospital, colic surgery authority, spend limit, insurer, hauler, and instructions (anything else to know, in Markdown). Read this before acting, not after. Also says when a human last confirmed it — a card nobody has looked at in two years is the one that gets it wrong. The policy number, spend limit and euthanasia authority are shown to staff and to the horse's owner, lessee or agent only.

barn_emergency_gaps

ChatGPT
Horses whose emergency card is missing, incomplete, or too old to trust — the list to work through before you need any of it. Staff only.

barn_end_assignment

ChatGPT
End one assignment — out of a stall, in from a field. Staff only.

barn_end_care_instruction

ChatGPT
Take something off the board — the course finished, the supplement stopped. It stays in the history. Staff only.

barn_end_party

ChatGPT
End an interest — the lease is up, the share was sold. The row stays on the record with its dates; ending it is what takes the horse off that person's list. Staff only.

barn_extra_care_options

ChatGPT
What Extra care offers: the barn's charged care items (most used first, with their prices) and every horse here with who pays for it. Staff; prices only, never balances.

barn_file_service_day

ChatGPT
File to records (spec 91): after a farrier, vet, vaccine, dentist, bodywork, chiro or deworming day, put the horses seen into their health records: the kind from the day, its first date, the provider from who's coming, the owner's answer as the note. With charges, the day's barn services done (Catch and hold, Hoof dressing) are charged too, as care charges for the month (any kind of day). Without horse_ids or charges it only lists the day's horses, which are filed already and each one's ticked services: ask the person which were seen and done before filing. A horse filed or charged already is skipped. Staff only.

barn_files

ChatGPT
The files kept on a horse or a person (PDFs, scans; not photos), newest first. For a horse: staff see every file but the signed forms' copies, and in signed every form that names the horse; a client sees the files shared with owners, and only a current owner or lessee sees signed forms (as files, or in signed), never a billing contact, agent, trainer or contact. A person's files are staff only. Open one in the app; uploading is in the app too.

barn_get_facility_map

ChatGPT
Where is everyone: the space tree with occupants. Large: for a big barn prefer barn_list_spaces (names, kinds, counts, no occupants) and come here only for who is in a particular space. Staff only.

barn_get_horse

ChatGPT
Horse profile: identity (including foaling date, weight in pounds, uses, and height: height_in in total inches and height as said, "15.2½ hh"), health status (healthy, injured, rehabbing or sick, since when, a note, and its history), owners and vendors by name, and where it is now — its home, its turnouts and anywhere temporary. What it eats and gets is barn_horse_care.

barn_get_map

ChatGPT
A map the barn drew: who's in each space on it by Turnout or Home, today, what a barn with stalls says ("14 of 16 stalls full"), what isn't on this map, and the tally. Answers "what's on the winter plan". For where everyone is across the whole barn, barn_get_facility_map. Staff only.

barn_get_person

ChatGPT
One person: relationships, login role and status, invite status, vendor_types, organization and labels, with their email, phone, other emails and phones, and mailing and billing addresses when on file. A birth date shows only as date_of_birth_on_file and insurance only as insurance_on_file (true or false); a person reads their own insurance with barn_my_insurance. Staff only.

barn_get_service_day

ChatGPT
One service day in full: the provider, the notes for owners (Markdown), the sign-up list with every horse on it, and the caller's horses that could still be added (addable_horses).

barn_health_status_suggestions

ChatGPT
Health statuses owners suggested for their horses, newest first. Staff get the barn's waiting ones (or another state); an owner gets their own. horse_id narrows to one horse; limit at most 100. Each says the status, since when, the note, who sent it and what the barn answered.

barn_horse_care

ChatGPT
What this horse is on: feed, hay, supplements, medication, turnout, blanketing. include_past adds what it used to be on and when that changed — which is the question a vet asks after a colic. Anyone who can see the horse can read this. Each line says what ("2 scoops Senior"), when, from and to which day, and who set it, with any detail in Markdown; its id is what replaces_id and barn_end_care_instruction take.

barn_horse_due

ChatGPT
What one horse has coming due, most pressing first: anything overdue, then what every horse should have on file and this one has never had (status: missing: vaccinations, deworming, dental, farrier, a Coggins), then what's due soon, then later dates. attention counts the overdue, missing and due-soon items. For the whole barn, use barn_whats_due.

barn_horse_new_notes

ChatGPT
How many of this horse's notes are new to you: written by someone else since you last read them (in the app or with barn_mark_notes_read), counting only notes you may see. read_at is when that was, null if never. Read them with barn_list_notes.

barn_horse_parties

ChatGPT
Everyone with an interest in this horse and what kind — owner, lessee, billing, agent, trainer, contact — with shares where ownership is split. A contact (a rider, family, someone who pays) sees the horse only when allowed: sees_horse says whether they do, can_see is their own switch (null = the barn's default). include_past adds everyone who used to, and when they stopped. Each row's id is what barn_end_party takes.

barn_horse_records

ChatGPT
One horse's history, newest first (kind: vaccination|deworming| dental|farrier|vet_visit|medication|injury|lameness|therapy| joint_injection|test|measurement|other): what was done, when, the product and lot, who did it and when it's next due. notes are Markdown; staff see them all with notes_shared, an owner sees only the notes staff shared with them.

barn_horse_renewals

ChatGPT
Paperwork with an expiry date — Coggins, registration, passport, insurance, memberships — and how close each is to lapsing. The number on each paper (reference) is shown to staff. notes are Markdown; an owner sees only the notes staff shared with them.

barn_horse_riders

ChatGPT
Who rides this horse in lessons, read from the lesson schedule: each rider's lessons on it this month and their next one. Empty at a barn without lessons. A family sees only its own riders. To see who owns or leases the horse, use barn_horse_parties.

barn_horse_schedule

ChatGPT
A horse's care schedule: for each kind that comes round (Coggins, each vaccine, deworming, farrier, dental, joint injections, bodywork and chiro; per_horse kinds such as joint injections have no 1barn default and read "Not scheduled" until a cycle is set), how often for this horse (every_days; null when it's "not needed" or has no cycle), who_sets it ("barn": barn policy, the same for every horse; "owner": the owner's choice), whether the horse has its own (own, and owners when its owner or lessee set it, with set_by and set_at), the barn's cycle (barn_every_days), the last and next dates, and can_change for the caller. For staff, and for the horse's owners and lessees (their own horse).

barn_horse_timeline

ChatGPT
Everything that happened to one horse, newest first (the horse page's History): arriving and leaving, each home and turnout from and to, health status changes, owners, lessees and trainers starting and ending, care lines added, changed and stopped, and records and papers on file. limit entries (50 unless asked, at most 100) from offset; has_more says to ask again. Staff only.

barn_horse_today

ChatGPT
One horse's day, in order: each care instruction on its board today, by round (am, noon, pm, night, any), with done saying who did it and when (null while it's still to do), and each lesson it's on today with its rider and instructor. Rounds aren't clock times. Each care line's instruction_id is what barn_mark_care_done takes. Anyone who can see the horse; care is internal to the barn for now, so anyone but staff gets the lessons alone.

barn_import

ChatGPT
One import: its files, what's found (counts; each horse with its owners, riders, stall, turnout and board rate; each person; whether each is new or matches someone already in 1barn, and possible duplicates), how each column was read, the questions with their options and answers, and can_add. Reads only.

barn_import_add

ChatGPT
Add what an import found to the barn, all at once: new horses and people, owners, riders and parents, stalls and turnouts, board rates (billed to each horse's bills_to: the first owner listed unless the person picked another), and any new places the barn said to add. Refused while a question is open. Nobody is invited or told. Without confirm nothing is added and the answer says what would be; call again with confirm=true once the person says yes. Undo within 30 days with barn_import_undo.

barn_import_answer

ChatGPT
Answer an import's questions: {question key: one of its options' values}, null to take an answer back. Ask the person; never answer "same" for them. To bill a boarded horse's rate to someone other than its first owner, answer "bill:<horse key>" with one of that horse's bill_choices keys. A question with typed true also takes what the person types: "text:<their words>". Nothing in the barn changes until barn_import_add. Returns the import as barn_import does.

barn_import_files

ChatGPT
Add the barn's own files to an open import (barn_start_import first): spreadsheets are read at once; PDFs, screenshots and photos (handwriting too) go to 1barn's AI reader, which takes about a minute: barn_import shows each file's status (reading, read, failed). The files go to Anthropic to be read, aren't used to train AI, and are deleted once read; what's read is cleared after 30 days. A value the reader wasn't sure of is a question (kind cell) to ask the person. Returns the import as barn_import does.

barn_import_paste

ChatGPT
Add pasted rows to an open import, as a list of their own. Returns the import as barn_import does.

barn_import_remove_file

ChatGPT
Take a file or pasted list out of an open import (nothing in the barn changes). Returns the import as barn_import does.

barn_import_undo

ChatGPT
Undo an added import, within 30 days of Add: the board rates it put horses on come off, and what it made that's untouched since is removed; anything changed since stays and is listed in the undo's result (core_undo_status follows a long one). Without confirm nothing changes and the answer says what would; call again with confirm=true once the person says yes.

barn_imports

ChatGPT
The barn's imports from its own files (Get started › Your files), newest first: each with its status (open, added, undone), its files, what Add made and whether Undo still reaches it (30 days). The owner, or a manager with Settings. Reads only.

barn_invite_person

ChatGPT
Email an account invite to a person (role: customer|vendor|staff). Staff only; only the owner may grant staff. Returns the role and that it was sent.

barn_label_people

ChatGPT
Put a label (name or id; a new name is made) on many people at once, or take it off them (add=false). Say the label and how many people, and ask before confirming. Staff.

barn_labels

ChatGPT
The barn's own labels on people ("Waiting list", "Fall 2026 Session"), each with how many people have it. barn_list_people with label lists them. Staff.

barn_latest_by_horse

ChatGPT
Every horse at the barn, one row each, for one thing: "who's overdue for deworming?", "which horses have never had rabies?". kind: deworming|vaccination|coggins|farrier|dental (or another kind the barn has on a cycle); a vaccination needs product, the vaccine ("Rabies"), one of choices. Each row: the horse, its home, the latest record's day (last_on), what was used, next_due_on, days_left and status: overdue, due_soon (inside the lead time Coming up warns by), missing (never recorded), no_due_date (a record with no next date) or ok. Worst first, by name within. status narrows the rows (all|overdue|due_soon|missing|no_due_date|ok); counts is always the whole barn's. Read from the records on file, nothing guessed. Staff only.

barn_lay_out_stalls

ChatGPT
Lay out a barn on a map in one step: a shape per stall, in the barn's order, plus an Aisle label, and the map opens on Home. link_offer names the barn's shape on another map, if any: offer barn_link_shape so tapping it opens this map. The owner, or a manager with the settings permission.

barn_list_arenas

ChatGPT
The barn's arenas: the spaces where lessons and events happen. An arena holds no horses; its capacity is how many lessons may run in it at once. Each comes with what the barn has said about it: cover (indoor, covered or outdoor), size and surface as written, lights, and uses (lessons, events, open_riding, lunging, jumping, turnout). Archived arenas are left out. Booking or reserving an arena isn't part of 1barn yet. Staff only.

barn_list_closures

ChatGPT
Arena closures, soonest first: upcoming and current ones (ended ones too with include_ended). Each has its id, arena, when (in words), why, the note families see, status (upcoming, on or ended), can_remove (before it starts) and can_open (once it has started). Staff.

barn_list_horses

ChatGPT
List horses: names, breed, color, sex, foal year, status, and health_status (healthy, injured, rehabbing, sick). Staff see all; boarders their own; vendors their linked.

barn_list_labels

ChatGPT
The barn's own labels on people ("Waiting list", "Fall 2026 Session"), each with how many people have it. barn_list_people with label lists them. Staff.

barn_list_maps

ChatGPT
The maps the barn has drawn, each with how many spaces it shows and its background. barn_get_map reads one. Staff only.

barn_list_notes

ChatGPT
Notes on a horse or person, newest first, filtered by the caller's visibility: the text, who wrote it (by name) and the day.

barn_list_people

ChatGPT
List people the barn knows: name, relationships (what they are to the barn, several at once, in this order: staff, instructor, boarder, rider, parent, then the hand-set vendor, vet, farrier, emergency_contact), a vendor's vendor_types by the barn's names (Vet, Farrier, Bodywork…), whether they have a login and its role (what it may do; login_status "disabled" when it's off), and their invite status — with email, phone, any other email addresses and phone numbers, and the mailing and billing addresses, since finding someone's number is what staff ask this for. kind is the old single label, kept for now. Staff only. search matches the start of any word of a first name, last name, email or other email on file ("ann sm" finds Mary Ann Smith). vendor_type (a name or key from barn_list_vendor_types) keeps the vendors of that type: "farrier" for who shoes. filter narrows to one group: staff, instructors, students (rode a lesson in the past year, or have a rider level), boarders (own or lease a horse here today), parents (parent or guardian of someone on file), vendors, logins (can sign in), or archived (the owner only, or a manager the owner gave the logins permission; archived people are left out of everything else). A big barn has hundreds of people; narrow with these rather than listing everyone.

barn_list_service_days

ChatGPT
The barn's service days — farrier day, vaccine day, the dentist — with who's signed up for each and how many spots are left. Dates are plain dates: a farrier day is the 14th everywhere, not an instant that shifts by timezone.

barn_list_space_kinds

ChatGPT
The kinds of space this barn has, and what each may be used for: name, key, whether horses live or turn out in one, whether it takes horses at all, and its usual capacity.

barn_list_spaces

ChatGPT
Every space, flat and short: id, name, path (parents, "Barn A › Stall 3"), kind, whether horses live or turn out there, capacity and how many are in it. The complete list — nothing is left out — so this is the tool for "what turnouts do we have" or "how many stalls". For who is in a space, barn_get_facility_map. Staff only.

barn_list_vendor_types

ChatGPT
The kinds of vendor this barn keeps, in its order: Vet, Farrier, Dentist, Bodywork… plus any it added. Each has its name, key, whether it's built in, and how many people have it. Use a name or key with barn_list_people's vendor_type or barn_create_person's vendor_types. Staff only.

barn_log_care

ChatGPT
Write down that something happened. kind: feed|hay|supplement|medication|turnout|blanket|grooming|stall| water|handling|other. care_time: am|noon|pm|night|any. Who and when come from the session, not from you — nobody types the name at the bottom, which is the whole reason the record is worth anything to the owner reading it. Set skipped when it deliberately didn't happen, and then the note is required: "off his feed, left half the ration" is how a colic gets caught on the morning round, and those lines lead the barn's day. Clear owner_visible for the rare staff-only observation. Staff only.

barn_log_extra_care

ChatGPT
Log extra care (not on anyone's care plan) for one horse or several. An item charges its price for each horse, unless the horse's care line for that kind says Included or Not charged. Something else needs what was done; with charge it waits in the month's review as Needs a price. Call it first without confirm: nothing is logged, and the answer says what would be; call again with confirm=true after the person says yes. Staff.

barn_login_connections

ChatGPT
Connect this login: logins that signed in from the booking page and are waiting for the barn to say who they are (several people share the email, or the only match is a child or someone who works here). Each has its email, when, the booking it came from, and the candidates (name, age, under_18, is_child, works_here, how they're related; suggested is the one the booking's payer matched, listed first). Nothing is connected until barn_connect_login. The owner, or a manager with the logins permission. Family sign-in links are sent only from the booking page (Get a sign-in link), never by a tool.

barn_make_client

ChatGPT
Someone who no longer works here stays on as a client: turns off Works here and Teaches lessons, and a staff, manager or instructor login becomes a client login. Their history, horses and account stay. The owner, or a manager with the logins permission; never yourself or the owner. Confirm with the user first. Usually after their employment ends (staffing_set_employment_status).

barn_map_sheet

ChatGPT
A download link for a map on paper, as a PDF with today's assignments: the same sheet as Print and Download PDF in the app. The link is good for an hour. Staff only.

barn_mark_care_done

ChatGPT
Mark one of today's care instructions done (the done circle on the horse page): a care-log entry linked to it, with who and when taken from the session. Once a day: marking it again changes nothing and returns already: true. To say it didn't happen, use barn_log_care with skipped and a note instead. Find the id with barn_horse_today or barn_horse_care. Staff only.

barn_mark_care_done_many

ChatGPT
Mark several of today's care lines done at once (up to 100): a whole round, or every line on one horse. Each gets a care-log entry with who and when taken from the session, all saved together. A line already done today changes nothing and says already: true. If any line isn't on today's board, nothing is marked. Find the ids with barn_care_today or barn_horse_today. To say something didn't happen, use barn_log_care with skipped and a note. Staff only.

barn_mark_notes_read

ChatGPT
Mark this horse's notes read for you, as of now, so the horse page's Notes tab stops showing them as new. Changes nothing anyone else sees. Anyone who can read the horse's notes.

barn_merge_people

ChatGPT
Merge two records of the same person (an import or a sign-up made them twice): everything that names merge_id moves to keep_id, details the keeper lacks are copied, the other's email and phone become alternates, and merge_id is archived with a note, never deleted. Call barn_merge_preview first, show the user its said and conflicts, and merge only once they confirm. Refused: the same person, the owner as the one merged away, two people who both have a login (that needs 1barn support), and a login merged into someone without one (swap them). The owner's, or a manager's with the logins permission. Answers the preview's summary and the keeper.

barn_merge_preview

ChatGPT
What merging two records of the same person would do, changing nothing: keep and merge side by side (login, email, phone, horses, shifts, signed forms, balance), moves per kind (moved, already on the keeper, kept), the details copied, conflicts, and said, the summary in sentences. A merge that can't go this way comes back as problem (code same, owner, both_logins, swap or keeper_archived, and a message): for swap, the one with the login is kept, so call again the other way round. The owner's, or a manager's with the logins permission. Show this to the user before barn_merge_people.

barn_missing_records

ChatGPT
Horses with no record of something they should have had at all — the gap that never shows up on a due list, because nothing is overdue if nothing was ever written down. Staff only.

barn_move_all_shapes

ChatGPT
Move or size every shape on a map together, as one change, usually after a new background. A move that would take any shape past the map's edge, an archived space's hidden shape included, is refused and nothing moves. Lining shapes up by eye belongs in the app's Move all shapes; this exists so nothing there is app-only. The owner, or a manager with the settings permission.

barn_my_care_due

ChatGPT
What's coming due for my horse: for an owner or lessee, each of their horses' dated care (or one horse's, horse_id) with its due date, status (overdue, due_soon inside its warning time, or upcoming), cycle, last date and provider, and reminds: whether the barn sends the owner a notice about it. With the barn's switches and whether the caller keeps "Your horse's care coming due" on (core_set_notification_settings, kind care_due, turns it off). Staff name one horse and see what its owners would.

barn_my_horses

ChatGPT
The caller's own horses — the ones they're an owner, lessee, billing contact, agent or trainer of — with where each is now. Staff get their own horses here too, not the barn's; that's barn_list_horses.

barn_my_insurance

ChatGPT
The caller's own insurance on file at the barn: company, policy_number and policy_holder (null when not on file). Their own only; staff read anyone's with barn_list_people.

barn_open_arena_again

ChatGPT
Open an arena again: a closure that has started ends now, and its later repeats go too. Call without confirm first, then confirm=true once the person says yes. Owners and managers.

barn_open_signups

ChatGPT
Coming service days still taking sign-ups, with the caller's horses that aren't on the list yet — what to tell an owner who asks "is my horse down for the farrier?".

barn_owners_add

ChatGPT
Whether the barn lets horses' owners and lessees add to their own horse (Settings › Horse care, "Owners add records and notes", on unless turned off): health records and papers, notes, photos, the horse's own details, and suggesting its health status.

barn_person_family

ChatGPT
A person's family and emergency links, as their Family card shows them: each link's id, the other person's name and id, what they are (relation, read from this person: "parent", "child", "spouse"), and portal sharing: sharing none | one_way | both, with sees saying exactly who sees whose ("Bo sees Ivy's portal; Ivy doesn't see Bo's"). Staff only.

barn_place_care

ChatGPT
What a place is given: its own care lines (place care), such as a paddock's evening bale of hay or a field's trough, which belong to the place and not to any of its horses. Its horses' own care is theirs (barn_horse_care). Find the place with barn_list_spaces. Staff only.

barn_place_on_map

ChatGPT
Put a space on a map, or a text label. A space can be on any number of maps, once on each, with its own shape on each. The owner, or a manager with the settings permission.

barn_remind_service_day_owners

ChatGPT
Remind the owners who still owe a service day's answers: every horse waiting, or just horse_ids. Each gets a notice and an email. Call it first without confirm: nothing is sent, and the answer says who would hear; tell the person, and call again with confirm=true only after they say yes. Staff only.

barn_reminder_intervals

ChatGPT
How often this barn expects each thing done, and how far ahead it wants warning. Staff only.

barn_remove_closure

ChatGPT
Remove a closure that hasn't started: its times open again. Moved lessons stay where they went and canceled ones stay canceled. Once it has started, use barn_open_arena_again. Call without confirm first, then confirm=true once the person says yes. Owners and managers.

barn_remove_file

ChatGPT
Take a file off a horse or a person, and off any record it's attached to; nobody can open it after. A signed form's copy stays. Call it first without confirm: nothing changes, and the answer says which file it is; call again with confirm=true only after the person says yes. Notifies nobody. Staff only.

barn_remove_from_map

ChatGPT
Take a shape off its map. The space itself and its horses don't change, and it stays on other maps. The owner, or a manager with the settings permission.

barn_remove_home

ChatGPT
Remove a horse's home when where it's going isn't known yet (going "unknown"): it shows as No home yet on Horses and under Needs you on Facility until one is chosen. A move to another space here is barn_assign_stall instead, and leaving the barn is a departure (barn_set_horse_status), which ends everything. If the home is also its turnout (a pasture), the first call changes nothing and asks whether to remove the turnout too; ask the person, then call again with also (remove_turnout or keep_turnout). Staff only.

barn_remove_horse_from_service_day

ChatGPT
Take a horse back off a service day's list — it's lame, it's sold, it doesn't need doing this time. Staff can remove any horse; an owner their own.

barn_remove_my_emergency_contact

ChatGPT
Take an emergency contact off the caller's family (the person stays at the barn). Answers My info.

barn_remove_turnout

ChatGPT
Remove a horse from turnout: it has no turnout from today and shows under No turnout set until one is chosen. Its home is kept. Not "bring it in": the daily in and out is the care rounds' turnout task. If the turnout is also its home (a pasture), the first call changes nothing and asks whether to remove the home too; ask the person, then call again with also (remove_home or keep_home). Staff only.

barn_reorder_vendor_types

ChatGPT
Put the barn's vendor types in this order (ids, keys or names, first first); any left out follow in the order they had. The order is how pickers and the people list show them. Notifies nobody. The owner, or a manager with the settings permission.

barn_reschedule_due_dates

ChatGPT
Move existing due dates to the cycle now set (Settings › Horse care's "Update existing due dates"), for a kind, a horse's own cycle (horse_id) or a vaccine's (product). Only each horse's latest record that cycle governs moves, and only a date worked out from a cycle, never one a person typed; a record from before 1barn kept that moves only when its date is exactly previous_every_days (the cycle before the change) after the visit. Call it first without confirm: nothing changes, and the answer says how many would move (moving, a few examples) and stay; tell the person, and call again with confirm=true only after they say yes.

barn_restore_map

ChatGPT
Bring a deleted map back with its shapes and the links to it. The owner, or a manager with the settings permission.

barn_review_emergency_contacts

ChatGPT
Settle a sign-up's new emergency contact for a rider: the open task "Ivy Rivera has a new emergency contact from a sign-up: Jane Doe (…) alongside Sam Doe" (core_open_tasks, kind emergency_contact, id emergency_contact:<person_id>). decision keep_both keeps every contact; remove_others unlinks all but the new one from the rider (they stay in the barn as people). Also a contact that lives only as a sign-up's answer (every sign-up's is, until staff add it), once the booking is matched to the rider: the task "Ivy Rivera's sign-up named an emergency contact: Jane Doe (…)" (kind signup_contact, id signup_contact:<person_id>). decision add_from_signup adds Jane Doe as the person chooses: contact_person_id, someone already in the barn (find them with barn_list_people; never guess by phone or name), or new_person true, a new person from the answer's name and phone. One of the two. dismiss_signup adds nothing (the answer stays on the booking). Staff only. Call it first without confirm: nothing changes, and the answer says what would happen; call again with confirm=true only after the person says yes. Returns who's kept, removed or added.

barn_revoke_service_day_share

ChatGPT
Turn off one live link to a service day's sheet (share ids from barn_service_day_sends or barn_share_service_day_sheet). Staff only.

barn_room

ChatGPT
Do we have room? Today's count, the one the dashboard, Facility and Reports say: stalls and turnout_places, each {spaces, capacity, occupied, free}, and room_line ("3 stalls open · 24 turnout places"). A stall is somewhere a horse lives that isn't also turnout; a paddock with a shed counts as a turnout place. Staff only.

barn_save_label

ChatGPT
Make a label (name; one already named so is answered), or rename one (label, its name or id, to name: everyone keeps it). Staff.

barn_service_day_form

ChatGPT
The questions a service day asks about one horse, worded for it, with what the horse's record already says for the linked ones (prefill: value and where it came from) and the answers so far. For staff, whose profile the owner questions (phone, contact) read and update: owner by name, the horse's owners, and with several owners and none picked owner_pick_needed (pass owner_person_id, one of owners, to pick; until then no owner question is filled in). Staff for any horse; an owner for their own.

barn_service_day_form_update

ChatGPT
A service day whose form changed after owners answered keeps the questions they answered (barn_service_day_questions: form_update_pending). use_new_questions=true takes the form's new questions and follows it again; false keeps these as the day's own. Answers already given stay; a new question is blank for those horses. Taking the new questions needs confirm: called without it, nothing changes and the answer lists them; tell the person, and call again with confirm=true only after they say yes. Sends nothing. Staff only.

barn_service_day_questions

ChatGPT
A service day's questions for owners: the form it follows (if any), whether the day has its own copy, and the form's questions to compare. Staff only.

barn_service_day_running_behind

ChatGPT
Running behind on a service day, on the day: every estimate shifts, and the owners who said they'd like to be there get a notice and an email with their horse's new time (never a text). 0 is back on time: when the day was behind, the same owners hear it's back on time with their horse's estimate. Call it first without confirm: nothing changes, and the answer names who would hear; tell the person, and call again with confirm=true only after they say yes. Staff only.

barn_service_day_sends

ChatGPT
Who a service day's sheet was emailed to and when, whether each vendor has opened their link, and how many horses' answers changed since. Recipients and anyone copied by name, never their email (barn_list_people has a person's). Staff only.

barn_service_day_times

ChatGPT
A service day's estimated times. Staff: the order, first to last, each horse's "Around 9:30" (rounded to the quarter hour, always an estimate), turnout, minutes, the services ticked, "will be there", the owner's best time and whether the estimate misses it, and the summary line. An owner: their own horses' estimates and places ("4th of 8") and the disclaimer to pass on with them.

barn_set_calendar_colors

ChatGPT
Set the calendar color of several horses and people in one go (the calendar's Give them colors): colors is [{kind: horse or person, id, color: "#rrggbb"}], often barn_calendar_color_suggestions' lists as they are or as the person changed them. It overwrites each one's calendar color (the one its own page sets), which recolors their lessons on everyone's calendar; all or nothing. Call first without confirm: nothing is saved and the answer lists each horse and person with its color before → after; call again with confirm=true only after the person says yes. Notifies nobody. Staff only.

barn_set_care_instruction

ChatGPT
Add or change what a horse is on. kind: feed|hay|supplement|medication|turnout|blanket|grooming|stall| water|handling|other. care_time: am|noon|pm|night|any. Changing means passing replaces_id: the old line is ended on the day the new one starts rather than overwritten, so the feed board keeps its history and "it changed on the 4th" has an answer. Without it you're adding a second line, not editing the first. Keep the unit the barn uses — scoop, flake, lb, mg. A scoop of one feed is not a scoop of another, so nothing is converted; the amount only means something next to its product. Set effective_to for anything temporary, like a two-week course of omeprazole, and it takes itself off the board. detail is anything the person feeding should know, in Markdown (bold, short lists, links; plain text is fine). Staff only.

barn_set_care_line_charge

ChatGPT
How one horse's care line is charged when it's done (Charged as): the price list's rule, Included in board, Not charged, or a price list item. The next time it's done; nothing already logged moves. The owner or a manager.

barn_set_care_reminders

ChatGPT
Turn the barn's owner reminders on or off (see barn_care_reminders); give either or both. The barn's owner, or a manager with the settings permission. Sends nothing by itself: the next morning's run reads what's set.

barn_set_care_sharing

ChatGPT
Turn on or off what the barn shares of horses' care with their owners: owners_see_plan, owners_suggest, staff_approve (see barn_care_sharing); left out stays as it is. Turning the first two off keeps care to the barn's staff. The barn's owner, or a manager with the settings permission. Notifies nobody.

barn_set_care_who_sets

ChatGPT
Settings › Horse care's "Who sets it" for a kind of care, or one vaccine: barn policy (one cycle for every horse; owners read it) or the owner's choice (an owner sets their own horse's). The owner, or a manager with the settings permission. Defaults: Coggins, the core vaccines and deworming are barn policy; farrier, dental, therapy and other vaccines the owner's choice. Turning one to barn policy keeps the cycles owners already set (owner_cycles in barn_reminder_intervals) unless clear_owners; ask the person which. Clearing them needs confirm: call first without it, and again with confirm=true after they say yes. Notifies nobody.

barn_set_contacts_default

ChatGPT
The barn's starting value for whether a horse's new contacts (family and others linked to it) see the horse in 1barn, as Settings › Team sets it. It's copied onto each contact added from now on; contacts already on a horse keep their own yes or no (change one with barn_update_party, can_see). It decides who will see horse records, so call it first without confirm: nothing is saved and the answer says before → after; call again with confirm=true only after the person says yes. Notifies nobody. The owner, or a manager with the settings permission.

barn_set_emergency_card

ChatGPT
Set the emergency card. The barn or the horse's own owner may write it. colic_surgery is not_recorded|authorized|declined|contact_first — and an insured horse usually must have the insurer called before euthanasia or the claim is void, which is what contact_first is for. contact_same_as_owner says the owner is also the emergency contact. instructions is anything else whoever is standing there should know, in Markdown (bold, short lists, links; plain text is fine). Saving stamps today as the day it was last confirmed. Returns when it was confirmed and what's still missing (gaps).

barn_set_emergency_sheet

ChatGPT
The top of the barn's emergency sheet, as Settings › Barn sets it: the barn's street address and phone (what someone reads to the 911 operator) and the barn's own vet and their phone. Only what's given changes; "" clears one. A new address is also where the weather and address suggestions look from. What a responder reads in an emergency, so call it first without confirm: nothing is saved and the answer says each before → after; call again with confirm=true only after the person says yes. Notifies nobody. The owner, or a manager with the settings permission.

barn_set_family_sharing

ChatGPT
Who sees whose portal (horses, documents, events) on one family link (an id from barn_person_family): sharing none (neither), one_way (the link's person sees the other's, as a parent sees a child's) or both ("shares with each other", as a couple). It opens or closes someone's records to another person, so call it first without confirm: nothing changes, and the answer says exactly who would see whose; call again with confirm=true only after the person says yes. Staff only; notifies nobody. Returns the link with its sharing and sees.

barn_set_horse_health

ChatGPT
Set how a horse is: status healthy, injured, rehabbing or sick, from since (YYYY-MM-DD, today unless said; not in the future), with a short note (up to 200 characters: "abscess, front left"). Ends the current stretch of its health history and starts a new one; the same status again only updates the note and date. Staff only; notifies nobody.

barn_set_horse_payer

ChatGPT
Who pays for a horse: its board, plans and charges go to its billing party. An owner pays by default when a horse gets one. Setting someone ends whoever paid the day before; nothing is deleted. Without person_id, the choices and the current payer. Staff only.

barn_set_horse_schedule

ChatGPT
Set one row of a horse's care schedule (barn_horse_schedule): its own cycle, "not needed for this horse", or back to the barn's. A horse's owner or lessee may, on their own horse, for a kind that's the owner's choice (who_sets "owner") while the barn lets owners add (barn_owners_add); staff may for any kind on any horse. Existing due dates stay unless move_due_date (only the horse's latest worked-out date moves, never a typed one). An owner's change sends the barn's staff a notice. Call it first without confirm: nothing changes, and the answer says what would change and which due dates would move; tell the person, and call again with confirm=true only after they say yes.

barn_set_horse_status

ChatGPT
Where a horse is in its life at the barn, and whether it's on the lists. status is active, retired or departed. Departed records departed_on (YYYY-MM-DD, today at the barn unless said); back to active clears it. archived true takes the horse off the lists, pickers and search (for one entered by mistake, or long gone); false brings it back as it was. Give either or both. What else happens, so tell the person first: departing (on its date) or archiving (today) ENDS its stall, turnouts and any other space assignment that day — ended_assignments says which, by place. A departed horse no longer makes its owners count as boarders; an archived one drops out of the lesson program's choices, new service day sign-ups, the care board and its owners' lists. Its owners (barn_end_party) are left as they are, and coming back to active or unarchiving restores no stall. Nothing is deleted, and nobody is notified. Lessons are NOT changed: its scheduled lessons from that day on come back as lessons_needing_substitute (when, riders, and per lesson the eligible horses and the excluded ones with a reason; up to 20, lessons_needing_substitute_total counts them all). Tell the person how many and offer substitutes: a horse per lesson or one for all, applied with lessons_substitute_horse once they choose. A lesson left as it is keeps the horse, with its warning. There's no reason field: add one with barn_add_note. Staff only.

barn_set_login_role

ChatGPT
Change what a person's existing login may do at this barn (role: owner|staff|instructor|customer|vendor). Owner only, and never your own role. The person's kind is just a label; this is the permission.

barn_set_map_background

ChatGPT
Change a map's background to a plain grid. A picture or PDF is added in the app (the map's settings): there's no way to send one from here. Shapes keep their real proportions and may need barn_move_all_shapes to line up. The owner, or a manager with the settings permission.

barn_set_my_insurance

ChatGPT
Change the caller's own insurance on file: only the parts given change, "" clears one. Their own record only, never a family member's or anyone else's (staff use barn_update_person's insurance). Returns what's on file now.

barn_set_owners_add

ChatGPT
Turn "Owners add records and notes" on or off (see barn_owners_add). Off, owners see their horse as before and add nothing. The barn's owner, or a manager with the settings permission. Notifies nobody.

barn_set_person_labels

ChatGPT
A person's labels, the whole list (names or ids; a name no label has yet is made). An empty list takes them all off. Staff.

barn_set_reminder_interval

ChatGPT
Set how often something is due — every six weeks for the farrier, every twelve months for a Coggins. Counted from the last time it was actually done, never from the calendar, so a horse done late doesn't spend the rest of its life due on the original date. Pass horse_id for a horse that's the exception. Staff only.

barn_set_renewal

ChatGPT
Record or update paperwork (kind: coggins|registration|passport| insurance|lease|membership|health_certificate|other). reference is the number on it. notes is Markdown, internal to staff unless notes_shared is true, which shows them to the horse's owner; leave it false unless the user asked to share them. Pass renewal_id to update rather than add. Staff only.

barn_set_service_day_answers

ChatGPT
Answer a service day's questions for a horse (signing it up if it isn't on the list): answers keyed by question id, short name or label, typed as the question asks (yes/no "Yes"/"No", a date YYYY-MM-DD or "unknown", a number, a list for checkboxes). finished false saves them to finish later; true needs every shown required question. update_record names linked questions whose answer should also go onto the horse's or the person's record, directly; an owner question updates the owner barn_service_day_form names, and with several owners staff pass owner_person_id (one of its owners), else that update is refused (pick_owner). Call it first without confirm: nothing is saved, and the answer lists each answer before and after and the records it would change; tell the person, and call again with confirm=true only after they say yes. Staff for any horse; an owner for their own.

barn_set_service_day_horse_times

ChatGPT
A horse's times on a service day: the owner's answers (I'd like to be there, the best time, the barn's services), for their own horse until sign-ups close, or staff's for any horse, with its minutes. The horse is on the list already. Sends nothing.

barn_set_service_day_order

ChatGPT
Put a service day's horses in this order; every estimate follows. Nothing is sent (Running behind is what tells owners). Staff only.

barn_set_service_day_questions

ChatGPT
Change a service day's questions: form_id follows a form from the library (core_list_form_templates), questions is the day's own copy (the shape core_save_form_template takes), and follow_form true drops the day's copy for its form's questions again. Answers already given stay. Notifies nobody. Staff only.

barn_set_service_day_times

ChatGPT
Set a service day's estimated times and barn services. Nothing is sent to anyone. Staff only.

barn_set_shape

ChatGPT
Set a shape's corners, a label's words, or where its label sits. An assistant can't see where a fence is, so point people to the map editor in the app for drawing; this exists so nothing there is app-only. The owner, or a manager with the settings permission.

barn_set_staff_comment

ChatGPT
The barn's private comment on a horse for a service day ("listen to her before vaccinating"): owners never see it; it reaches the vet only when staff include comments. An empty comment clears it. Notifies nobody. Staff only.

barn_set_up_facility

ChatGPT
Set up a new barn's facility in one go (Get started › Your facility): barns, each {name, stalls (0-200), layout: one_row, center_aisle, shed_row or other}, their stalls numbered Stall 1..N with a map per barn; paddocks (a count, named Paddock 1..N); arenas (any of outdoor, indoor, round_pen); extras (any of wash_rack, tack_room, feed_room, hay_barn as labels on the facility map, and dry_lots as a paddock named Dry lot). Also makes the Facility map with them all. Only over an empty facility: a barn that already has places is refused (change them with the space and map tools). Without confirm nothing is made and the answer lists what would be; call again with confirm=true once the person says yes. The owner, or a manager with Settings.

barn_set_weather_settings

ChatGPT
Change the barn's shift weather heads-ups: any of heads_up (on or off for the whole barn), feels_like_swing_f (5–40 °F) and wind_mph (5–50). Left out stays as it is. The owner, or a manager with the settings permission. Sends nothing now.

barn_share_gaps

ChatGPT
Horses whose ownership doesn't add up — nobody on record, shares over or under 100%, or no one to bill. The list to fix before an invoice run. Staff only.

barn_space_occupants

ChatGPT
Who is in one space now: "Turnout 6", "Barn A › Stall 3" or a space id. Small and complete, so it is the tool for "who is in Turnout 6" at any barn size. Matches the id, then the exact name or path (case aside), then names containing it; several matches come back together (at most 10) to choose from. Each match: id, name, path, kind, capacity, occupied and its horses (horse_id, name, is_home, is_turnout). No match: an empty list. Staff only.

barn_start_import

ChatGPT
Start an import from the barn's own lists. text is rows as pasted from a spreadsheet or an email, a header row first when there is one (Horse, Owner, Email, Stall…), or plain text with no columns (a note, an email), which the AI reader reads; name names that list. Send files with barn_import_files. Nothing is added to the barn until barn_import_add. Returns the import as barn_import does.

barn_suggest_care_change

ChatGPT
Suggest a change to your horse's care plan, as its owner (or a lessee while the lease runs). The barn's owner and managers get a notice and decide; nothing on the board changes until one of them approves it. action: change a line (its instruction_id from barn_care_plan, and only the fields that change: care_time am|noon|pm|night|any, product, amount, unit, detail), stop one (instruction_id, and effective_from, the day it stops), or add something new (kind feed|hay|supplement|medication|turnout|blanket|grooming|stall|water| handling|other, and the line's fields). effective_from is the day it starts (today or later; today if left out), effective_to optional, ISO dates. reason is why, in their words: the barn reads it. Keep the unit the barn uses. Call it first without confirm: nothing is sent, and the answer says what would be suggested and who would be notified; tell the person, and call again with confirm=true only after they say yes.

barn_suggest_health_status

ChatGPT
Suggest your horse's health status, as its owner or lessee, when the barn lets owners add (barn_owners_add). The barn's staff get a notice and accept or decline it; nothing changes until one of them accepts. Call it first without confirm: nothing is sent, and the answer says what would be suggested; tell the person, and call again with confirm=true only after they say yes.

barn_transfer_horse

ChatGPT
Sell or hand over a horse: ends every current ownership on one date and starts the new ones the same day, so the record has no gap and no overlap. to is a list of {"person_id": "...", "percent": 50} — percent only where it's split. Set keep_billing when the old owner still settles the outstanding bill. Returns what it ended, what's current now, and a check if the new shares don't add to 100. Staff only.

barn_unarchive_label

ChatGPT
Bring an archived label (name or id) back, on everyone who had it. Staff.

barn_unassigned_horses

ChatGPT
Horses with no home, and horses with no turnout. Staff only.

barn_undo_care_done

ChatGPT
Undo today's mark on one care instruction (done, or not done): the done circle tapped by mistake. Before calling, tell the person which horse and line it is and who marked it when (from barn_horse_today's done), and ask. Undone by whoever marked it within ten minutes, the entry is deleted (removed: true); otherwise it stays in the care log, marked undone by the caller, and no longer counts as done. Only whoever marked it, a manager or the owner, and only today's. Returns the line's state now: done is null when nothing stands, and it can be marked again with barn_mark_care_done. Staff only.

barn_undo_care_done_many

ChatGPT
Undo today's marks on several care lines at once (up to 100): a round marked done by mistake. Before calling, tell the person which horses and lines they are and who marked each when (from barn_care_today's done), and ask. Each is undone as barn_undo_care_done does: by whoever marked it within ten minutes the entry is deleted (removed: true); otherwise it stays in the care log, marked undone by the caller, and no longer counts as done. Only whoever marked it, a manager or the owner, and only today's; if any line can't be undone, none is. Each result says the line's state now (done, null when nothing stands). Staff only.

barn_undo_extra_care

ChatGPT
Take back Extra care on any day, a day at a time: the entry stays in the log marked undone (deleted if its maker logged it in the last ten minutes) and no longer charges. Never a posted charge. Whoever logged it, a manager or the owner.

barn_update_arena

ChatGPT
Change an arena. Only what's given changes; "" clears cover, size, surface or notes, and uses replaces the whole list ([] empties it). cover is indoor, covered or outdoor; uses are from lessons, events, open_riding, lunging, jumping, turnout; capacity (lessons at once) takes effect today and earlier dates keep their number; archived takes it off the arena list (false brings it back). Arena ids come from barn_list_arenas. Staff only.

barn_update_due_dates

ChatGPT
Move existing due dates to the cycle now set (Settings › Horse care's "Update existing due dates"), for a kind, a horse's own cycle (horse_id) or a vaccine's (product). Only each horse's latest record that cycle governs moves, and only a date worked out from a cycle, never one a person typed; a record from before 1barn kept that moves only when its date is exactly previous_every_days (the cycle before the change) after the visit. Call it first without confirm: nothing changes, and the answer says how many would move (moving, a few examples) and stay; tell the person, and call again with confirm=true only after they say yes.

barn_update_file

ChatGPT
Rename a file, or change whether the horse's owners see it. Anything left out stays. Notifies nobody. Staff only.

barn_update_health_record

ChatGPT
Correct a health record (audit #24, what the horse page edits): when it was done (ISO date), product, lot number, provider, summary, notes (Markdown), whether the notes are shared with the owner, the next due date (ISO date; "" clears it, so nothing is due), cost, and whether the owner sees the record. Only what's given changes; "" clears a text field. A next due date given here is the person's, not the barn's interval. Notifies nobody. Staff only.

barn_update_horse

ChatGPT
Change a horse's details. Only the arguments given change; "" clears a text field (never the name). name is what the barn calls the horse, registered_name what's on its papers. sex is mare|gelding|stallion|unknown; foaled_on (YYYY-MM-DD) sets the foal year too; weight_lb is whole pounds; uses (the whole set) is any of boarder, competition, pleasure, for_sale, trail, in_training; height is hands and inches as said ("15.2½") or inches ("62.5in"). Registry, registration number and microchip are the papers'. Not here: status, departure and archiving, health (barn_set_horse_health), owners (barn_link_owner) and spaces. Returns the profile as barn_get_horse does. Staff only.

barn_update_map

ChatGPT
Rename a map, say which view it opens on, fade its background, pack its labels tighter, or open it first. Only what's given changes. The owner, or a manager with the settings permission.

barn_update_my_emergency_contact

ChatGPT
Change one of the family's emergency contacts: name, phone, and who it's for. Answers My info.

barn_update_party

ChatGPT
Change someone's interest in a horse in place, as the horse page's People tab does. Only the arguments given change. For a contact: can_see, whether they see the horse (true or false; a current owner of the horse may change only this). For a lessee: lease_kind (full, half, partial or lesson; "" clears it), lease_days (the weekdays they ride, as 0 = Monday … 6 = Sunday or names like "Tue"; the whole set, [] clears it), rides_per_week (1–7, no more than the days; 0 clears it). Lease details on any other role are refused. For an owner, percent (0 clears it). For anyone, notes ("" clears them; a lease's terms go here) and started_on (YYYY-MM-DD). Use barn_end_party to end the interest. Returns the party with its lease summary. Staff only.

barn_update_person

ChatGPT
Change a person's details. Only the arguments given change; "" clears a text field or an address part. Takes what barn_create_person takes: names, phone, works_here, tags (vendor, emergency_contact; the whole set), vendor_types (the whole set, barn names or keys), alternate_emails and alternate_phones (each the whole list), address and billing_address ({street1, street2, city, state, postal_code, country}, only the parts given change) and billing_same_as_mailing. email is the main address, where the barn's email to them goes; it can't be changed here for someone who has a login, since it's how they sign in (they change it in their own account). Returns them as barn_list_people does. Staff only.

barn_update_service_day

ChatGPT
Change a service day (audit #24, what its page edits): title, kind (farrier|vet|vaccine|dentist|bodywork|clinic|other), its days (ISO dates; a start moved past the end takes the end with it), the owners' notes (Markdown), capacity (no_capacity=true removes the cap), signups_closed, and who's coming (vendor_person_ids replaces the list; [] for nobody). Only what's given changes. The horses on it and their answers stay. Notifies nobody; members' calendar subscriptions show the change. Staff only.

barn_update_space

ChatGPT
Change a space: rename "Turnout 6" to "Back Paddock", make a stall a run, set how many horses it holds. Only what's given changes. kind is a space kind's name or key (see barn_list_space_kinds); notes "" clears them; capacity takes effect today, earlier months keep their number; parent_space_id moves it inside another space ("" for the top level); can_be_home says whether horses may live there; purpose is standard, medical or quarantine; archived takes it off the map (false brings it back). Refused while horses in it would be left somewhere that can't hold them — move them first. Space ids come from barn_list_spaces. Staff only.

barn_update_space_kind

ChatGPT
Change one of the barn's kinds of space (Settings › Spaces): kind is its id, key or name (barn_list_space_kinds). Rename it, say whether horses can live or go out in one, whether it takes horses at all and how many one usually holds, or archive it (archived true; false brings it back). Archiving keeps the spaces of that kind working; it just isn't offered for new ones. Only what's given changes. Notifies nobody. The owner, or a manager with the settings permission.

barn_update_vendor_type

ChatGPT
Rename one of the barn's vendor types, or archive it (archived true; false brings it back). vendor_type is its id, key or name (barn_list_vendor_types). A built-in type (Vet, Farrier…) can be renamed but not archived. People keep the type they have. Notifies nobody. The owner, or a manager with the settings permission.

barn_vendor_horses

ChatGPT
The horses a vet, farrier or other vendor is linked to here, most urgent first. Each has what's due that this vendor would come out for (a vet: vaccinations, dental, Coggins, health certificates; a farrier: shoeing; status overdue, due_soon, or never for something every horse should have and this one has never had on file), whether it's under treatment (injured, rehabbing or sick, with the note), its owner, its home and when this vendor last saw it. needs is due or under treatment; needs_only keeps just those. counts has needs, due, treatment and all. To book one visit for all of them, use barn_create_service_day with horse_ids. Staff only.

barn_vendor_visits

ChatGPT
The health records a vet, farrier or other vendor is named on as the provider, newest first: the horse, what was done (kind, product, summary) and when. total counts them all; page with offset and limit. Staff only.

barn_weather

ChatGPT
The barn's weather, in US units (°F, inches, mph): now; each care round of on (YYYY-MM-DD, default today) and the day after, with the temperature at the round's usual hour, temp_end at the window's end, the highest chance and total amount of rain or snow in the window, the strongest wind and its gust, and on the Night check the overnight low; days days of forecast (1–10); and the weather alerts in force, as issued. hours: true adds the hourly forecast for on (within 10 days). With history_from and history_to it adds the barn's logged weather for that range: totals (rain, snow as water, freeze days with a low below 32°, ice days that stayed below 32°, wet days, alert days, the strongest wind), extremes, rows by history_group (day, month, year or none; more than 31 day rows come back by month instead), which source each day is from, and history_since, the first day held. Facts only: never advise blanketing, keeping horses in or any other care change. If asked, give the forecast and the horse's own care lines (barn_horse_care). Name the source: the forecast is Google Weather's; NASA POWER days are estimates for the area around the barn (about a 50 km grid), with snow as water equivalent. A range before history_since has no data: say so plainly, never as zero. Quote alerts as issued. available: false with reason "off" means weather isn't turned on; "no_location", the barn has no saved address; "pending", ask again in a moment. Everyone at the barn.

barn_weather_settings

ChatGPT
The barn's shift weather heads-ups (Settings › Notifications): heads_up (staff get a push about an hour before a shift whose weather is notably different), feels_like_swing_f (how far the feels-like at the shift's start must be from yesterday's at that hour, °F) and wind_mph (sustained wind during the shift above this). Each person can still turn theirs off under their own notifications ("Weather before my shifts").

barn_whats_due

ChatGPT
What's coming due and what's overdue — shots, farrier, dental, deworming, plus paperwork about to lapse. The first question anyone asks of a barn. Each item carries its own lead time (Coggins warns 45 days out, the farrier 7), so "due" means due to be scheduled. Paperwork items carry a renewal_id for barn_set_renewal.

barn_withdraw_care_suggestion

ChatGPT
Take back one of your own care suggestions while the barn hasn't answered it. Notifies nobody.

barn_withdraw_health_status_suggestion

ChatGPT
Take back a health status you suggested while the barn hasn't answered it. Notifies nobody.

core_activity

ChatGPT
What changed, who changed it and from what (the barn's activity log), newest first, as change sets with their lines: field, before, after, and whether each can be undone. horse is a horse's id or name ("what changed on Belle this week?" is horse="Belle", days=7); person_id a person's; module one of horses, health, care, people, service, schedule, time, punches, staffing, pay, lessons, events, forms, billing, notes, documents, esign, facility, security, settings; who staff, client, ask, import or job; since/until YYYY-MM-DD; contains searches the values. Only what the person asking could read on the page: a client sees their own horses and profile, with the barn's changes shown as the barn. Sensitive values (pay rates, punch codes, birth dates) are never in the log. Pass next back as cursor for more.

core_activity_entry

ChatGPT
One change from the activity log (a change set, the id of an entry from core_activity): who, when, from where, the record, each line's before and after, and for each line whether it can be undone and, if not, why (changed again since, never kept, money or a send, or not yours).

core_assistant_usage

ChatGPT
Reports › Ask 1barn usage for a month or a year: used against the allowance (a question is one, a Write draft half; null allowance on the barn's own key), pace and runs_out_on, a series by day or month, people (who asked, questions, drafts, cards proposed and applied), topics (from the tools the questions used), cards and look (at_limit, runs_out, open_cards, unapplied, failed), and previous with compare_previous. Counts only: never what was asked, never what it cost; the CSV download is in the app. The owner, or a manager with the settings permission.

core_calendar_display

ChatGPT
The caller's calendar Display choices: month_style (dense: every lesson on the month, one line each; classic: chips and "+N more"; dense for staff until they pick, classic for everyone else) and color_by (kind, instructor or horse; kind until they pick), and week_layout (auto: the week's to-scale Hours grid while every lesson fits side by side, else stacked; stacked: quarter-hour bands, every lesson full width in start order; hours: to scale; auto until they pick). Reads only.

core_calendar_entries

ChatGPT
The barn calendar from date_from to date_to (YYYY-MM-DD, the barn's days, at most 92 days): lessons, events, bookings and service days as the caller's calendar shows them, each with kind, id, title, starts_at, ends_at, all_day, status (a canceled event or lesson is "cancelled"), subtitle, and its instructors' and horses' names. A lesson says cancel_reason (family, no_show or barn, when canceled) and seats ({taken, max}, for a lesson type of up to more than one rider; else null); an event its category ({id, name}, or null). event_categories lists the categories in the range with how many event sessions each has. Archived events stay off unless include_archived (staff: Show history); event entries say archived and cancelled. Reads only.

core_cancel_held_invite

ChatGPT
Take back one invite not sent yet (an id from go_live.held); it's never sent. The owner, or a manager with Settings. Returns go_live.

core_connected_apps

ChatGPT
Connected AI apps (ChatGPT, Claude, …) signed in to 1barn. Left out, person_id reads the caller's own: each app's id, name, approved_at, last_used_at (to the hour) and the barns it reaches, plus not_listed, why apps connected before October 19, 2026 aren't there. With person_id (the owner, or a manager with the logins permission): that person's apps that reach this barn, with when each was last used here. Never a token.

core_discard_schedule_changes

ChatGPT
Throw unpublished changes away (ids: shift:<id>, lesson:<id>): a published shift or lesson goes back to what everyone sees; a never-published one is removed. Nobody is notified.

core_disconnect_app

ChatGPT
Disconnect a connected AI app. Without person_id: one of the caller's own (app_id from core_connected_apps, required), at every barn; its next call and its next refresh are refused, and it has to be connected again from the app (this one too, if it's the app making the call). With person_id (the owner, or a manager with the logins permission): that person's app (app_id), or all of theirs (app_id left out), at this barn only; their other barns keep it. Call it first without confirm: nothing changes, and the answer says what would be disconnected; tell the person, and call again with confirm=true only after they say yes.

core_duplicate_form_template

ChatGPT
Copy one of the barn's forms (Settings › Forms) to start a new one from it: same questions, areas and service day kinds, named name or "<name> (copy)". The original is untouched; change the copy with core_save_form_template. Notifies nobody. Staff only.

core_family_calendar_settings

ChatGPT
Settings › Families › What clients see on the calendar: whether clients may turn on the barn's other lessons and events in Week and Month (barn_activity, with events and lessons under it; all on to start), which modules the barn has, and what that allows. Clients always see their own things, what they can book, and Around the barn. Also family_cancel: whether families may cancel their own event sign-ups and bookings (off to start; booked lessons keep their own rules). Staff; reads only.

core_family_cancel_signup

ChatGPT
A signed-in family cancels one of their own sign-ups or bookings that hasn't started (an id from core_family_schedule's registration_ids). A booked lesson follows its own rules (as on its sign-up page); anything else is canceled with no refund issued by 1barn: the barn decides any refund by the event's policy. A request still waiting releases its card hold. The barn is told and the family emailed. A sign-up or booking that isn't a booked lesson is refused unless the barn lets families cancel their own (allow.cancel in core_family_schedule); then the person messages the barn. Call it first without confirm: nothing changes, and the answer says who and what; tell the person, and call again with confirm=true only after they say yes. Families only.

core_family_month

ChatGPT
A family's Month (month YYYY-MM), with the same layers and rules as core_family_week. Families only; reads only.

core_family_open_to_you

ChatGPT
A family's Book & sign up: service days one of their horses can join (with a due note, "Blaze's farrier is due Dec 2") and the ones they said Not this time to (declined), fixed-date events open to them (spots left; signed_up names who of theirs is already in), bookable lesson times and rides or rentals for the next two weeks, make-up credits, and sessions (Weekly lessons): each lesson session whose weekly-time booking is scheduled or open for them, with its dates, picks_words ("You can pick a time now", "You can pick from Mon, Nov 16 at 12:00 PM"), can_pick, their own held times (to Keep or let go) and spots (requested, paying, confirmed, first names only), and action_words with book_href, the session's page. counts per kind (lesson includes the sessions; sessions alone). To book a time or sign up, use the event's booking tools (events_open_times, events_sign_up), lessons_open_times_for_session and lessons_request_time for a session, or the barn's booking page. Families only; reads only.

core_family_schedule

ChatGPT
A family's My schedule (Calendar, the signed-in family's own): their lessons, sign-ups, bookings and the service days their horses are on, from date_from (YYYY-MM-DD, today if left out) for weeks (1 to 13), soonest first. Each entry has kind, layer, title, starts_at, ends_at, all_day, who (the family's person or horse ids) and names; a lesson its riders (each with can_tell: whether Can't make it still works: lessons_report_absence), Instructors and place; a sign-up or booking its registration_ids (core_family_cancel_signup) and whether a waiver is still to sign. offers lists service days a horse can join that nobody has answered (barn_add_horse_to_service_day, barn_decline_service_day). Families only; reads only.

core_family_week

ChatGPT
A family's Week: the Sunday-to-Saturday week holding date (YYYY-MM-DD) as the Calendar's Week shows it, by layer: their own (mine), Around the barn (service days without the list of horses, term breaks, arena closures, dated board posts), Open to you (bookable times and events they can sign up for), and, only when the barn allows them and they're asked for, the barn's other lessons (time, Instructor and arena; a group lesson its student count; never who) and events. Back-to-back single lessons in one arena come as one entry with lessons counting them. allow says what the barn allows. Families only; reads only.

core_follow_form

ChatGPT
Stop following, or follow again, for a service day, an event type or an event (kind service_day, event_type or event; item_id from core_forms_in_use, events_get or barn_service_day_questions). follow=false: it keeps the questions it has as its own copy and the form's (or its type's) later changes no longer reach it. follow=true (Follow again): the form's (or type's) questions replace its own copy and its later changes reach it again; answers already given stay, and a new question is blank for those who answered; an event type's events that people signed up for keep their questions and are offered the new ones. Following again needs confirm: called without it, nothing changes and the answer says what would; tell the person, and call again with confirm=true only after they say yes. Sends nothing. Staff only.

core_forms_in_use

ChatGPT
Forms in use (Settings › Forms › In use): for each library form, the service days, event types and events that follow it (following, an event type with how many of its events follow it) and the copies edited away from it that ask their own questions (own); type_copies, events with their own copy of their type's questions; no_form, days, types and events whose questions never came from a form. Each row: kind (service_day, event_type, event), id, name, state (follows, own, none), source (the form or type), can_follow_again, answered (horses or registrations with answers), date. Days not over yet, events still to come; archived and canceled ones are left out. own_only (the default) leaves out what follows. Change one with core_set_form_following. Staff only.

core_getting_started

ChatGPT
Get started, as a new barn's owner sees it: whether it's open, the wizard's steps (about, facility, rates) and which are done or skipped (next_step is the first of neither), what they're most excited to run (focus, from focus_choices), and What's left: each item (about, facility, horses, rates, care, staff, boarders, stripe, lessons, events, shifts, health) with done ticked from the barn's own data, why it matters and where to go, done ones first, then their picks' areas; left counts what's not done or hidden; facility counts the places already there by kind. The owner, or a manager with Settings. Reads only.

core_list_entitlements

ChatGPT
List the modules enabled for the current tenant.

core_list_form_templates

ChatGPT
The barn's library of forms (Settings › Forms): each with its questions, the areas that offer it (service_days, event_types, events) and how many days, event types and events follow it. area keeps the ones offered there; service_day_kind (vet, farrier…) puts that kind's first. A barn that has never opened its library in the app has no forms yet (the app adds two starters then). Staff only.

core_manager_permissions

ChatGPT
What this barn's managers may do beyond the manager baseline (staff's reach plus running the staff schedule and its approvals): each capability, what it covers, its default and whether managers have it. Staff and up.

core_notification_settings

ChatGPT
The caller's own notice choices: each kind that fits their roles here (schedule changes, shift reminders, offers, trades and time off, lesson changes, lesson reminders, messages) with phone and email on or off, how far ahead shift reminders come (minutes), and whether lesson reminders come the evening before or two hours before.

core_open_tasks

ChatGPT
Everything waiting on the caller to decide, across the barn's modules, soonest first: punches, offered-up shifts and trades, time off and lesson covers to approve, open shifts people have answered, shifts offered to the caller, open shifts they could take, lesson requests to place, and documents to sign. Each has a title, a detail line, when, and its kind and id; decide each with that module's own tool (for example staffing_approve_entry, staffing_decide_offer, staffing_assign_shift).

core_publish_schedule

ChatGPT
Publish unpublished schedule changes: scope mine (the caller's own) or all, or only ids (shift:<id>, lesson:<id>). Managers publish shifts, staff publish lessons. Charges post, shifts follow lessons, calendar subscriptions update, and each employee, family and instructor affected gets one push notice. Changes that no longer fit are left unpublished and listed under failed. Confirm with the person first.

core_referrals

ChatGPT
The barn's referrals and the months they earned. referrals is grouped by status: trialing (On trial, waiting on their first bill, trial_ends_on), earned (Month earned, earned_on), canceled (Trial ended before paying) and invited (an invite sent, not signed up yet; send_again_on is when another can go). For the owner, credit adds dollars in cents: earned_cents, balance_cents (what's left), used_cents, next_bill_on (when the rest comes off), and each use (a 1barn fee refunded on a family payment, a 1barn bill, taken off by 1barn, or ended with the subscription). A manager's answer has no credit and no amounts: tell them months, not dollars. Owners and managers; changes nothing.

core_save_form_template

ChatGPT
Create a form (no form_id) or change one. questions is the whole list, in order: [{id?, label, kind: text | textarea | select | checkbox | yesno | number | date | multi | acknowledge, required, options (select, multi), help?, short? (its column name), unit? (number), unknown? (date), other? (select, multi), body? and check? (acknowledge), show_if? {field, equals}, link? (a record field, from the form's questions: horse.age, health.dental, owner.contact…)}]. Keep each id read back so answers stay with their question. New questions flow to the service days still taking sign-ups and the event types that follow the form; flowed counts them. Labels may say {horse}, {date} and {vendor}. Notifies nobody. Staff only.

core_schedule_changes

ChatGPT
Unpublished schedule changes (staff): new, changed and removed shifts and lessons nobody else sees yet, each with what it was, what it will be, and who changed it last. mine keeps the caller's own.

core_send_held_invites

ChatGPT
Send every invite not sent yet now (held for the go-live date, or one that failed), and clear the date. They go out within a minute or two and can't be unsent. Call first without confirm: nothing is sent and the answer lists who would be emailed; confirm=true only after the person says yes. The owner, or a manager with Settings.

core_send_start_invites

ChatGPT
Email each person an invite to sign in (their own link, the app links and the opening as written), which can't be unsent. They go out within a minute or two; while the go-live date is ahead they're held and go out that morning instead. Someone who can't be invited (no email, a login, already invited, an address that bounced, no room on the plan for staff) is skipped with why. Call first without confirm: nothing is sent and the answer says who would be emailed; call again with confirm=true only after the person says yes. Only the owner invites managers; staff needs the logins permission. The owner, or a manager with Settings.

core_set_app_barn

ChatGPT
Choose the barn one of the caller's own connected AI apps works with: where its calls act when they name no barn. app_id from core_connected_apps; barn_id one of its barns_to_choose (the caller's own barns). Felt on the app's next call; if it's the app making this call, its next call works in that barn.

core_set_appearance

ChatGPT
Change how 1barn looks for the caller (My profile › Appearance): mode (system, light or dark), theme (a theme's slug, "onebarn" by default; "custom" only once a custom palette is saved in the app), clock (auto, 12h or 24h: how times read and are typed) and calendar_week_monday (true starts their calendar's weeks on Monday). Only what's given changes; only the caller's own. Returns what it's now set to. Notifies nobody.

core_set_calendar_display

ChatGPT
Change the caller's own calendar Display choices (the calendar's Display menu): month_style dense or classic, color_by kind, instructor or horse, week_layout auto, stacked or hours. Only what's given changes; only the caller's own, at every barn they belong to. Returns what they're now set to. Notifies nobody.

core_set_family_calendar_settings

ChatGPT
Change what clients may see and do on the calendar (left out stays): barn_activity lets clients turn on the barn's other lessons and events in Week and Month; events (name, time, place; private ones never) and lessons (time, Instructor and arena; never who's in them) say which. family_cancel lets families cancel their own event sign-ups and bookings before they start (no refund by 1barn; the barn decides); off, they message the barn. It changes what every family can see and do, so call it first without confirm: nothing changes, and the answer says what clients would see; call again with confirm=true after the person says yes. The settings permission.

core_set_form_following

ChatGPT
Stop following, or follow again, for a service day, an event type or an event (kind service_day, event_type or event; item_id from core_forms_in_use, events_get or barn_service_day_questions). follow=false: it keeps the questions it has as its own copy and the form's (or its type's) later changes no longer reach it. follow=true (Follow again): the form's (or type's) questions replace its own copy and its later changes reach it again; answers already given stay, and a new question is blank for those who answered; an event type's events that people signed up for keep their questions and are offered the new ones. Following again needs confirm: called without it, nothing changes and the answer says what would; tell the person, and call again with confirm=true only after they say yes. Sends nothing. Staff only.

core_set_go_live

ChatGPT
Set the barn's go-live date (Get started): invites made before it wait and go out that morning. Null clears it; invites already held then wait for core_send_held_invites. Sends nothing. The owner, or a manager with Settings. Returns go_live as core_start_invite_people.

core_set_manager_permissions

ChatGPT
Turn managers' permissions on or off (owner only). pay: rates, pay history, payroll; finance: customer accounts, charges, cards, lesson billing; logins: inviting staff and changing login roles below manager; settings: barn setup. Leave one out to keep it as it is.

core_set_notification_settings

ChatGPT
Change the caller's own notice choices. changes maps a kind (schedule, shift_reminders, requests, lessons, lesson_reminders, messages) to {app?: bool, email?: bool}, plus shift_lead_minutes (60, 120, 720 or 1440) and lesson_timing (evening or hours). Only the caller's own.

core_settings_overview

ChatGPT
Every barn setting at a glance, as Barn settings' front page shows it: the barn's name, short name, address and phone; the owner and how many managers; the schedule's week start and whether changes wait to be published; staffing's pay period and weekly overtime (managers); care reminder cycles (barn-wide, with how many horses have their own); how many space kinds, vendor types, disciplines and levels, event types and add-ons; lesson billing mode; Stripe and tips (for whoever sees the barn's money); records email; the assistant. A section is null when its module is off or the caller can't read it. needs lists the setup gaps the caller can fix (barn phone, barn address, Stripe), each with what to do. Staff only.

core_sign_ins

ChatGPT
Sign-in history: when, how (Google, Apple, email link or code, passkey, password), from which app, and failed attempts. The owner, and managers with the logins permission, read the barn's people's sign-ins into this barn (person_id for one person); everyone else reads their own. Never an IP, a device, a place or a code: those stay in the app's sign-in history.

core_sms_remove_phone

ChatGPT
Remove the caller's own mobile number: 1barn stops texting them, and any code waiting is dropped. Call it first without confirm: nothing changes, and the answer says what would; tell the person, and call again with confirm=true only after they say yes.

core_sms_usage

ChatGPT
How many texts the barn has sent this month: used of its monthly cap, counted in segments (a long text is two). At the cap, texts stop until the 1st and notices still go by app and email. Only lesson and shift changes are texted. The owner and managers only; available is false while 1barn's texts are off.

core_start_invite_people

ChatGPT
Who could be invited from Get started: staff (people who work here or teach) or boarders (horse owners and lessees, riders and other horse contacts, parents and guardians; groups says which). Each has a status: ready, or why not (no_email, has_login, invited, held). Also the drafted email opening (draft), and go_live: the go-live date, whether invites are being held for it and the invites not sent yet (each waiting, sending or failed with error). The owner, or a manager with Settings. Reads only.

core_today

ChatGPT
Today at the barn, as the caller's dashboard tells it, through one of their lenses: barn (running the barn), work (their own shifts), teaching (the lessons they teach); none picks the one their dashboard opens on, and lenses says which they have. Always needs: what needs them, most urgent first, each with a kind, a tone (problem: an injured or sick horse booked for a lesson; late: staff past their start without clocking in; gap: a rider with no horse yet), a title, a detail and when. barn adds staff_today (each person's shifts, work type and status: in, on, late, missed, later, done; clock status and lateness for managers only; hours by hour with thin times), schedule (today's lessons, events and service days), tomorrow (one line) and coming_up (events and how full). teaching adds teaching.today (each lesson with rider and horse pairs, a horse's injured or sick status, and whether attendance is due), teaching.week and teaching.horses_today. work adds work.week (each day's shifts, hours scheduled and hours worked, each entry's paid hours to two places), work.pto and work.time_off. Never pay or wages. Act on a row with the module's own tool (lessons_substitute_horse, staffing_approve_entry, msg_send).

core_undo_change

ChatGPT
Undo a change from the activity log: each line's before value is written back, only while the record still holds the value that line set, through the area's own rules, and the undo is logged as its own change (so it can be put back). line_ids picks lines; left out, every line that can be undone (an import as one step). When the change was an owner's, the owner gets a notice unless notify=false. Money, sends, signatures, closes and logins are never undone here. Call it first without confirm: nothing changes, and the answer lists each line's before and after (the first 20 of a big one) and who would be told; tell the person, and call again with confirm=true only after they say yes. An import, or more than 200 lines, is undone in the background: the answer is queued with a job_id; follow it with core_undo_status. Calling again joins it, or resumes one that stopped partway.

core_undo_status

ChatGPT
A background undo from core_undo_change (an import, or more than 200 lines): status queued, running, done or failed; done of total lines worked through; how many were undone, skipped because they changed since (the first 500 listed in skipped_lines, with why), already undone, and failed. A failed one says why; calling core_undo_change again on the same change set resumes it. The owner and managers, and whoever asked for it.

core_update_barn_profile

ChatGPT
Rename the barn or change how it schedules or looks, as Settings, Barn and Settings, Scheduling do: the owner, or a manager with the settings permission. timezone (an IANA zone like America/Chicago) is the barn's clock for every day, shift, lesson and reminder; week_start moves every week view; schedule_drafts changes whether staff hear of schedule changes at once. With any of those three, call first without confirm (nothing is saved; the answer says before → after) and again with confirm=true only after the person says yes. primary_color and secondary_color (#rrggbb) and font (Figtree, Inter, Lato, Montserrat, Poppins, Playfair Display, Merriweather, Roboto Slab or Nunito) are the booking pages' and documents' look; a logo is uploaded in the app. name is the full name, kept on documents, invoices, emails, booking pages and e-sign. short_name (24 characters at most; "" clears it) is what the app's menu, barn switcher, push notices and the Time Clock show instead of a long name, like "Stagecoach" for "Stagecoach Stables, LLC". week_start is the day the barn's weeks start on in the staff schedule and every week and month view: 0 Monday or 6 Sunday. schedule_drafts true makes schedule changes wait to be published (nobody hears of them until then); false shows them at once. links sets the barn's current website and social pages, public information its 1barn website shows in the footer, the Contact section and its search data: {website, facebook, instagram, youtube, tiktok, linkedin, x, google_business, other} → a web address (a handle like @stagecoachstables works for facebook, instagram, youtube, tiktok and x), "" to clear one; keys left out stay. Leave one out to keep it. Returns name, short_name, display_name (what compact places now show), week_start and schedule_drafts (and links when given). Confirm a new full name with the person first: it reaches booking pages and calendar subscriptions.

core_update_getting_started

ChatGPT
Change Get started: focus (what they're most excited to run, in their order: care, boarding, lessons, events, staff, health), a step (about, facility or rates) with step_state done, skipped or "" to clear it, hide or show a What's left item by key, or open false to close Get started (true brings it back). Only what's given changes. Notifies nobody. The owner, or a manager with Settings. Returns Get started as core_getting_started does.

core_update_my_profile

ChatGPT
Change the caller's own name as 1barn shows it (My profile), or take their picture off (remove_picture; a new picture is uploaded in the app). Only the caller's own, at every barn they belong to. Notifies nobody.

core_view_as_history

ChatGPT
The barn's record of views of 1barn as someone, newest first: who viewed, as whom, from when to when (line reads "Rachel Haila viewed 1barn as Maria Martinez · 4:12–4:20 PM"). The owner's and managers' with the logins permission; never views of the caller.

core_view_as_start

ChatGPT
Start viewing 1barn as someone, read-only, to see exactly what they see (the web app's person menu, View 1barn as …). The owner may view as anyone with a login at the barn but themselves; a manager with the logins permission as staff, Instructors, families and vendors, never the owner or another manager. Answers a token for the web app (30 minutes; X-View-As on its requests), expires_at, and who (name, role). Tools never act while viewing: every change is refused, and connected AI apps and Ask are off for the view. On the barn's record (owner and managers with logins); the person isn't told.

core_view_as_stop

ChatGPT
Stop a view of 1barn as someone (core_view_as_start): the token stops working everywhere and the barn's record says how long it lasted. Answers person_id, the person's page to go back to.

core_whoami

ChatGPT
Who am I? Returns your name, the barn's name, timezone and the day its weeks start on (week_start: 0 Monday, 6 Sunday), your role (owner|manager|staff|instructor|customer|vendor), the owner-set permissions you hold (pay, finance, logins, settings; an owner holds all), and your person_id (the id other tools take for "me").

esign_add_restricted_grant

ChatGPT
Let one manager or staff login send packets, open every restricted form, Social Security and bank numbers included, and sign Section 2. Owners only. Call it first without confirm: nothing happens; tell the person, and call again with confirm=true only after they say yes.

esign_archive_template

ChatGPT
Archive a form template: it can't be sent and its public form stops being offered; everything already signed with it stays. esign_restore_template brings it back. Confirm with the person first, naming the template. Returns the template's id, name and status. Staff only.

esign_create_envelope

ChatGPT
Create a draft envelope from a template. Leave name out to let the template's title pattern name it (it fills in as the form is signed), or pass one to fix it. signers is an ordered list of {name, email, person_id?, role?} — signing happens in that order. A signer the barn doesn't know becomes a person record, filed as role (boarder|staff|vendor_contact|other) when given; one it knows by email is reused. Optionally attach to a subject (subject_type: horse|person) so the signed PDF lands on that record. Follow with esign_send_envelope. Returns the envelope's id, name and status and each signer's index, name, status and person_id. Staff only.

esign_delete_restricted_form

ChatGPT
Delete a restricted form that's past its keep-until date, for good: it can't be undone. Owners only; esign_restricted_forms says which are ready. Call it first without confirm: nothing happens; tell the person what it does, and call again with confirm=true only after they say yes.

esign_dismiss_filing

ChatGPT
Don't add a card to 1barn: it leaves the To add list and nothing is made; the envelope stays linked to its signers and subject. Confirm with the person first. Staff only.

esign_duplicate_template

ChatGPT
Save a template as a new, editable version: same PDF, every field and condition, slots and title pattern. Use when a template's fields are frozen because envelopes were sent from it. The name defaults to the old one with a version number. Returns the new template's id, name, status, title pattern, slots, field count and whether it's frozen. Staff only.

esign_email_my_copies

ChatGPT
Email the caller a link to their own signed employee forms, from esign_my_forms (restricted true). Opening it takes a fresh code. No assistant can open these.

esign_file

ChatGPT
Add a Ready to add card to 1barn: create the new people and horses, fill the blanks, write the differences chosen, add the relationships and link the signed document to everyone it names. Before calling, read the card (esign_filing) to the person: its questions, its differences and every confirm line (overwrites, billing changes, portal sharing), and add only on their yes. decisions (optional, saved first): {"slots": {key: {"match": id | "new" | "skip", "items": {attribute: fill | skip | keep | use | add}}}, "relations": {key: {"ticked": bool, "billing": keep | use}}}. Adding twice changes nothing; a card whose matches changed since is refused with the fresh card to read again. Staff only.

esign_filing

ChatGPT
One Ready to add card, matched again now: per slot, who it matches and why (or New, or a question with candidates), the blanks it fills, the values that differ (In 1barn vs On the form, with the choice keep | use | add), chips (possible_duplicate, under_18, archived); the relationships it adds or finds on file; who the document will show on; confirm lines; and summary_text. A date of birth shows only as a state (fill, same, differs), never its value. Staff only.

esign_filings

ChatGPT
Signed forms with a Ready to add card: each card's id, envelope, template, completion time, a line per person or horse it names ("Rider · New person: Ivy Arder"), how many questions are open and a one-line summary. status: proposed (default) | filed (added to 1barn) | dismissed | undone | all. Staff only.

esign_find_envelopes

ChatGPT
Find envelopes (contracts, waivers) by anything on them: the envelope or template name, a signer's name or email, the horse or person it's filed under, or a value typed into a non-secure field — so "the hold harmless for Apollo" or "the boarding contract for rider Bo" works. Each hit carries matched (which kinds of thing matched: envelope name, template name, signer, horse, person, or a named field) and url (the page in the web app). Optional status: draft|sent|completed|declined|voided|expired. Staff only.

esign_get_envelope

ChatGPT
One envelope: status, what it's filed under, signers (with the email each was sent to), the fields' values as the envelope page shows them (signatures as "signed", secure values masked), and the trail of what happened when. Staff only.

esign_list_envelopes

ChatGPT
List e-sign envelopes: name, template, status, what it's filed under, sent and completed times, and each signer's name and status (status: draft|sent|completed|declined|voided|expired). Staff only.

esign_list_forms

ChatGPT
List published just-in-time forms: name, template, whether it's taking signatures, and its public URL. Staff only.

esign_list_templates

ChatGPT
List e-sign document templates (boarding contracts, waivers…): id, name, description, status, title pattern, field count and signer slots. Staff only.

esign_my_forms

ChatGPT
The caller's own forms with the barn (contracts, waivers), and their children's: each one's name, state (to_sign: waiting for the caller's signature; waiting: on someone else, named in waiting_on; signed), when it was sent and signed, the horse it's about, and for_person when it's a family member's. To sign one or get a signed copy, send the person to url, their Documents page in the app. Nothing typed on a form is returned.

esign_packet_choices

ChatGPT
What can go in an employee packet. An owner or someone named.

esign_propose_filing

ChatGPT
Make a Ready to add card for a completed envelope that has none (its template was linked after it was signed); returns the card. One that exists is returned, and a dismissed one comes back. Staff only.

esign_publish_form

ChatGPT
Publish a template as a public just-in-time form: anyone with the returned URL enters name + email and gets a signing link by email (the link doubles as email verification and expires in 24h if unopened). counterparties fixes identities for slots >= 2, e.g. [{"index": 2, "name": "Barn Manager", "email": "mgr@…"}]. Returns the form's name, template and public URL. Staff only.

esign_remind_signer

ChatGPT
Re-email the signer whose turn it is (issues them a fresh link). Returns where the envelope and its signers stand. Staff only.

esign_remove_restricted_grant

ChatGPT
Take someone's access to restricted forms away, at once. Owners only.

esign_restore_template

ChatGPT
Restore an archived e-sign template so it's offered again when sending and on public forms. It comes back active if its PDF was finalized, otherwise as a draft; one that isn't archived is returned unchanged. Find archived templates with esign_list_templates include_archived=true. Returns the template's id, name and status. Staff only.

esign_restrict_template

ChatGPT
Make a template Restricted: it and every form from it, already sent too, are hidden from everyone but the barn's owners and the people an owner named. It can't be undone. An owner or someone named. Call it first without confirm: nothing happens; tell the person what it does, and call again with confirm=true only after they say yes.

esign_restricted_access

ChatGPT
Who can open restricted forms: the owners, the people named, and who could be added. Owners only.

esign_restricted_forms

ChatGPT
Restricted forms: who signed and where each stands, for an owner or someone named. Never what a form says: no assistant can open one, so send people to 1barn for that.

esign_restricted_log

ChatGPT
The restricted forms access log, newest first: who did what, on which form. Never what a form says. Owners only.

esign_send_employee_packet

ChatGPT
Send someone their employee paperwork: one email, one link, the forms one after another. An owner or someone named. Call it first without confirm: nothing happens; tell the person what would go to whom, and call again with confirm=true only after they say yes.

esign_send_envelope

ChatGPT
Send a draft envelope — emails the first signer their signing link. Returns where the envelope and its signers stand. Staff only.

esign_set_form_on_website

ChatGPT
Show a public form on the barn's website (its Forms and waivers section and footer) or take it off. Only at a barn with the website add-on, and only for a form that's on and whose template isn't archived; a published site is rendered again with the change. Take form_id from esign_list_forms. Returns the form as esign_list_forms does. Staff only.

esign_set_template_title

ChatGPT
Set how envelopes from a template name themselves, e.g. "Hold Harmless — {Rider name} for {horse}". Braces hold a text or date field's label, or a built-in: signer, signer 2, horse, person, subject, template, date. Unknown parts show as … until a signer fills them in. Pass an empty string to go back to naming each envelope by hand. Staff only.

esign_undo_filing

ChatGPT
Undo adding a card to 1barn: values go back where nothing has changed them since (anything changed is left and listed), people and horses it made are archived, relationships it added are removed, ownership it added is ended, and its document links are removed. The card goes back to proposed. Confirm with the person first. Staff only.

esign_void_envelope

ChatGPT
Void a draft or in-flight envelope (notifies signers). Returns where the envelope and its signers stand. Staff only.

events_add_addon

ChatGPT
Add a time-based add-on to someone's sign-up (spec 46): one of the event's offerings, for all sessions (session_ids null) or picked ones. payment: owed (it joins what the family owes) or link (emails the family their sign-up page to add and pay; holds no spot). In the in-app assistant also card_on_file, only with consent=true once the family agreed. A full session needs over_limit=true, owners and managers only. Call it first without confirm: nothing happens, and the answer says what it costs, which days are full, and who would be emailed; tell the person, and call again with confirm=true only after they say yes. Staff only.

events_add_guest

ChatGPT
Add a guest to a booking with a guest link, for a walk-in or a call, also after the link ends. Emails the parent their sign-up and the event's waiver; past what's paid, the host's booking goes up by the price per additional guest, and the host is told. Staff only.

events_add_time

ChatGPT
Add a Private type's times: give dates (each its own time) or weekdays with from_date and until_date (weekly; one time per matching date). Each time is 1 booking and families see it on the booking page at once. Up to 60 per call. A time overlapping another of the type's times in the same place is refused with the clash; a weekly date with nothing booked can be skipped (skip_event_ids) if the person agrees. Call it first without confirm: nothing is added, and the answer lists the times it would add; tell the person, and call again with confirm=true only if they say yes. Staff only.

events_add_to_signup

ChatGPT
Add someone to an existing sign-up. people is [{name, person_id?, email?, answers?, addons?, emergency_contact?}] (emergency_contact {name, phone}, as events_sign_up takes it; a link leaves it to the family). insurance {company, policy_number, policy_holder} replaces the sign-up's insurance answer (the payer's; never written to a person from here). payment is link (email the payer a link to answer, sign and pay; it holds no spot until it's paid). In the in-app assistant also card_on_file (charge the card the family saved, only with consent=true once they've agreed), or check or cash recorded now (amount_cents defaults to what's due now). Staff only. Call it first without confirm: nothing happens, and the answer says what would happen and who would be emailed; tell the person, and call again with confirm=true only after they say yes.

events_addon_check_in

ChatGPT
Check a child in (present=false: undo) for a time-based add-on at one session, with its part (before or after). Sends nothing. Staff only.

events_addon_roster

ChatGPT
Who has a time-based add-on (Barn Buddies, before or after camp). Either one event's offering (event_id + offering_id, from events_get's offerings) for one session (session_id; default today's or the next): each day's count against the spots, the children booked that day (all sessions or their days), the grown-up to call, paid or owed, and check-ins. Or an add-on by name or id with a date range (date_from, date_to): every event's roster in it, day by day ("Who’s in Barn Buddies next week?" in one call), as rosters. Staff only.

events_addon_signups

ChatGPT
A time-based add-on's season (by name or id): a row per event and offering with the busiest session's fill, each session's count, child-sessions, the event's sign-ups and (finance) money; totals for the rows; when is upcoming, past or all; year filters. Staff only.

events_apply_slot_suggestions

ChatGPT
Open the suggestions kept, as events_suggest_slots gave them (with their hash; repeat=true makes a new one weekly). One that's out of date is refused ("Things changed: suggest again"). Families can book the new times at once, and each person named is notified. Owners and managers with the calendar permission. Call first without confirm: nothing changes; call again with confirm=true after the person says yes.

events_apply_starting_values

ChatGPT
Apply to existing types: the chosen holders (ids from events_set_starting_values' would_differ, or from this tool called with holder_ids [] to list them; was: the previous starting value, to say which had it) take field's current starting value, only where it still differs. field: min_notice_hours, max_days_ahead, per_rider_per_day, change_window_hours or balance_collection. Without confirm nothing changes: the answer says what would. Tell the person and call again with confirm=true only if they say yes. People signed up keep what they agreed to; events that customized Price and payment keep their own. Charges and sends nothing.

events_attendance

ChatGPT
Daily attendance for an event: its sessions with how many were checked in, and each confirmed registrant with the sessions they were checked in at. Staff only.

events_booking_window

ChatGPT
How far ahead families can book lessons, and why ("Why can't families book December?"). Two rules, the nearer wins: how far ahead (max_days_ahead) is the farthest, and when the barn plans in lesson terms, lessons book only inside published terms (a term still in planning, or after the last published term ends, is closed). Returns first_day and last_day (null: nothing bookable), reason (days_ahead, term_end or term_planning), term (the one behind it), next_term (the one that would open more if published, with opens_through), closed_terms, summary (the line to say) and family_note (what families see). Without event_id: the barn's, by its default, plus bookables (each live bookable lesson's own). With event_id (a bookable event): that one; applies is false when it doesn't book a lesson type, and nothing limits it. Staff.

events_bookings

ChatGPT
Bookings on bookable events between two dates (YYYY-MM-DD; the next 30 days by default): who, which event, when, and whether it's confirmed or waiting for approval (status: confirmed | pending | cancelled | all). Staff see every booking; anyone else sees only their own family's. No contact details; amounts only for the finance permission.

events_cancel_charge

ChatGPT
Take a registration's scheduled balance charge off the schedule; what's owed stays owed (send a link, record a payment or waive it). Refused when no charge is scheduled. Sends nothing. Owners and managers with the finance permission.

events_cancel_guest

ChatGPT
Take a guest off a party, telling their parent. An unsigned waiver is voided; what's unpaid falls off the host's balance, and a paid place stays paid for the next guest. Call it first without confirm: nothing changes, and the answer says whom it would email; call again with confirm=true only after they say yes. Staff only.

events_cancel_registration

ChatGPT
Cancel a registration (back-office; emails the registrant). No money moves: a refund is issued from the event's page in the web app. Returns the registration's id, status, cancelled_at, whether it was refunded, and its total. Staff only.

events_cancel_signup

ChatGPT
Cancel everyone on a sign-up, with one email to the payer. Ask who's cancelling first, as for a lesson: cancelled_by family (the event's cancellation rules: a deposit is kept before the balance is charged; issue_refund refunds what was paid minus a non-refundable deposit) or barn (everything refunded, deposits included; in the in-app assistant only, as any refund is). A refund goes back the way it was paid; a part paid by cash, check or at the barn needs other_as: by_hand or credit (the preview's refund_question). Staff only. Call it first without confirm: nothing happens, and the answer says what the money would do and who would be emailed; tell the person, and call again with confirm=true only after they say yes.

events_check_in

ChatGPT
Check a registrant in at one session (present=false undoes it). Staff only; it sends nothing to anyone.

events_check_in_guest

ChatGPT
Check a guest in (present=false undoes it). A waiver still needed doesn't block it. Sends nothing. Staff only.

events_convert_to_type

ChatGPT
Offer a one-time event (standalone) on other dates: it becomes an event type named type_name (else the event's name), listed in events_list_types, with this event as its first date. Each date added after is its own event with its own sign-ups (events_create with the new event_type_id); the people signed up for this one stay on it. Not the same as adding a day (events_update sessions: the same sign-ups). Without confirm nothing changes and the answer says what would: tell the person and call again with confirm=true only if they say yes. Charges and sends nothing. Staff only.

events_create

ChatGPT
Add a fixed-date event as a draft (publish it in the app or with events_update). sessions: [{date: YYYY-MM-DD, start_time: HH:MM, end_time: HH:MM}], one sign-up covering them all. With event_type_id (from events_list_types) it's an event of that type and follows its four sections: details (description, location, prep_text), price (price_cents, payment_terms, max_per_signup, tips_enabled), questions and policies. customize: the sections this event keeps its own values for, with those fields (["price"] and price_cents for a camp week that costs more); a field of a section it follows, given another value, is refused. Without event_type_id it's something new, and other_dates is required ("Will you offer this on other dates?"; ask the person, never assume): true makes an event type (named type_name, else the event's name) with this as its first date, each date its own sign-ups; false makes a one-time event, one sign-up covering every day (it has no event type: standalone). Its price_cents, description, payment_terms and location are the new event's. Nothing converts by itself: a one-time event's id is never an event type (add a day with events_update sessions, or events_offer_on_other_dates). bookings_open_at: when registration opens (ISO; no offset is the barn's clock); null is open once published. location: {kind: "barn", space_id?} or {kind: "elsewhere", name, address}. Charges and sends nothing. Staff only.

events_create_addon

ChatGPT
Add an event add-on: a name and price in cents (0 is fine), an optional Markdown description, an optional duration in minutes, how many one registration may take (1 = a checkbox), an optional total per event ("8 stalls"), and the categories and events that offer it. Charges nobody. Staff only.

events_create_category

ChatGPT
Add an event category (Settings › Events): "Camps". color (#rrggbb): its events' color on the booking calendar; left out, it gets the first color of the barn's brand-aligned palette no other category wears, and keeps it (adding or reordering categories never recolors one). A color too light to show 3:1 on white is refused. Event types are put in one with events_update_type. Notifies nobody. Staff only.

events_create_slot

ChatGPT
Add a slot families can book from: one date (on_date) or weekly (weekdays 0=Monday…6=Sunday, from_date, until_date), start_time and end_time "HH:MM". A lesson-linked event's slot names who leads it (provider_person_id, one of the lesson type's Instructors) and its arena, and leads one lesson at a time; the person named is notified. Owners and managers with the calendar permission. Call first without confirm: nothing changes, and the answer says what would; call again with confirm=true only after the person says yes.

events_create_type

ChatGPT
Add an event type. payment_terms: {mode: full|deposit, deposit_kind: percent|fixed, deposit_percent, deposit_cents, non_refundable, allow_pay_in_full (with a deposit, whether families may pay everything at checkout instead; default true), balance_due: first_session|days_before, balance_days_before, collection: auto_charge|link|at_barn|null for the barn's default}. reminder_mode: each_session (default) or first_session. Charges nobody. Staff only.

events_drafts

ChatGPT
The barn's draft events that its booking page doesn't show: upcoming events still in draft (and bookable ones), soonest first, each with its id, name and dates ("6/14–6/18"), with a count and a one-line summary. Families can't see or sign up for a draft until it's published (events_update status=published). Staff only.

events_duplicate_type

ChatGPT
Copy an event type to offer it the other way (Who gets each time? is locked once people sign up): a new type with its details, price and terms, questions and waiver, policies, reminders, place, photo and add-ons, its own name and answer. Never its events, slots, history or link; guests come along only to a Private copy. Charges and sends nothing. Staff only.

events_export

ChatGPT
The filtered Events list as a spreadsheet (CSV text, one row per event or lesson row, ISO dates; money columns only with the finance permission): {filename, rows, csv, link}. link opens the same filtered list in 1barn, signed in, where Export CSV downloads it. Same filters as events_list. No contact details. Staff only; reads only.

events_form_update

ChatGPT
An event whose form (its type's questions or a library form) changed after people signed up keeps the questions they answered (events_get: form_update_pending). use_new_questions=true takes the form's new questions and follows it again; false keeps these as the event's own. Answers already given stay with their registrations either way; a new question is blank for them. Taking the new questions needs confirm: called without it, nothing changes and the answer lists the new questions; tell the person, and call again with confirm=true only after they say yes. Sends nothing. Staff only.

events_get

ChatGPT
Full event detail: sessions, price, seats, description, category, cancellation and refund policies, the registration form's fields, the waiver template (esign_template_id) if one is attached, and the add-ons it offers with how many are sold. Staff only.

events_guests

ChatGPT
A hosted event's guests (spec 70), who signed up with the host's link: each guest's name, parent, the parent's email and cell, their answers, waiver (signed or needed) and check-in, under the host's booking ("Dana's party · 7 of 10 guests · 2 waivers needed"). Amounts only with the finance permission. Staff only.

events_horses_in_use

ChatGPT
The horses in use on an event (spec 90): for a fixed-date event (camp, clinic) each day with its horses (mode fixed, same_every_day); for a bookable one (trail ride, party) each booked time with its riders count and horses (mode bookable). Staff.

events_list

ChatGPT
List events: id, name, status, location, price, capacity, seats registered and left, and session days and times (status: draft|published|archived). Staff only.

events_list_addons

ChatGPT
List the barn's event add-ons (stalls, extra lessons…): id, name, description, price, duration in minutes when it has one, max per registration, per-event limit, and the categories and events it is mapped to. An event offers the add-ons mapped to it plus those mapped to its category. Staff only.

events_list_bookable

ChatGPT
List bookable events (people pick a time): id, name, price in cents, single (one booking per time) or group (runs with spots), duration in minutes, and whether bookings wait for approval. Staff see every one with its status and link; anyone else sees the published ones listed on the barn's booking page.

events_list_categories

ChatGPT
The barn's event categories (Clinics, Camps, Shows…) in its order, each with its id, name and color (#rrggbb: its events' color on the public booking calendar's month view). A category offers no add-ons: those go on event types and events (events_update_addon). Staff only.

events_list_slots

ChatGPT
A bookable event's availability slots (or all the barn's): one date or weekly (weekdays, from, until, skipped dates), start and end, quantity, who leads it (provider_name) and the arena on a lesson-linked event, source (staff or suggested) and, for a one-date slot standing in for a weekly one, replaces_slot_id. Staff only.

events_list_types

ChatGPT
List the barn's event types (what it offers, like "Summer Horse Camp"): id, name, category, price in cents, payment terms (full payment, or a deposit with when the balance is due and how it's collected), reminder default (each_session | first_session), booking mode (fixed: set dates; bookable: people pick a time) and how many events each has. Staff only.

events_mark_no_show

ChatGPT
Mark a confirmed booking as a no-show (no_show=false takes it back). Sends nothing and moves no money. Staff only.

events_my_signups

ChatGPT
The caller's own event sign-ups and their family's, as My barn › Your sign-ups shows them: what they pay for, or that their portal shares. when upcoming (soonest first) or past (newest first); cursor is the last page's next_cursor (25 a page). One item per sign-up: the event and its dates, who signed up, each person's status and add-ons, and, only where the caller is the payer, the money (paid, due and when, refunds and credit). live_url is the sign-up's own page (waivers, paying a balance). No attendance. Read only.

events_offer_on_other_dates

ChatGPT
Offer a one-time event (standalone) on other dates: it becomes an event type named type_name (else the event's name), listed in events_list_types, with this event as its first date. Each date added after is its own event with its own sign-ups (events_create with the new event_type_id); the people signed up for this one stay on it. Not the same as adding a day (events_update sessions: the same sign-ups). Without confirm nothing changes and the answer says what would: tell the person and call again with confirm=true only if they say yes. Charges and sends nothing. Staff only.

events_open_signups

ChatGPT
Open an event's sign-ups now instead of on its opening date (events_get: opens_label). A published event takes sign-ups on its public page at once; a draft does from the moment it's published. Most barns set the date on purpose, so this needs confirm: called without it, nothing changes and the answer says what would; tell the person, and call again with confirm=true only after they say yes. An event already open answers already_open. To set a new date instead, events_update bookings_open_at. Charges and sends nothing. Staff only.

events_open_times

ChatGPT
Open times for a bookable event between two dates (YYYY-MM-DD, inclusive, at most 62 days), in the barn's timezone. Single: each open start with its end. Group: each run with its size, how many are in it and spots left. Reads only; books nothing.

events_person_history

ChatGPT
A person's and their family's events, past and upcoming, as the person page's Events tab shows them. person is an id or a name. The family is explicit links only: the person, the people they're the parent or guardian of, the people who bill to them, and anyone on a sign-up they paid for (never matched by email; a child's own history shows only the child's lines, naming who paid). when upcoming (soonest first) or past (newest first); member (an id or name from family) keeps one family member's own lines; cursor is the last page's next_cursor (25 sign-ups a page). One item per sign-up: the event and its dates (label "Horse Camp · Mon, Jul 13 – Fri, Jul 17"), who paid, source "acuity" for imported history, and each person's status, attendance ("Attended 4 of 5 days"; imported rows say "Attendance not recorded"), add-ons and payment. Payment amounts, credits and refunds only with the finance permission; without it, payment is only {state: paid | balance_due}. Expired checkouts never show. Read only. Staff only.

events_registrants

ChatGPT
Everyone registered for an event: registration id, name, status, whether they've paid, been refunded and signed the waiver, the total charged, and the add-ons they chose. Staff only.

events_remind_guest_waiver

ChatGPT
Email a guest's waiver again to their parent, with a new link. Call it first without confirm: nothing is sent, and the answer says whom it would email; call again with confirm=true only after they say yes. Staff only.

events_remind_waiver

ChatGPT
Remind whoever signs a booked person's waiver (waiver_needed in events_registrants or events_attendance): their waiver's email again, with a new link. Call it first without confirm: nothing is sent, and the answer says whom it would email; tell the person, and call again with confirm=true only after they say yes. Staff.

events_remove_addon

ChatGPT
Take a time-based add-on off someone (addon_row_id from events_registrants), or some of its picked days (session_ids). What wasn't paid comes off what's owed; for what was paid, decision: keep, or in the in-app assistant refund (to how they paid) or credit (account credit). A refund with a part paid by cash, check or at the barn needs other_as: by_hand (the barn hands it back) or credit; the preview's refund_question asks it, so put it to the person. Call it first without confirm: nothing happens, and the answer says what would go back; call again with confirm=true only after the person says yes. Staff only.

events_reschedule_booking

ChatGPT
Move a booking to another open time of its bookable event (see events_open_times; starts_at is an ISO time with its offset). On a lesson-linked event its lesson moves too, to the new time's slot person; nothing is charged again. The family is emailed. Staff; a booking waiting for approval is the owner's and managers'. Call first without confirm: nothing changes; call again with confirm=true after the person says yes.

events_set_booking_price

ChatGPT
Change a lesson booking's price: another option (staff, e.g. Own horse to Barn horse when their horse is lame), or a custom price with a reason (finance). The difference is charged or credited on the family's account and they're emailed. Call without confirm first.

events_set_due_date

ChatGPT
Change when a registration's balance is due (ISO date). A balance whose reminder went out or whose charge failed is scheduled again for the new day. Sends nothing. Owners and managers with the finance permission.

events_set_event_addons

ChatGPT
Set which add-ons one event offers directly (replaces its list; an empty list clears it). Add-ons mapped to the event's category are offered on top and are changed with events_update_addon. Returns what the event now offers. Staff only.

events_set_horses_in_use

ChatGPT
Set which horses are in use on an event. The days or times given are replaced (an empty horse_ids clears one). Each horse and day is a horse block of kind event for its hours, so lessons warn, and an owner's horse counts one event day per event per date toward their barn use credit (lessons_barn_use). Staff.

events_set_kind

ChatGPT
Change an event type's answer to Who gets each time?. The same answer changes nothing. Before anyone signed up it changes either way (to Private, every upcoming event must have one day and 1 spot; to Group, guests turn off). After, only Make this Private…: a type with set dates whose upcoming events each have one day, 1 spot and at most 1 sign-up. Without confirm that answers what would happen (its sign-ups become bookings as they are: paid, owed, scheduled charges, answers, waivers; nobody is emailed): tell the person and call again with confirm=true only if they say yes. Anything else after people signed up is refused: duplicate the type (events_duplicate_type) to offer it the other way. Charges and sends nothing. Staff only.

events_set_payment_method

ChatGPT
Change how a registration's balance is collected: auto_charge (the saved card, on the due date; refused without one), link (an emailed link to pay) or at_barn (paid at the barn). Sends nothing now. Owners and managers with the finance permission.

events_set_starting_values

ChatGPT
Change the barn's starting values for new event types (as events_starting_values), and ask_insurance: the barn-wide "Ask for insurance on sign-ups" (true or false; off hides the booking page's Insurance fields and a sign-up keeps none; never copied onto types, so nothing to apply). Only new types, add-ons and one-time events get them; nothing existing changes. The answer's would_differ lists, per changed value, each type, add-on and one-time event whose value differs (value_label → new_label), with had_old_value (it still had the previous starting value: propose those, as the screen ticks them) and customized_events (events that customized Price and payment keep theirs). To change existing ones, ask the person, then events_apply_starting_values. Booking rules: owners and managers with the settings permission; balance_collection: the finance permission.

events_set_type_questions

ChatGPT
Set an event type's registration questions: the whole list, in order, [{id?, label, kind: text | textarea | select | checkbox | yesno | number | date | multi | acknowledge, required, options (select and multi), and optionally help, short (its column name), unit (number), unknown (date: offer "Not sure"), other (select, multi), body and check (acknowledge), show_if {field, equals} (an earlier yes/no or select), link (a person's record field)}], at most 30; an empty list asks only name, email and phone. Keep each id from events_type_questions so answers already given stay with their question; leave it out for a new one. Every event of the type that follows it asks the new questions; an event with its own copy keeps it (events_update with follow_type ["questions"] moves it back). Charges and sends nothing. Staff only.

events_sign_up

ChatGPT
Sign people up for an event, or book a bookable one's time: one sign-up, one spot each (every kind books this way). people is [{name, person_id?, email?, age?, answers?, addons?, emergency_contact?}] (answers to the questions asked of each person; addons [{addon_id, quantity}]; emergency_contact {name, phone}, kept with the booking and, for a person_id, linked as their emergency contact unless already; age, a typed lesson rider's); answers are the ones asked once per sign-up. A bookable event needs starts_at (ISO, with its offset, from events_open_times) and its slot_id; the time needs a spot for each person, up to the bookable's max_per_booking, and on a lesson every rider must suit its ages (rider_age for one typed rider). A taken time answers "10:00 AM was just taken. Pick another time."; pick again with events_open_times party=N. Waivers come after booking: nothing waits on them, and each signer is emailed once it's confirmed. insurance {company, policy_number, policy_holder}, optional, is the payer's, asked once (not per child): kept with the sign-up, and for a signed-in family also saved to their own record (staff's is kept with the sign-up only). Staff name the payer (who pays and hears about it); a signed-in family is the payer, and may name only their own people (themselves and their children). Returns the sign-up and a Checkout link for what's due now: it never takes a card itself, and spots are held only while that Checkout is open. Call it first without confirm: nothing happens, and the answer says what would happen; tell the person, and call again with confirm=true only after they say yes.

events_signup_history

ChatGPT
A sign-up's money history, one dated line per change ("Oct 19 · Canceled Liam’s spot · $390.00 off the Jun 1 charge (deposit kept)"), each with who did it, what it paid and the totals after it, and Coming up (the next charge). copy_text is the lines in plain words for a message. Read only. Owners and managers with the finance permission.

events_slots_week

ChatGPT
A lesson-linked bookable event's week (week: any YYYY-MM-DD in it): each slot occurrence with who leads it, the starts it offers, the starts held back because its person teaches then (and why), its warnings ("Outside Ella's hours", "No Lead Line horse is free 10:00 AM–11:00 AM") and lessons booked from it; with Who leads' lessons and availability that week. Staff only.

events_starting_values

ChatGPT
The barn's starting values for new event types (Settings › Events): a bookable type's min_notice_hours, max_days_ahead, per_rider_per_day (counting weekly lessons) and change_window_hours (families change or cancel online until then; a time-based add-on's "add until" and "refund until" start from the notice and the change window), and balance_collection (auto_charge | link | at_barn: how a deposit's balance is collected); also ask_insurance, the barn-wide "Ask for insurance on sign-ups" (on by default, not copied). They're copied onto a new type, add-on or one-time event as its own values and never followed after: each type shows its own. Staff.

events_suggest_slots

ChatGPT
Suggest slots for one published week of a lesson-linked bookable event ("What would you open for Lead Line next week?"): per day, the slots to open, who leads each, its arena, why it starts and ends where it does and which horses are free; changes for weekly slots that run into a weekly lesson (this week only); why a day has none; heads-ups on existing slots. Reads only: nothing changes until events_apply_slot_suggestions. Staff only.

events_summary

ChatGPT
Totals only, the Events list's own numbers: {totals, lesson_totals, groups}. "How many kids came to camp in 2025?" is events_summary(year=2025, category="Camps"). group_by: type | category | year, for a subtotal each. when defaults to all. Same filters and rules as events_list (type and category by id or name; money only with the finance permission). Staff only; reads only.

events_type_bookings

ChatGPT
Every upcoming booking of a Private type, by date, whichever time it came from: who booked, how many people, guests, paid and owed (finance only). Staff only.

events_type_history

ChatGPT
A type's Events tab: "How did camp do this year against last?". type: an event type's id or name. Per year, oldest first: events (and still to come), sign-ups, fill, families and the ones who came back (the payer's household, any earlier year), with money when the caller sees it; partial marks the current year with events still to come in whole years (compare its changes with compare="ytd", each year to today's date). Also every event of the type, newest first. Works for an archived type. Staff only; reads only.

events_type_questions

ChatGPT
An event type's registration questions, in the order the booking page asks them: each with its id, label, kind (text: short answer, textarea: paragraph, select: dropdown, checkbox), whether it's required and a dropdown's options. Name, email and phone are always asked besides. A new event of the type starts with these; the events listed in own_questions ask a copy of their own instead. Staff only.

events_type_times

ChatGPT
A Private type's upcoming times (its Times tab): weekly rows ("Fridays 4:30–6", their next dates, how many booked and open) then one-date rows, each open, booked (by whom) or draft. What a booking owes for finance only. A Group or bookable type answers no rows here. Staff only.

events_unlinked

ChatGPT
Calendar › Sign-ups to link: sign-ups whose payer isn't linked to a person (or whose payer 1barn wouldn't guess because several people share the address), and riders named only on a sign-up. A family sees a sign-up through these links, or when it was booked with exactly their login email. counts {people, signups_without_payer}; groups, one per sign-up (upcoming soonest first, then past): signup_id, event {id, name, label "Pony Club · Sat, Nov 14"}, payer {typed_name, typed_email, person {id, name} or null, review, suggestion}, people [{registration_id, typed_name, is_payer, suggestion}]. A suggestion is {person {id, name}, reason same_email | same_name_in_family | same_first_name_in_family | payer | same_name, why}: shown for the person to choose, never applied. Read only. The owner and managers.

events_upcoming_charges

ChatGPT
Scheduled charges in a date range (the next 30 days by default, YYYY-MM-DD): event balances still to collect and the monthly run, each with its due date, family, event, amount after credit, how it's collected and its status (scheduled | reminder_sent | at_risk | problem), plus the range's total. Reads only; charges nothing. Owners and managers with the finance permission.

events_update

ChatGPT
Change an event; only what's given changes. status: draft | published (its public page goes live) | archived. Moving a published event back to draft with people signed up needs confirm. sessions: the whole list of days ([{date, start_time, end_time}]); one sign-up covers every day, so adding a day to an event people signed up for puts them on it too: without confirm nothing changes and the answer says so (for separate sign-ups on the new date, use events_offer_on_other_dates instead). Nobody is messaged by itself. An event of an event type follows its four sections (events_get sections): details (description, location {kind: barn, space_id?} or {kind: elsewhere, name, address}, prep_text "Before you come" Markdown), price (price_cents, payment_terms as events_create_type, max_per_signup 1-10, tips_enabled), questions (questions: the whole list as events_set_type_questions takes, keeping ids; esign_template_id: the waiver, "" for none) and policies (cancellation_policy, refund_policy, reminder_mode each_session | first_session). customize: [section] gives the event its own values for those sections, starting from the type's, with the fields given; changing a field of a section it follows without customize is refused, naming the section. follow_type: [section] follows the type's again; with people signed up and values that differ the answer says what changes (new sign-ups pay the type's price; those signed up keep what they agreed) until confirm. A one-time event (standalone) or a bookable one has nothing to follow: its fields are simply its own. bookings_open_at: when registration opens (ISO; no offset is the barn's clock); open_now=true clears it. Any confirm: tell the person what the answer says and call again with confirm=true only if they say yes. Charges and sends nothing. Staff only.

events_update_addon

ChatGPT
Change an event add-on. Only what's given changes; category_ids or event_ids, when given, replace that whole side of its mapping. clear_duration / clear_event_limit remove those. archived=true stops new bookings choosing it and keeps past registrations' picks. A new price applies to new bookings only. Staff only.

events_update_category

ChatGPT
Rename an event category or change its color (#rrggbb, on the public booking calendar at once; one too light to show 3:1 on white is refused). category is its id or name (events_list_categories). Notifies nobody. Staff only.

events_update_slot

ChatGPT
Change a slot: changes takes start_time, end_time, on_date, weekdays, from_date, until_date, skip_dates, quantity, provider_person_id (a new leader), location_space_id, archived (true removes it). scope="date" with date (YYYY-MM-DD) changes a weekly slot that week only (the date is skipped and a one-date slot stands in; archived with it just skips the date); scope="series" (default) changes every week. Bookings already made keep their times. The person a lesson slot names is notified. Owners and managers with the calendar permission. Call first without confirm: nothing changes; call again with confirm=true after a yes.

events_update_time

ChatGPT
Change a Private type's time: one date's hours (event_id), or a weekly time's hours and its own price (series_id). New weekly hours go on every upcoming date nobody booked; each booked date needs keep or move in booked. A booking whose hours change moves with them and is emailed (and its guests) unless notify is false; money doesn't change. Another of the type's times there at those hours is refused with the clash. Call it first without confirm: nothing changes, and the answer says what would and who hears; tell the person, and call again with confirm=true only if they say yes. Staff only.

events_update_type

ChatGPT
Change an event type; its events follow (a price only where an event doesn't set its own). New terms apply to new bookings; people already booked keep theirs. Charges nobody. Staff only.

events_waive

ChatGPT
Forgive what a registration owes ("waive the Smiths' balance"): all of it, or amount_cents of it (never more than is owed), with an optional note for the history. A balance waived to nothing is no longer charged or reminded. Moves no money and emails nobody. Call it first without confirm: nothing changes, and the answer says what's owed and what would be waived; tell the person, and call again with confirm=true only after they say yes. Owners and managers with the finance permission.

events_waive_balance

ChatGPT
Forgive what a registration owes ("waive the Smiths' balance"): all of it, or amount_cents of it (never more than is owed), with an optional note for the history. A balance waived to nothing is no longer charged or reminded. Moves no money and emails nobody. Call it first without confirm: nothing changes, and the answer says what's owed and what would be waived; tell the person, and call again with confirm=true only after they say yes. Owners and managers with the finance permission.

files_list

ChatGPT
The barn's shared files (Documents › Shared files), newest first: each one's title, kind (file, an upload; or link), folder, and who it's for (shared_with: groups and people; none means staff only, a draft). Open one in the app. Staff only.

files_remove

ChatGPT
Take a file or link off the barn's shelf: nobody it was shared with sees or opens it after (an upload's copy is kept). Call it first without confirm: nothing changes, and the answer says which file it is; call again with confirm=true only after the person says yes. Notifies nobody. Staff only.

files_update

ChatGPT
Change a shared file: its title, folder, description, a link's address, or who it's for. Anything left out stays. Giving either share list replaces who it's for with exactly the groups and people given (the other list left out counts as none); an empty pair makes it staff only. Without email, notifies nobody. With email and a new who-it's-for: call first without confirm: nothing changes, and the answer names who it would newly reach and email; call again with confirm=true only after the person says yes. Staff only.

finance_account

ChatGPT
One customer's balance and full ledger, newest first. Owners and managers with the finance permission may read anyone's; a client only their own and their family's. Each entry: id, kind, amount_cents, occurred_on, memo, method, reference, lesson_id, adjusted.

finance_add_gift_certificate

ChatGPT
Add a gift certificate to the client's own account by its code. It doesn't touch the balance and uses nothing; the code then stops working for anyone else. Five wrong tries an hour. Call it first without confirm; call again with confirm=true only after the person says yes.

finance_add_order

ChatGPT
Add an item from the list onto a family's account: a charge and an order, which is how "Add extra hay for Cody" is done. Staff-only items too, and staff can go over a stock count. The charge follows Bills to. Call it first without confirm: nothing is posted, and the answer says what would be; call again with confirm=true only after the person says yes. Owners and managers with Finance.

finance_adjust_entry

ChatGPT
Correct an entry without editing it: writes a reversing entry and a corrected one (new amount/memo/date; amount 0 removes it), both pointing at the original. Returns the original's id, the reversal and the corrected entry (null when removed). Owners and managers with the finance permission.

finance_apply_plan_price

ChatGPT
Give the chosen riders (or horses) on a plan its current price, from the next fee posted; fees already posted never move. Each rider stores their own price; this is the one way to move several to the plan's. enrollment_ids from finance_plan_price_preview (usually its paying_old). Call it first without confirm: nothing is saved and changes lists who goes from what to what; call again with confirm=true only after the person says yes. Finance.

finance_archive_product

ChatGPT
Take an item off the list. Past orders keep its name and price, and finance_save_product with restore=true brings it back. To hide it for a while, set active false instead. Owners and managers with Finance.

finance_balances

ChatGPT
Every customer's balance, biggest owing first: person_id, name, balance_cents. Owners and managers with the finance permission.

finance_billing_policy

ChatGPT
How this barn bills lessons: mode per_completed_lesson | per_scheduled_lesson | monthly | manual, the monthly amount, the default lesson price, and whether cancelling credits the family back (cancel_credit always | early_only | never, with cancel_credit_hours for early_only).

finance_bills_to_review

ChatGPT
Bills to, for staff to finish, writing nothing: people with no Bills to yet who have two or more parents or guardians, or one and money on their own account (unset, with the guardians to choose from; set one with barn_update_person bills_to_person_id, only once the person says who); people billing to someone archived since (archived_payer: choose who pays); and money still on the own account of someone who bills to another (balances, each with its move line, "Move Emma's $600 to Jane's account", for finance_move_balance). Counts and totals first. Owners and managers with the finance permission.

finance_board_check_dismiss

ChatGPT
Doesn't board here: the board check stops listing this horse while its owners stay the same (a new owner asks again). undo=true lists it again. Nothing is charged or changed. Finance.

finance_board_exclude_owner

ChatGPT
Add an owner whose horses aren't billed board (staff, family, a trainer boarding for work): the board check skips any horse they own, alone or with others. undo=true takes them off the list. Nothing is charged or changed. Finance.

finance_board_exclusions

ChatGPT
Owners whose horses aren't billed board: the board check skips any horse one of them owns. The barn's own business is on it by default (this_barn), removable. Read only. Finance.

finance_cancel_my_order

ChatGPT
Cancel your own order, until it's marked done. It takes the charge off your account and the barn is told. Call it first without confirm: nothing changes; call again with confirm=true only after the person says yes. Clients.

finance_cancel_order

ChatGPT
Cancel an order at any status: it reverses the charge (the original stays on the record, struck) and tells the family. Paid already, the money stays on the account as credit (credit_left_cents); sending it back is a separate refund. Call it first without confirm: nothing changes, and the answer says what would; call again with confirm=true only after the person says yes. Owners and managers with Orders.

finance_card_pays

ChatGPT
Which kinds of charge the barn's saved cards pay at the card run: any of lessons (lesson charges and plan fees), board, other. Event bookings collect themselves. Owners and managers with the finance permission.

finance_care_charge_settings

ChatGPT
Whether care charges post automatically (on the 1st, the month before). Owners and managers with Finance.

finance_care_charges

ChatGPT
Finance › Care charges for a month: by account, then horse and item, with how many, the price, the total and the dates; Needs a price and no-payer rows; what posting would post. Owners and managers with Finance.

finance_care_rule_matches

ChatGPT
Which horses' care plan lines a care rule would charge, each time they're ticked done, as of today: check before turning on Charge care plan lines when they're done, since a rule on Hay with no words charges every hay line. Lines that say Included in board, Not charged or another item, and lines an earlier item already covers, are left out. Owners and managers with Finance.

finance_change_order_amount

ChatGPT
Change the amount of an order that's already charged: this is the one way to change an order's money (finance_adjust_entry refuses an order's entries). The charge is corrected, the original stays on the record, the due date stays, and the family is told both amounts. Paid past the new amount, the difference stays on the account as credit (credit_left_cents); sending it back is a separate refund. To take it all off, finance_cancel_order. Call it first without confirm: nothing changes, and the answer says what would; call again with confirm=true only after the person says yes. Owners and managers with Orders.

finance_confirm_order

ChatGPT
Confirm what a family asked for. It adds the charge now, dated today, and tells the family. Call it first without confirm: nothing is posted and the answer says what would be; call again with confirm=true only after the person says yes. Owners and managers with Orders.

finance_decline_order

ChatGPT
Say no to what a family asked for. Nothing was charged, so nothing is undone; the family is told, with your note. Owners and managers with Orders.

finance_discount_looks_right

ChatGPT
Looks right: the plan check stops asking about this discount (on an account with fewer than two main plans) for that month. undo true asks again. Finance.

finance_disputes

ChatGPT
Chargebacks (Stripe disputes) on payments 1barn recorded, open ones unless include_closed. Each: person_id, name, amount_cents, payment_on, status (Stripe's), reason, evidence_due_by, open, outcome (won, lost, closed) and label ("Dispute open: respond in Stripe by Nov 12, 2026"). An open dispute's payment is reversed on the family's account; it's answered in Stripe, never here. Owners and managers with the finance permission.

finance_find_gift_certificate

ChatGPT
Find a gift certificate by its code, even one on an account. Five wrong tries an hour. Owners and managers with the finance permission.

finance_gift_balance

ChatGPT
What's left on a gift certificate from its code, and its date: never whose it is. Five wrong tries an hour.

finance_gift_certificate

ChatGPT
One gift certificate: what's left, what the barn owes on it, who it's for, what it's good for, and its whole history, including which charges it covered. Shows its last four, never the whole code. Owners and managers with the finance permission.

finance_gift_certificates

ChatGPT
Every gift certificate, newest first, with the totals: what the barn owes, how much of that is past its date, and open free value. Owners and managers with the finance permission.

finance_gift_chargeable

ChatGPT
What's owed that a gift certificate could be used on: each charge with what's unpaid, cannot_pay saying why if it can't, whether a pack would be outside its list or take a whole lesson for what's left. For the person to choose from; nothing is preselected. Owners and managers with the finance permission.

finance_gift_check

ChatGPT
Whether a gift certificate's code could pay this event, changing nothing. Refuses in the words a family reads, such as a pack that doesn't cover it. Five wrong tries an hour.

finance_gift_loss_handled

ChatGPT
After a lost chargeback, a canceled charge the certificate paid came back to nobody, and Needs you asks someone to handle it by hand. This says it's handled, and how, and the row goes. Moves no money. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_gift_offers

ChatGPT
What the barn offers as gift certificates, on sale or not: dollar values, lesson packs and specific things. Owners and managers with the finance permission.

finance_gift_report

ChatGPT
How much the barn owes in gift certificates as of a day: sold, used, refunded, moved to credit, voided, adjustments, what's owed and how much of that is past its date. Numbers for the accountant; 1barn declares no income from them. Owners and managers with the finance permission.

finance_gift_settings

ChatGPT
Whether the barn uses gift certificates (off unless turned on), its cap per purchase and its toll-free number. Owners and managers with the finance permission.

finance_gift_wallet

ChatGPT
Whether Apple and Google Wallet passes are available, and how this certificate's copies are doing: how many there are, phones signed up for updates, and any update still waiting. A pass is a copy; the certificate's book is the real balance. A family adds one from the live page, so there's no tool that makes one. Owners and managers with the finance permission.

finance_issue_credit

ChatGPT
Put a goodwill credit on a family's account, with a reason. It applies to their next booking or scheduled balance, and lowers what a customer billed automatically is charged on the 1st; nothing is refunded. Owners and managers with the finance permission.

finance_keep_gift_working

ChatGPT
A part refund in Stripe's dashboard froze a gift certificate sold online, and it should go on working: a $5 goodwill refund needn't end a $100 certificate. Moves no money, and the barn still owes what's left. Refused while a dispute is open, and once all it sold for was refunded (close that one with finance_refund_gift_certificate, how in_stripe). A later refund or dispute stops it again. Logged in activity. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_mark_order_done

ChatGPT
Mark a confirmed order done. It moves to the family's Past orders and they're told. Owners and managers with Orders; staff, when the barn's switch is on.

finance_mark_stripe_refund_seen

ChatGPT
Mark a refund made in Stripe as seen (its id from finance_stripe_refunds): its Needs you item goes. Changes no money. Owners and managers with the finance permission.

finance_move_balance

ChatGPT
Move what's on a person's own account to the account they bill to (owed money, or credit). Without confirm it writes nothing and says the move ("Move Emma's $600 to Jane's account"); tell the person that line and call again with confirm=true only after they say yes. Written as two entries, one on each account, naming the other. Owners and managers with the finance permission.

finance_my_care_so_far

ChatGPT
Care so far this month for the horses your accounts pay for: each item, how many and the total, before the barn posts it. Clients.

finance_my_gift_certificates

ChatGPT
The gift certificates on the client's own account or their family's: what's left (a pack says lessons, never dollars), what it's good for and what it has covered. They pay only when the client chooses.

finance_my_orders

ChatGPT
A client's own orders: what's open, or what's done and canceled, newest first. Clients.

finance_order_list

ChatGPT
What a client can order from their barn, whom for, and how the money would be collected, per kind. Their open orders too. Clients.

finance_orders

ChatGPT
What families and staff have ordered: what's waiting to be confirmed and what's to do. Order amounts, never balances. Owners and managers with the Orders permission; staff, when the barn's switch is on, read their to-dos with no prices.

finance_overview

ChatGPT
How the barn's business is doing, as Admin › Overview shows it: owed (total, accounts, how much over 30 days past due, the biggest accounts with owing_since and last_payment_on), in credit, coming in over the next 30 days (total, count, by week), needs_you (ranked: declined, card_failed, at_risk, overdue, aging = an account past its due date with overdue_days, payer_review = "Who paid for this booking?" with candidates for finance_resolve_payer; each with a name, an amount and what it's for), billing where the barn has it (the next monthly run, how many cards it would charge, failed saved cards), free stalls this month, and staff attendance over the last 30 days. Read-only. Owners and managers with the finance permission.

finance_pause_plan

ChatGPT
Pause someone's monthly plan (any kind) for whole months: no fee for the months from from_month up to until_month, whichever 1st it would post on (fees_for); this month's fee and auto-pay are never touched. The same plan and price carry on when it resumes. On a row already paused (or with a pause coming), this changes that pause. Call it first without confirm: nothing is saved and the answer says which fees don't post (no_fee), any already posted, and for a lessons plan the rider's lessons in those months (lessons: count, words, if_left, if_cancelled). Say it back, ask whether to cancel or leave the lessons, and call again with confirm=true only after the person says yes. Finance.

finance_pay_through

ChatGPT
The barn's Paying through 1barn table: for each kind of charge (lessons, board, lease, training, late_fee, other) whether families may pay it by card and by bank account through 1barn, and what families see ("Card or bank account", "Card only", "Bank account only", "Paid to <barn> directly"); bank_on (bank only counts when the barn takes bank payments through Stripe); families_autopay_off (whether families may turn auto-pay off); and the Paying line. Owners and managers with the finance permission.

finance_payer_reviews

ChatGPT
Bookings waiting for staff to say who paid: several people share the payer's email and none has the payer's name, so 1barn added a new person instead of guessing. Each has the event, the payer's name and email, and the candidates (person_id, name) to choose from with finance_resolve_payer. Owners and managers with the finance permission.

finance_payment_due

ChatGPT
When the barn's payments are due: rule after_days (days after a charge is posted; 0 is due when posted) or day_of_month (on the dayth, the next one on or after posting), how it reads ("Due 10 days after posting") and an example. Each charge carries its own due date from this rule when posted. Owners and managers with the finance permission.

finance_payment_options

ChatGPT
The barn's Paying through 1barn table: for each kind of charge (lessons, board, lease, training, late_fee, other) whether families may pay it by card and by bank account through 1barn, and what families see ("Card or bank account", "Card only", "Bank account only", "Paid to <barn> directly"); bank_on (bank only counts when the barn takes bank payments through Stripe); families_autopay_off (whether families may turn auto-pay off); and the Paying line. Owners and managers with the finance permission.

finance_payment_terms

ChatGPT
When the barn's payments are due: rule after_days (days after a charge is posted; 0 is due when posted) or day_of_month (on the dayth, the next one on or after posting), how it reads ("Due 10 days after posting") and an example. Each charge carries its own due date from this rule when posted. Owners and managers with the finance permission.

finance_place_order

ChatGPT
Order something from the barn onto your own account. No card: it's collected as any charge is. Call it first without confirm: nothing is placed, and the answer reads back what the app's sheet would say; call again with confirm=true only after the person says yes. Clients with their own account.

finance_plan_check

ChatGPT
Before posting a month's plan fees: lesson plans checked against the calendar. Each check says who, why in plain words (words, with dates and counts) and the fixes. kind: no_lessons (on a lesson plan with none of its lesson types on the calendar that month), mismatch (rides only a type the plan doesn't cover; suggest is the plan that does), keeps_missing (the last 3+ lessons in a row missed), weekly_no_plan (rides a type weekly, 3 of the last 6 weeks or a weekly time this session, with no plan covering it; suggest lists plans that do). unfilled_words says when a month isn't on the calendar yet and the month before was read. Fixes: pause or skip the month (finance_pause_plan, skip=true for a month under way), take off (finance_take_off_plan), change or put on a plan (finance_put_on_plan), finance_set_pays_per_lesson, finance_plan_check_looks_right. Nothing here blocks posting. Read only. Finance.

finance_plan_check_looks_right

ChatGPT
Looks right (or Not this month): that check for that student isn't asked again for this month; next month asks again. undo=true takes it back. Changes nothing else. Finance.

finance_plan_price_preview

ChatGPT
Who a new price for a plan would move, before saving: the next fee's day (next_fee_on), those on the plan's price (follow; their fee changes from it), those on their own price (own_price; they keep it). Nothing already posted moves; someone whose plan ends before that fee isn't counted. Finance.

finance_plans

ChatGPT
Finance › Monthly plans: every plan (id, kind lessons | board | lease | training, name, price_cents a month, includes, archived, riders on it today, monthly_cents), everyone on one (enrollments: id, kind, plan, person / horse, bills_to, price_cents and own_price_cents, starts_on, ends_on, state active | starting | ending | ended, next_fee {on, amount_cents}, autopay {state on | off | none, label}) and the summary (on_plans today, monthly_cents, starting, by_kind). state and plan_id narrow the enrollments ("active" includes those ending). Finance.

finance_post_care_charges

ChatGPT
Post a month's care charges: one charge per account, horse, item and price, dated the month's last day, on each family's statement. Needs a price, removed, skipped and no-payer rows don't post. Call it first without confirm: nothing posts, and the answer says how much to how many accounts; call again with confirm=true after the person says yes. Owners and managers with Finance.

finance_post_month

ChatGPT
Monthly policy: charge every student who had a lesson in month (YYYY-MM) the flat amount, once — posting again charges nobody twice. Owner only.

finance_preview_month

ChatGPT
What finance_post_month would post for month (YYYY-MM), without posting: each rider on a monthly plan it would charge (person_id, name, plan, amount_cents), how many riders are on plans and how many were already posted. Use it to tell the person who and how much before posting. Owner only.

finance_products

ChatGPT
The barn's list of Products and services: each item's price and unit, product or service, ordered for a horse or a person, kind of charge, whether families can order it, whether it's sold in person, whether the barn confirms first, and how many are left. Also the barn's ordering switches, and how each kind is collected (kind_lines). Owners and managers with Finance.

finance_put_on_plan

ChatGPT
Put someone on a monthly plan from starts_on (YYYY-MM-DD, today or later), at the plan's price or price_cents of their own. Who follows the plan's kind: person_id (a rider) for lessons; person_id and the leased horse_id for a lease; horse_id for board and training (billed to whoever the horse bills to). Also changes their plan of that kind from a day: the one covering it ends the day before; plans of other kinds stay. The first fee posts on the next 1st they're on it. Say who, which plan, the price and the day, and ask before confirming. Finance.

finance_record_entry

ChatGPT
Add a ledger entry by hand: kind charge|credit|payment|refund, amount always positive (the kind sets the direction). Payments and refunds need a method (cash|check|stripe|other); a credit needs a memo. Returns the entry. For a customer billed automatically, the balance is charged to their card on the 1st. Owners and managers with the finance permission.

finance_remove_plan_row

ChatGPT
Remove one row from Monthly plans (enrollment_id, from finance_plans) as if it never was: one put on by mistake, or on the wrong plan or day. Only while nothing has been posted for it (the row's removable); one with a fee is ended instead (finance_take_off_plan or finance_set_plan_end). Its pauses go with it. Ask before confirming. Finance.

finance_resolve_payer

ChatGPT
Answer "Who paid for this booking?": person_id one of its candidates (the booking's registrations and ledger entries move to them, and the person 1barn added is archived when nothing else is theirs), or none to keep the new person. Without confirm it writes nothing and answers the line ("Jane Rivera paid for this booking"); say it and call again with confirm=true only after they say yes. Owners and managers with the finance permission.

finance_resume_plan

ChatGPT
End a plan's pause: a pause that hasn't started is removed; one under way resumes next month (this month stays as it is). Fees post again from then; lessons cancelled for the pause stay cancelled. To change the months instead, use finance_pause_plan. Ask before confirming. Finance.

finance_sales_by_item

ChatGPT
Sales by item: month, item, product or service, kind, how many and how much, from orders and 1barn Pay's sales, with products and services apart for the bookkeeper. Owners and managers with Finance.

finance_save_gift_offer

ChatGPT
Add a gift certificate offer, or change or stop one. It changes only what's sold from now on: a certificate keeps what it was sold with. Refuses a sold dollar offer with a date under 5 years, or with a date and no toll-free number. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_save_plan

ChatGPT
Add a monthly plan (no plan_id: kind lessons | board | lease | training, name and price_cents a month) or change one (what's given; a plan keeps its kind). A lessons plan's riders are never charged per lesson; the other kinds post on the 1st as that charge. A new price applies from the next fee: without confirm the answer says who it moves (those on the plan's price) and who keeps their own; nothing already posted moves. Archiving stops new riders joining; those on it stay until moved. Say it back and ask before confirming. Finance.

finance_save_product

ChatGPT
Add an item to Products and services, or change one. A new item needs name, price_cents, applies_to and charge_kind: don't guess a barn's price. Changing a price moves no order already placed. Photos are added in the app. Owners and managers with Finance.

finance_send_gift_certificate

ChatGPT
Email a gift certificate, send it again, or put it on a date. The email leads with its live page and has the disclosures in full. Call it first without confirm: it says who would hear and when; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_set_billing_policy

ChatGPT
Set how lessons are billed. per_completed_lesson charges each student when a lesson is marked taught; per_scheduled_lesson when it goes on the calendar; monthly charges a flat amount per student per month via finance_post_month; manual posts nothing. cancel_credit says whether a cancelled lesson's charge is credited back: always (the default), early_only (a family's cancellation more than cancel_credit_hours before the start, default 24; later ones and no-shows keep the charge), or never. The barn's own cancellations always credit. Owner only.

finance_set_card_pays

ChatGPT
Choose which kinds of charge saved cards pay: a list of lessons, board, lease, training, late_fee, other (all of them is everything owed). Untaken kinds are paid some other way; payments and credits pay the oldest charges first, so what's left unpaid of each kind is what the run takes, never more than the family owes. Confirm the list with the user first. Owners and managers with the finance permission.

finance_set_care_charge

ChatGPT
In the month's care charges: remove a row, put it back, skip a Needs a price entry (it stays in the care log, never charged), or price one. Never a posted entry. Owners and managers with Finance.

finance_set_care_charge_settings

ChatGPT
Post care charges automatically, or not. Owners and managers with Finance.

finance_set_entry_due

ChatGPT
Change when one charge (or refund) is due, YYYY-MM-DD: a family given until the 20th. Overdue means past it. The amount and date are untouched. Owners and managers with the finance permission.

finance_set_gift_account

ChatGPT
Put a gift certificate on someone's account or take it off. Their balance doesn't change and nothing is used; on an account, its code stops working for anyone else. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_set_gift_expiry

ChatGPT
Change a gift certificate's date, or make it never expire. Extending is always allowed. Refuses a sold dollar date under five years from issue, or with no toll-free number on file; any date on a paid one warns to check state law. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_set_gift_settings

ChatGPT
Turn gift certificates on or off, or set the cap per purchase or the toll-free number. Off stops every action and loses nothing. Call it first without confirm: nothing changes; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

finance_set_order_settings

ChatGPT
The barn's ordering switches. Owners and managers with Finance.

finance_set_pay_through

ChatGPT
Replace the Paying through 1barn table: card and bank are each a list of the kinds that method pays (lessons, board, lease, training, late_fee, other); a kind in neither is paid to the barn directly and stays on the balance. families_autopay_off says whether families may turn their own auto-pay off. Ask before confirming. Owners and managers with the finance permission.

finance_set_payment_due

ChatGPT
Set when payments are due: rule after_days with days (0-90) or day_of_month with day (1-28). Only what's given changes. Charges posted from now on get their due date from it; ones already posted keep theirs (finance_set_entry_due changes one). The monthly card run's schedule doesn't change. Say the new rule back. Owners and managers with the finance permission.

finance_set_payment_options

ChatGPT
Replace the Paying through 1barn table: card and bank are each a list of the kinds that method pays (lessons, board, lease, training, late_fee, other); a kind in neither is paid to the barn directly and stays on the balance. families_autopay_off says whether families may turn their own auto-pay off. Ask before confirming. Owners and managers with the finance permission.

finance_set_payment_terms

ChatGPT
Set when payments are due: rule after_days with days (0-90) or day_of_month with day (1-28). Only what's given changes. Charges posted from now on get their due date from it; ones already posted keep theirs (finance_set_entry_due changes one). The monthly card run's schedule doesn't change. Say the new rule back. Owners and managers with the finance permission.

finance_set_pays_per_lesson

ChatGPT
Mark a student as paying per lesson on purpose ("Pays per lesson, don't ask again"): the plan check stops asking whether they should be on a plan, for any lesson type, until it's turned off. Charges are unchanged. Finance.

finance_set_plan_end

ChatGPT
Set the last day someone is on a plan (an enrollment id from finance_plans), or ends_on left out for open-ended. It can't end before it starts or run into their next plan of that kind. No fee posts for a 1st after it ends. Ask before confirming. Finance.

finance_set_plan_fees_for

ChatGPT
Finance › Monthly plans › Plan fees are for: what every plan fee posted on the 1st is for, lessons, board, lease and training alike. It changes which month the next fees are named for and charged as; nothing already posted changes. Call it first without confirm: nothing changes and the answer says before → after; call again with confirm=true only after the person says yes. Finance.

finance_set_plan_quantity

ChatGPT
Change how many of an add-on someone has (Extra Daily Hay × 2 to × 3), from a day like a plan change: the row ends the day before and a new one at the new quantity starts, so posted months and history stay as they were. A row not started yet is edited in place. Only an add-on has a quantity; the month's fee is the price times it. Say the add-on, who, the new quantity, the new monthly amount and the day, and ask before confirming. Finance.

finance_set_plan_starts

ChatGPT
Start plan rows that haven't started (enrollment_ids, from finance_plans or a lesson confirm preview's plan_gap.moves) on another day (starts_on, YYYY-MM-DD, today or later): the same plan, price and terms. For plans starting a few days after a session's first lesson. Nothing posted for them; never inside an earlier overlapping plan of theirs. All or none. Ask before confirming. Finance.

finance_statement

ChatGPT
One statement (statement_id from finance_statements) with its lines, oldest first: id (the ledger entry), occurred_on, kind, description, memo, amount_cents and signed_cents (positive adds to what's owed). The PDF is in the app, on the family's Billing page.

finance_statements

ChatGPT
A family's statements, newest first, one per invoice period (the family's own or the barn's, monthly or weekly): id, label ("November 2026", "Week of Nov 2"), period_start, period_end, period, issued_on (its first day), due_on, previous_cents, charges_cents (the period's charges), payments_cents (payments and credits since the statement before), balance_cents and unpaid_cents (what of the balance is still unpaid today). Finance staff, or a client for their own and their family's accounts.

finance_stripe_refunds

ChatGPT
Refunds made in the barn's Stripe dashboard that 1barn posted to the family's account by itself ("Refunded in Stripe, $X"), the ones finance hasn't seen unless include_seen. Each: id, person_id, name, amount_cents, payment_on, recorded_on, outcome (failed: put back as paid), seen. Owners and managers with the finance permission.

finance_take_off_plan

ChatGPT
Take a rider (person_id) or horse (horse_id, board and training) off their plan of kind from starts_on (YYYY-MM-DD, today or later); for lessons, back to per lesson. The plan ends the day before; one that would start later is dropped. Nothing already posted moves. Ask before confirming. Finance.

finance_terminal_sales

ChatGPT
A day's in-person card payments taken with 1barn Pay (the barn's card reader), newest first, with the day's count, total_cents and refunded_cents. day is YYYY-MM-DD, today at the barn by default. Each sale: kind (amount = a walk-up, account = a payment on someone's account, items = the barn's price list), status (succeeded or refunded), amount_cents, description, items, person_id, person_name, taken_by, card_brand, paid_at, refunded. Read only: payments are taken and refunded in the app. Owners and managers see everyone's; staff who take payments see their own.

finance_undo_care_charges

ChatGPT
Undo a post of a month's care charges made in the last 10 minutes by this login: the charges come off and the rows open again. Owners and managers with Finance.

finance_void_gift_certificate

ChatGPT
Void a gift certificate: it stops working right away and no money goes back, so what the barn owes on it drops to zero. Only right for a mistake or a chargeback; a refund returns money. Call it first without confirm; call again with confirm=true only after the person says yes. Owners and managers with the finance permission.

lessons_add_booking_stage

ChatGPT
Add Recent families or Waiting list to a session's booking stages, at its fixed offset from Returning families (Recent families +3 days, Waiting list +5, Everyone moving to +6 when on). Before the opening is scheduled only. Turn a stage off with lessons_update_session (self_booking.stages, on false). Call without confirm first and read back the dates it writes (words), then confirm=true after they say yes. Staff only.

lessons_add_break

ChatGPT
Add a break to a session (spec 63): weekly lessons skip it and pick up the week after; no make-up credits; plan prices don't change. Lessons of the session already inside it are set aside: cancelled with the reason Break and hidden (drafts and published alike), and their riders, families and Instructors told once ("No lessons Mar 15 – 21: Spring break"). Call with preview=true first, tell the person how many lessons it sets aside and who hears, then call with preview=false only after they say yes. A mistake is undone with lessons_update_break (shorten) or lessons_remove_break, which put exactly those lessons back. Booked-online lessons inside (booked_kept) stay: cancel them from their booking. Staff only.

lessons_add_makeup

ChatGPT
Add a make-up credit by hand for one student (one from outside 1barn, or owed for another reason): note is required (staff and the family see it), expires_on defaults to the barn's setting from today, lesson_type_id is optional (it prices a later conversion). Say whose and ask first. Finance.

lessons_add_rider_to_time

ChatGPT
Add a rider to a weekly time as Requested, at the time's price, with the same rules a family meets unless past_rules; the family is emailed its request. Call without confirm first and read back words and hears_words, then confirm=true after they say yes. Staff only.

lessons_add_riders_to_time

ChatGPT
Several riders on one weekly time, all or none. Too few spots is a stop (stop_words). A rider on another time in this session moves to this one. Level fit warns and never blocks (fit_words). Without hold, their lessons start and each family gets one email, which can't be called back. Without confirm nothing changes: the answer says what would happen to each rider; say that back and ask. Staff only.

lessons_add_student_to_time

ChatGPT
Add a student to a weekly time as Requested, at the time's price, with the same rules a family meets unless past_rules; the family is emailed its request. With hold, they're held instead and nobody hears. fit_words and level_note are heads-ups, never a refusal. Call without confirm first and read back words, heads-ups and hears_words, then confirm=true after they say yes. Staff only.

lessons_add_students_to_time

ChatGPT
Several students on one weekly time, all or none. Too few spots is a stop (stop_words). A student on another time in this session moves to this one. Level fit warns and never blocks (fit_words). Without hold, their lessons start and each family gets one email, which can't be called back. Without confirm nothing changes: the answer says what would happen to each student; say that back and ask. Staff only.

lessons_add_times

ChatGPT
Add weekly times to a session where families book their own time, as drafts (families see nothing until booking opens). The end is the start plus the type's length. One block: an Instructor who already teaches then is refused (refused [{index, reason}]); heads-ups (outside their lesson hours, not enough horses, the arena full) never block. A new time continues nothing unless continues_from_id says so. Call without confirm first: nothing is made; tell the person what would be added, what's refused and the heads-ups, then call with confirm=true only after they say yes. Staff only.

lessons_apply_drafted_times

ChatGPT
Add drafted times through Add weekly times' checks: drafts until you open to families, or open at once if the opening is scheduled. Nobody is told. Over 100 is refused. Call without confirm first and read back words and made, then confirm=true. Staff only.

lessons_apply_price_upcoming

ChatGPT
"Also update the upcoming lessons": scheduled lessons of the type not started (never booked online, never past) still at old_cents, and students set to that option, move to its new price; students a monthly plan covers aren't touched. A lesson already charged posts the difference. Without confirm, says how many. Staff.

lessons_apply_proposal

ChatGPT
Make a proposal real. A schedule proposal lays down one lesson and a weekly series per placement to the term's end and marks its requests scheduled; a horses proposal puts the horses on the lessons, skipping (with the reason) any horse injured or sick since. Once only — ask before applying, since it changes the calendar. Returns the proposal's id, status and what was applied. Staff only.

lessons_apply_rider_level

ChatGPT
After a rider's level changes: their lessons ahead copied from their level (private lessons) take the new one. Lessons don't follow by themselves; a hand edit stays. Call without confirm first and say how many, then confirm=true after they say yes. Staff only.

lessons_apply_student_level

ChatGPT
After a student's level changes: their lessons ahead copied from their level (private lessons) take the new one. Lessons don't follow by themselves; a hand edit stays. Call without confirm first and say how many, then confirm=true after they say yes. Staff only.

lessons_apply_times

ChatGPT
Make the picked proposals as this session's draft times, each continuing its old time (its riders are held there when booking is scheduled, if hold_riders). Refused ones come back with their index and why. Call without confirm first, tell the person, then confirm=true after they say yes. Staff only.

lessons_archive_level

ChatGPT
Archive a level, never delete: whatever has it keeps showing it, and new pickers don't offer it. Call without confirm first and say what uses it, then confirm=true after they say yes. Staff only.

lessons_availability

ChatGPT
When instructors can teach: blocks for a term plus standing ones, or just the standing ones with no term. Narrow to one person if asked. Each block: id, person_id, name, term_id, weekday, start_time, end_time, note, verification. Staff only.

lessons_barn_use

ChatGPT
An owner's horse used by the barn (spec 90): its arrangement (per_use with per_lesson_cents and per_event_day_cents, track_only, or none) and, by month, lessons (scheduled among them), event days, not counted, what was credited and what's still to suggest. With month: that month's breakdown, each lesson with its date, lesson type, student's first name (staff only: never repeat names to an owner) and whether it counts (present or unmarked; absent, no-show and cancelled don't), each event day, the amount and formula, and no_horse (lessons with no horse yet, not counted). For "what do we owe owners for November?" read finance_post_month's barn_use. Finance.

lessons_block_horse

ChatGPT
Block a horse's time: kind lease_day | training | show | vet | rest | other, from starts_on (YYYY-MM-DD) through ends_on, or weekly on weekdays (0 Monday .. 6 Sunday) until ends_on or open-ended; all day, or start_time and end_time (HH:MM). person_id is who has it (a lessee, a trainer); party_id is the lease it comes from (its lease_days are the weekdays; one block per lease). It never stops anyone: the horse solver and pickers leave the horse out, and a lesson it's put on anyway carries a warning. Staff.

lessons_book_makeup

ChatGPT
Book a rider's make-up into one of lessons_makeup_times' times: it uses 1 make-up credit, no charge, and the family gets the booking email. A time with needs_approval waits for the barn's approval (status pending_approval, the credit held; declined or lapsed, it comes back). Say the rider, the day and time and the lesson, that it uses the credit (and waits for approval when it will), and ask first. The rider's family.

lessons_cancel_makeup

ChatGPT
Cancel a booked make-up while it's still inside the change window or waiting for approval (booking.can_cancel in lessons_my_makeups): the lesson is canceled and the credit is open again with its own expiry. Later it can't be canceled here (message the barn) and the credit stays used. Say which make-up and ask first. The rider's family.

lessons_cancel_opening

ChatGPT
Cancel a scheduled opening, only before any stage opens: unsent emails are skipped, kept spots stay Requested, unanswered holds stay held with no deadline until it's scheduled again. Call without confirm first and read back words, then confirm=true after they say yes. Staff only.

lessons_cancel_time

ChatGPT
Cancel a weekly time: it leaves the board, and the old time it continued can continue in another. Held riders lose the hold; Requested ones are freed (a paid deposit stays on their account as credit) and their families emailed; once confirmed, its lessons still to come are canceled as Barn and plans end. Call without confirm first and read back cancels_words (who and the money) and hears_words, then confirm=true after they say yes. Staff only.

lessons_change_booking_dates

ChatGPT
Change a scheduled opening's dates: a date that hasn't arrived can move; later always, earlier only when nobody was told it; a step that started can't move. Whoever heard an old date gets one new-date email; unsent emails and held families' deadline move with the dates. Call without confirm first and read back moves_words and hears_words, then confirm=true after they say yes. Staff only.

lessons_change_my_time

ChatGPT
Change your rider's Requested weekly time to another open one while booking is open (still Requested; the new time's price applies). A confirmed time is changed by the barn: the answer then says to ask the barn. Call without confirm first and read back from_words, to_words and price_words, then confirm=true after they say yes.

lessons_close_booking

ChatGPT
Close booking for a session once a stage has opened: no new requests or changes; what families picked stays. Call without confirm first and read back words, then confirm=true after they say yes. Staff only.

lessons_confirm_availability

ChatGPT
Mark rolled-over availability as checked: one instructor's blocks for a term (person_id + term_id), or specific blocks (block_ids). Re-entering a week with lessons_set_availability also confirms it. A request is confirmed by editing it, or with lessons_update_request(verification="confirmed"). Returns the blocks, as lessons_availability shows them. Staff only.

lessons_confirm_enrollments

ChatGPT
Confirm enrollments in a session that families book themselves: every Requested spot (or only time_ids') becomes Confirmed, each weekly time gets its lessons at its first confirmed spot (breaks skipped, published at once), monthly plan riders start their plan from their first lesson, and each family is emailed once. Held spots still unanswered are never confirmed; new requests later wait for another confirmation. Call without confirm first and read back the spots (now_words), the lessons it makes (lessons_from, lessons_to), the plans it starts (plans_words) and the families it emails, then confirm=true after they say yes. Staff only.

lessons_cover_away_lessons

ChatGPT
An Instructor's lessons that fall on the dates they said they can't teach in a session (lessons_teaching's away), typically right after lessons_apply_proposal or lessons_confirm_enrollments made them (their answers list away_people). Without resolutions, the answer lists each lesson with its choices (keep, the default: it stays with them; give:<person_id>: asks that colleague to cover it; ask_family; cancel or ask_manager); put them to the person, then call again with resolutions {lesson_id: choice} ("*": "default" keeps them all). Staff only.

lessons_create

ChatGPT
Put a lesson on the calendar (ISO datetimes; kind individual|group). space_id is the arena (a space of kind arena, from barn_get_facility_map); location is free text for barns without arenas; notes are Markdown (plain text is fine). Returns the lesson (as lessons_list shows it to staff) with conflicts [{kind, name, lesson_id}]: double-booked horses or instructors and a full arena are reported, not refused; and warnings, sentences naming an instructor it falls outside the availability of ("Maggie isn't available Tuesdays after 3 PM"), also not refused; and horse_warnings, an injured or sick horse put on it ("Rosie is injured since Oct 9"), allowed but said. Staff only.

lessons_create_lesson_type

ChatGPT
Add a lesson type ("Lead Line, 45 minutes, ages 3 to 8, led by Ella or Kayla on Biscuit or Pepper"). teacher_title: instructor or leader; workload_weight: 1, or 0.5 for light work; max_riders: "Up to N riders" (1 to 20; none is one rider; above 1 the calendar shows its lessons' seats, "2 of 3"). lesson_price_cents: what one lesson costs a rider paying per lesson (a lesson of this type starts at it). Teachers must be marked Teaches or leads lessons. bookable=true also makes its bookable event (a draft families can't see until it's published, with no slots yet). Staff only.

lessons_create_request

ChatGPT
File what a family asked for, for a term: the student, discipline, individual|group, length, lessons per week, preferred instructors (first choice first), and options — the windows they can make, ranked: [{weekday: 0=Monday…6, start_time: "HH:MM", end_time: "HH:MM"}]. Returns the request as lessons_requests shows it. Staff only; families ask staff for now.

lessons_create_session

ChatGPT
Open a session (dates YYYY-MM-DD). It starts in planning; publish it with lessons_update_session once the schedule is set. Returns the session as lessons_sessions shows it. Staff only.

lessons_create_term

ChatGPT
Open a term (dates YYYY-MM-DD). It starts in planning; publish it with lessons_update_term once the schedule is set. Returns the term as lessons_terms shows it. Staff only.

lessons_create_type

ChatGPT
Add a lesson type ("Lead Line, 45 minutes, ages 3 to 8, led by Ella or Kayla on Biscuit or Pepper"). teacher_title: instructor or leader; workload_weight: 1, or 0.5 for light work; max_riders: "Up to N riders" (1 to 20; none is one rider; above 1 the calendar shows its lessons' seats, "2 of 3"). lesson_price_cents: what one lesson costs a rider paying per lesson (a lesson of this type starts at it). Teachers must be marked Teaches or leads lessons. bookable=true also makes its bookable event (a draft families can't see until it's published, with no slots yet). Staff only.

lessons_delete_horse_block

ChatGPT
Take a horse block off entirely, past days and all: for a block made by mistake. To stop a real one, set its ends_on instead (lessons_update_horse_block). Ask before confirming. Staff.

lessons_discard_change

ChatGPT
Throw away one lesson's unpublished change: a published lesson goes back to what families see; a lesson never published is deleted as a draft. Nobody is notified. Nothing waiting on it is refused (lessons_get draft says). Several lessons at once is core_discard_schedule_changes. Staff.

lessons_discard_proposal

ChatGPT
Set a draft proposal aside without applying it; the sheet is unchanged and a fresh solve can be run any time. Returns its id and status. Staff only.

lessons_draft_times

ChatGPT
Draft weekly times from Teaching answers, one lesson type a run (run again for another, Group first). Each ticked Instructor in turn, on their day with the fewest lessons, at the latest start inside their hours and the room, up to their lessons a week. Existing times are never touched. Saves nothing: returns times (each with reasons and warnings), left, left_out_days, summary_words and hash for lessons_apply_drafted_times. Staff only.

lessons_draft_times_form

ChatGPT
Before lessons_draft_times: each Instructor's Teaching answer in a line, whether they start ticked and can be ticked, and whether they lead this lesson type. Reads only. Staff only.

lessons_eligible_horses

ChatGPT
Which horses could take a lesson — in the program, not injured or sick, doing that discipline, suited to that rider level, not resting that weekday, under their daily limit, and free at that time — and why each of the others couldn't (reason, e.g. "injured since Oct 9"). Health is as of now, for any date asked: an injured or sick horse is out for that whole week. A rehabbing horse is offered with a note. Each horse carries health_status. Staff only.

lessons_extend_makeup

ChatGPT
Keep an open or lapsed make-up credit open until a new date (who and when are recorded; the family's reminder goes again before it). Say the new date and ask first. Owners, Finance and managers.

lessons_get

ChatGPT
One lesson: times, arena, instructors, horses, students, status — the same shape as lessons_list, rider_notes on each student for staff and instructors only.

lessons_give_up_time

ChatGPT
Give up your rider's Requested weekly time: the spot goes to other families, and a deposit paid for it is kept (it's non-refundable). Call without confirm first and read back words, then confirm=true after they say yes.

lessons_hold_returning

ChatGPT
Hold their spots now: for each weekly time that continues one, a quiet hold for each of the old time's confirmed riders not already there. Nobody is told. Pressing twice writes nothing more. Call without confirm first and read back words, then confirm=true. Staff only.

lessons_holiday_credits

ChatGPT
A term's closed days (the staffing holiday list and days added to the term), each with the plan riders whose lesson falls on it and whether they have a credit for it; with on (YYYY-MM-DD), that one day. Staff.

lessons_horse_availability

ChatGPT
How a horse's days between two dates split by lesson status — how much it was actually available to the program: total_days, days by status, in_program_share, and health_days by health status. Also whether it is offered for lessons now: available_now, with the reason it isn't ("injured since Oct 9", "resting") and a note for a rehabbing horse that still is. An injured or sick horse is out for the whole week being scheduled. Staff only.

lessons_horse_blocks

ChatGPT
When horses are taken: blocks (a lease day, training, a show, the vet or farrier, a rest) touching start..end (YYYY-MM-DD; today and the next 60 days by default), for one horse or all. Each has its kind, person, all day or hours, weekdays (0 Monday) for a weekly one, party_id when it's a lease's, words ("Lease day · Sarah Kim") and the days it takes. Staff.

lessons_horse_history

ChatGPT
Every stretch of a horse's lesson status, newest first: status, effective_from, effective_to, note. Staff only.

lessons_issue_holiday_credits

ChatGPT
Close a day of the term: its lessons are canceled as Barn · Other with the holiday's name (families are told), and each plan rider in person_ids gets a make-up credit. Running it again skips riders who already have one. Read lessons_holiday_credits first, say how many lessons and credits, and ask. Staff.

lessons_keep_billing_monthly

ChatGPT
A student in lessons_plans_no_time (on a lessons plan with no time in this session): Keep billing monthly, for someone who pays the plan without a weekly time (the plan and its fee are unchanged; they're not listed again this session; someone who'll book single lessons this session instead of a weekly time is a finance_pause_plan instead: charged per lesson while paused, the plan resumes at the same price), or with waiting mark them Waiting to hear (the family was asked; still listed). Staff.

lessons_keep_holds

ChatGPT
Keep these booked: the held spots of the families named become Requested, and each family is emailed "We kept Lily booked for the Winter session". Explicit family ids only. Call without confirm first and read back the families, then confirm=true after they say yes. Staff only.

lessons_keep_time

ChatGPT
A family answers its rider's held weekly time during the Keep your time step: keep makes the spot the rider's at once as Requested (the barn confirms enrollments before the session starts); not_riding lets it go to other families. Their own riders only. Call without confirm first and read back words, then confirm=true after they say yes.

lessons_lesson_types

ChatGPT
The barn's lesson types (Lead Line, Private lesson): length in minutes, kind, discipline, levels and ages it suits, whether its teacher is an instructor or a leader, workload_weight (0.5 counts as half a lesson toward a horse's daily limit), max_riders ("Up to N riders"; null is one rider), who can teach or lead it, its horses (empty: any in the program that fit) and arenas, and the bookable event that lets families book it (bookable, or null). Staff only.

lessons_levels

ChatGPT
The barn's rider levels in ladder order, each with its code, description for families and the disciplines it's tied to (none: any). Staff also get what uses each (weekly times, riders, horses), the archived ones and how many have no description. Any tool takes a level by its code.

lessons_list

ChatGPT
Lessons overlapping a window (ISO datetimes), optionally narrowed to a horse, instructor or student. A client sees only their family's. Each lesson: id, title, kind, status, times, arena (space_id, space) or location, series_id, and instructors, horses and students by id and name; notes (Markdown), price_cents and horse_warnings for staff (sentences such as "Rosie is injured since Oct 9" for an injured or sick horse on a scheduled lesson this week or later; nothing is reassigned). Staff and instructors also get each student's rider_notes (Markdown: goals, nerves, a horse they love); customers, vendors and families never do. A client sees riders outside their family by name only.

lessons_list_types

ChatGPT
The barn's lesson types (Lead Line, Private lesson): length in minutes, kind, discipline, levels and ages it suits, whether its Instructor is called an instructor or a leader (teacher_title), workload_weight (0.5 counts as half a lesson toward a horse's daily limit), max_riders ("Up to N riders"; null is one rider), who can teach or lead it, its horses (empty: any in the program that fit) and arenas, and the bookable event that lets families book it (bookable, or null). Staff only.

lessons_makeup_settings

ChatGPT
The barn's make-up credit setting: whether plan riders get them, how many months one lasts, how many days before it lapses the family is emailed, the default per cancel (instructor, weather: none / every / after_first in a term, horse, facility, other), the weather policy for lessons outside a term (none / every / after_first_in_month) and whether absences with notice give one. Staff.

lessons_makeup_times

ChatGPT
The flex times an open make-up credit can book, one week at a time (Monday to Sunday, the week holding week YYYY-MM-DD; this week when left out), up to the credit's expiry: every lesson time the barn offers that rider, private or group, with room. Each has event_id, starts_at and slot_id for lessons_book_makeup. next_week / prev_week step the week. The rider's family.

lessons_makeups

ChatGPT
Make-up credits (one make-up lesson for one rider, from a lesson the barn or an Instructor canceled, a holiday, or added by hand). With nothing else, the barn's list with counts per status. With rider_id, one rider's; with lesson_id, one lesson's (and with reason, the preview before canceling it: riders who pay per lesson aren't charged instead). Staff, except a family reading its own rider.

lessons_move_rider

ChatGPT
Move a rider to another weekly time of the session: a Requested spot moves whole; a confirmed one from from_on (earlier lessons stay). The family is emailed. Call without confirm first and read back moves_words and email_preview, then confirm=true after they say yes. Staff only.

lessons_move_student

ChatGPT
Move a student to another weekly time of the session: a Requested spot moves whole; a confirmed one from from_on (earlier lessons stay). The family is emailed. Call without confirm first and read back moves_words and email_preview, then confirm=true after they say yes. Staff only.

lessons_my_makeups

ChatGPT
The signed-in family's make-up credits, per rider they can see: open ones to book (book by expires_on), make-ups booked and still to come (booking.can_cancel: canceling now gets the credit back; booking.waiting: it waits for the barn's approval, the credit held), and the history (used, lapsed, converted, voided). Each credit is that rider's only. Families; the barn's staff use lessons_makeups.

lessons_my_weekly_times

ChatGPT
Your family's weekly times in sessions: each rider's time, whether it's Requested or Confirmed, the next lesson once confirmed, and what you can do (change, add, give_up while booking is open; ask_the_barn once confirmed, with ask_words to send in Messages).

lessons_offer_single_lessons

ChatGPT
Offer as single lessons: an unfilled one-rider weekly time (no held, requested or confirmed rider) becomes one bookable lesson per remaining date, breaks and closed days skipped, that families book one date at a time through lesson booking; it leaves the weekly times. Only after the session's booking has opened. Call without confirm first and read back dates_words, skipped_words and heads_ups (the dates it makes), then confirm=true after they say yes. Owners and managers with the calendar permission.

lessons_offer_weekly_time

ChatGPT
Offer as a weekly time again: a time offered as single lessons goes back to the open weekly times and its single dates come off lesson booking. Refused once any of its single dates is booked (booked dates stay as they are). Call without confirm first, read back words, then confirm=true after they say yes. Owners and managers with the calendar permission.

lessons_open_times_for_session

ChatGPT
A session's open weekly times for your family: each with its words ("4:00 PM · 1 hr · Private lesson · with Ella · 1 spot left"), price and whether your rider can request it (can_request, why_not); instructors lists who teaches the times shown (absent when the barn hides names); full times only with include_full; picks_words says when you can pick if not yet. Your own riders only.

lessons_out_of_policy

ChatGPT
The month's exceptions: every rider whose lesson charge was set against the policy (charged, or not), with who set it and when, newest first. month is YYYY-MM, this month if left out. Finance.

lessons_overview

ChatGPT
The Lessons daily home: lessons today with each rider and horse and one status (status_words), needs (what needs someone; bell says it's also on the bell), sessions (the running and next session with the strip's steps and words). Times are in the barn's zone once you read timezone. Staff only; an Instructor who isn't a manager sees their own by default.

lessons_pay_deposit

ChatGPT
The checkout link to pay your family's deposits still owed in a session (a held time the barn kept for you when you didn't answer). The card payment happens in the app: give them checkout_url and words. Moves no money by itself.

lessons_plans

ChatGPT
The barn's monthly plans: id, name, price_cents a month, includes (words for families; it never adds or removes charges), archived, and riders on it today. Every rider pays per lesson unless they're on a plan. Staff.

lessons_plans_no_time

ChatGPT
Students on a monthly lessons plan running into this session with no weekly time in it (their plan fee would post with no lessons), each with their plans, last lesson and whether they're Waiting to hear; and the lessons plans offered with what each covers. The ways on: finance_pause_plan, finance_take_off_plan, lessons_add_student_to_time (hold), msg_message_people then lessons_keep_billing_monthly with waiting, or lessons_keep_billing_monthly. Staff.

lessons_program_settings

ChatGPT
Settings › Program: the barn's default daily lesson limit for horses (horse_daily_limit; null is none). A horse's own limit wins. Staff only.

lessons_proposals

ChatGPT
A term's proposals, newest first (id, kind, status, stats, created_at), or one proposal in full by id, shaped as the solve tools return it. Staff only.

lessons_publish

ChatGPT
Publish one lesson's unpublished change on its own (lessons that wait until published): families and instructors see it and hear, its instructor's shift from lessons publishes with it, and every other unpublished change stays waiting. A new lesson goes on the calendar. Call first without confirm: nothing is published, and the answer says what changed (lines), who hears (notifies, sentence) and the series change it's part of; tell the person, then call with confirm=true only after they say yes. A change that no longer fits isn't published: reason says why and it stays waiting (fix it with lessons_update, or throw it away with lessons_discard_change). Every change at once is core_publish_schedule. Staff.

lessons_release_spot

ChatGPT
Remove a rider from a weekly time. By the rule, the barn's own doing: a paid deposit stays on the family's account as credit; a confirmed rider comes off the lessons still to come (charges for them credited back, their plan ends). The family is emailed. Call without confirm first and read back words (any credit), then confirm=true after they say yes. Staff only.

lessons_remind_holds

ChatGPT
Email the families named their held times again now, each with the one-tap Keep. The automatic reminders don't change. Call without confirm first and name the families and when each was last emailed, then confirm=true after they say yes. Staff only.

lessons_remove_break

ChatGPT
Remove a break: every lesson it set aside comes back as it was (same riders, horses and Instructors, charged as any un-cancel is) and their people hear once. Call with preview=true first (put_back count and who hears), tell the person, then preview=false after they say yes. To put it back again, lessons_add_break with the same dates. Staff only.

lessons_reorder_levels

ChatGPT
The ladder's order, which every list and "E1-E2" follow. Staff only.

lessons_report_absence

ChatGPT
A family tells the barn their rider can't come to a lesson that's still to come: marked away now, with their note (what they'd like the barn to know), so it's with notice or late notice by the barn's deadline, and the instructor and managers hear. Their own riders only. Before confirming, say which lesson and rider, whether it's in time (and so whether it's charged, by the barn's policy), and ask.

lessons_request_time

ChatGPT
Request a weekly time for your riders (also Add another time): the spot is theirs at once as Requested and the barn confirms enrollments before the session starts. With a deposit the answer is checkout_url: paying happens in the app, within 15 minutes. Call without confirm first and read back the price (price_words), what's due now and next_words, then confirm=true after they say yes. The answer's waivers name each rider whose riding waiver was emailed to sign (after booking, never holding anything up); with a deposit, waivers_after_payment names whose waiver is emailed once it's paid.

lessons_requests

ChatGPT
What families asked for, oldest first (status: open | scheduled | waitlisted | declined). The waiting list is status=waitlisted. Each request: student, who asked, discipline, kind, length, per week, preferred instructors, ranked options, notes, status, series_id, decline_reason and verification. Staff only.

lessons_rider_plan

ChatGPT
How a rider pays: pays "plan" or "per_lesson", their current plan (plan, price_cents, own_price_cents, starts_on, ends_on), any upcoming one, and their history. Staff.

lessons_riders

ChatGPT
The roster: everyone riding (a lesson in the past year or coming up, a level, a live spot in a session not over, or a lessons plan today), a row each with level, weekly times and Instructor, plan name, last lesson, make-ups, and their status in the picked session. No prices. counts has each view's total. Staff only.

lessons_rollover_session

ChatGPT
Seed a session from the last one: copy its instructor availability blocks and the families' requests (open, scheduled and waitlisted; not declined) into session_id. Everything copied is verification: pending until a person confirms it — the sheet counts what is still pending. Running it again copies nothing twice. Nobody who has left is copied: instructors archived, no longer instructors, or whose employment ended by the new session's start, and riders archived. Returns the two session ids, how many blocks and requests were copied, and skipped ({kind: availability or request, person_id, name, reason, count}): say who was left out and why. Staff only.

lessons_rollover_term

ChatGPT
Seed a term from the last one: copy its instructor availability blocks and the families' requests (open, scheduled and waitlisted; not declined) into term_id. Everything copied is verification: pending until a person confirms it — the sheet counts what is still pending. Running it again copies nothing twice. Returns the two term ids and how many blocks and requests were copied. Staff only.

lessons_save_level

ChatGPT
Add a level or change one; only what's given changes. A rename follows everywhere. Tying it to exactly one discipline moves riders who hold it under Any discipline to that discipline. Call without confirm first and say what moves, then confirm=true after they say yes. Staff only.

lessons_save_plan

ChatGPT
Add a monthly plan (no plan_id: name and price_cents a month) or change one (what's given). A new price applies from the next fee; nothing already posted moves. Archiving takes it off the list to pick from; riders on it stay until moved. Say the plan back and ask before confirming. Finance.

lessons_schedule_booking

ChatGPT
Schedule a session's opening (Open now when Returning families' date has passed): families see the times, held riders' spots are held in the times that continue theirs, and every email is put on the record to go at its date (the hold ask first, reminders, each stage's opening). Call without confirm first and read back lead_words, each group with its count and date (groups), the reminders and the heads-up; confirm=true only after they say yes. Staff only.

lessons_send_break_reminder

ChatGPT
Email a break's reminder now to each family with a rider on a monthly plan who has lessons in the session ("No lessons Mar 15 – 21: Spring break": their riders, that the plan goes on as usual, when lessons start again). It goes by itself on its reminder day; this is Send now, for a break added or moved after that day. Once per break: emails can't be called back. Call with preview=true (the default) first, tell the person the count, then preview=false only after they say yes. Staff only.

lessons_session_breaks

ChatGPT
A session's breaks (spec 63): date ranges weekly lessons skip (Spring break), each with its id, dates, the lessons it set aside (cancelled as Break and hidden from every calendar, never charged, credited or paid), the holidays inside it, and its reminder to families on monthly plans (reminder.words: "Reminder Mar 8 · 34 families" or "Reminder sent Mar 8 to 34 families"). Staff only.

lessons_session_prices

ChatGPT
How riders pay in a session, one row per lesson type in it: mode per_lesson ("$70.00 a lesson", charged as each lesson happens) or monthly_plan (a lessons plan, "Weekly private, $280.00 a month", from the rider's first lesson to the session's last day), how many riders hold a spot, and plan_choices (the plans that cover the type). Staff only.

lessons_session_progress

ChatGPT
Where a session stands: Teaching answers, Weekly times, Holds, Confirm or open, Session runs, each with its state and words, and the next step in a line. Reads only. Staff only.

lessons_session_sheet

ChatGPT
The planning sheet for a session: every request by status (open, scheduled, waitlisted, declined) with its ranked windows, and each instructor's availability blocks, with counts per status and how much rolled-over input is still pending. Read this before building or changing a session's schedule. Staff only.

lessons_session_times

ChatGPT
A session's weekly times board (spec 67): the session (its booking_mode and booking rules), chips with counts (All, Requested, Confirmed, Held while any, Open; they add up to All), returning (the Returning riders row, only while held times are out or Returning families is the stage open: Kept, Not riding, Haven't answered, or Kept, Changed their time, Not riding, Released; null otherwise), opening (phase, header_words, steps, menu, date_steps, waiting_list count), and each time with its day and start, lesson type, Instructor, arena, spots and counts, status (draft until booking opens), what it continues (continues.words "Continues Tue 4:00 PM with Ella (Oct 5 to Nov 1)", the riders held there), heads-ups (warnings), roster, and matches (whether it fits show). Staff only.

lessons_session_waiting_list

ChatGPT
A session's waiting list (the barn's waitlisted requests and the session's own), in join order, 50 a page: each family with what they asked for (asked_for_words), experience and status (waiting, or also_returning: in a returning rider's household, who picks with Returning families). Staff only.

lessons_sessions

ChatGPT
The barn's sessions, newest first: the stretches of weeks each with one weekly schedule: id, name, starts_on, ends_on, status, notes. Staff only.

lessons_set_attendance

ChatGPT
Mark riders at a lesson that goes ahead (spec 47). riders is a list of {person_id, attendance, told_at?, note?}: attendance present, late, absent or no_show (null clears it). An absence requires told_at: when the family told the barn (ISO with time zone). It makes it "notice" (more than the deadline ahead) or "late", which decides the charge; ask the person when the family told them, never guess or use now (refused without it). The barn's policy then says whether each rider is charged, and a charge that shouldn't stand is credited back at once (paid, it's account credit). Each rider answers attendance, notice, charged, out_of_policy and money (credited, charged or unchanged). A mark can credit a charge back or keep it, so call it first without confirm: nothing changes; call again with confirm=true only after the person says yes. Staff.

lessons_set_availability

ChatGPT
Replace an instructor's availability for a term (or their standing availability when no term is given) with blocks: a list of {weekday: 0=Monday…6=Sunday, start_time: "HH:MM", end_time: "HH:MM", note?}. Wholesale — send the whole week. Returns the blocks saved, as lessons_availability shows them. Staff only.

lessons_set_barn_use

ChatGPT
How an owner is credited when the barn uses their horse: per_use (a set amount per lesson ridden, and optionally per event day the horse is in use), track_only (use shown, no credit suggested) or none. The credit goes to the horse's billing party, suggested on the Post sheet and never posted without a tick. Finance.

lessons_set_closed_days

ChatGPT
Save a session's closed days. Every lesson maker skips a closed day, as it skips a break. Adding a day handles lessons already made the way a break does: the session's lessons on it are set aside (canceled and off the calendar, never charged) and their riders, families and Instructors told once ("No lessons Dec 10: Arena resurfacing"); the day's credits choice decides make-up credits for riders on monthly plans. Booked-online lessons on it (booked_kept) stay: cancel them from their booking. Removing a day puts exactly those lessons back and voids its open credits. Changing a day's name or choice touches no lesson, and switching credits off voids its open ones. Call with preview=true first, say how many lessons it sets aside, who hears and what credit_words says, then call with preview=false only after they say yes. Staff only.

lessons_set_disciplines

ChatGPT
Replace the barn's disciplines, each a name plus a short code ("E"). Levels are lessons_save_level. Staff only.

lessons_set_horse_program

ChatGPT
The program's view of a horse: lesson_status (in_program|resting|not_in_program|retired — changes are kept as history from effective_from, default today), the disciplines it teaches, the rider levels it suits, max lessons per day, and rest weekdays (0=Monday…6=Sunday). Only fields given change. Returns those program fields with the horse's id and display_name. Staff only.

lessons_set_makeup_settings

ChatGPT
Change the make-up credit setting (keys left out stay; see lessons_makeup_settings). It decides what families get back when the barn cancels, so say what changes and ask first. Owner or Finance.

lessons_set_makeups

ChatGPT
Give or take back plan riders' make-up credits on a canceled lesson: riders is [{person_id, credit: true | false | null}] (null follows the default). Yes issues one now, No voids an open one; a used one can't be taken back. Say whose and ask first. Staff.

lessons_set_placement_type

ChatGPT
Pick the lesson type for one placement of a draft timetable (placement is its index in result.placements) whose requests name no one lesson type (needs_lesson_type or lesson_type_source "picked"); the lesson it makes takes that type and its price. No lesson_type_id clears the pick. Types come from lessons_lesson_types. A placement whose requests agree on a type keeps theirs. Say which type and price you'll pick and ask before setting it. Returns the proposal in full, with apply_blocked (why Apply is still refused, or null). Staff only.

lessons_set_program_settings

ChatGPT
Set the barn's default daily lesson limit for horses (0 or null clears it). Past a limit is a warning, never a block. Owners, and managers with the settings permission.

lessons_set_proposal_horse

ChatGPT
Change one rider's horse inside a draft horse proposal, before Apply, or leave them out of it. Any horse can be picked by hand, whatever its fit; lessons_eligible_horses says why one might not suit. The calendar doesn't change and nobody is told. Returns the proposal in full. Staff only.

lessons_set_rider

ChatGPT
A rider's level and disciplines, for pairing with horses. An empty level clears it. notes are the rider notes (goals, nerves, a horse they love), in Markdown, read by staff and instructors only (never by the rider's family). Returns the rider's id, name, level, disciplines and rider notes. Staff only.

lessons_set_rider_charge

ChatGPT
Charge one rider for a lesson, or not, against the barn's policy: the rider is then marked Out of policy, with who and when, and shows on the month's exceptions (lessons_out_of_policy). charged null goes back to the policy. Not charging a paid lesson leaves the family account credit. Before confirming, tell the person whose charge it is and what changes, and ask. Finance.

lessons_set_rider_horse

ChatGPT
Give one rider on a lesson their horse, or none. A lesson has its horses (the pool, lessons_update horse_ids) and each rider one of them; riders may share a horse. A horse that isn't on the lesson yet is added to it for you (horse_added true): not an error. A person not on the lesson is refused: add them with lessons_update riders first. A horse from another barn is refused. In a barn that drafts, a published lesson's change waits for core_publish_schedule. Families aren't told. Returns the lesson with each student's horse. Staff only.

lessons_set_rider_plan

ChatGPT
Put a rider on a monthly plan from starts_on (YYYY-MM-DD), at the plan's price or price_cents of their own, or back to per lesson (plan_id left out) from that day. Whatever covered that day ends the day before. Their family's charges follow from then: plan fees post on the 1st and their lessons aren't charged one by one. Nothing already posted moves. Say who, which plan, the price and the day, and ask before confirming. Finance.

lessons_set_session_price

ChatGPT
Set how riders of one lesson type pay in the session: Per lesson, or a Monthly plan (a lessons plan that covers the type and isn't archived). Refused with the check that fails. It applies to new requests: riders who already requested keep theirs. Call without confirm first, read back the mode, plan and keeps_words, then confirm=true after they say yes. Staff only.

lessons_set_spot_discipline

ChatGPT
On an open private (one spot, no level) for a rider with several disciplines: which they ride here, for when its lessons are made at Confirm these. Staff only.

lessons_set_status

ChatGPT
Mark a lesson completed (taught), cancelled, or scheduled again. Cancelling one occurrence of a series is the normal way to skip a week; it stays on the calendar struck through. cancel_reason says why: family (the default), no_show, or barn (weather, a horse, an instructor). The barn's policies then decide whether the families are credited back (the barn's own cancellations always are) and whether the instructors are still paid; the lesson answers charge_kept and instructor_paid. Returns the lesson with conflicts, warnings (availability, when it's scheduled again) and pay_notes. Staff only.

lessons_set_student_charge

ChatGPT
Charge one student for a lesson, or not, against the barn's policy: the student is then marked Out of policy, with who and when, and shows on the month's exceptions (lessons_out_of_policy). charged null goes back to the policy. Not charging a paid lesson leaves the family account credit. Before confirming, tell the person whose charge it is and what changes, and ask. Finance.

lessons_set_student_horse

ChatGPT
Give one student on a lesson their horse, or none. A lesson has its horses (the pool, lessons_update horse_ids) and each student one of them; students may share a horse. A horse that isn't on the lesson yet is added to it for you (horse_added true): not an error. A person not on the lesson is refused: add them with lessons_update students first. A horse from another barn is refused. In a barn that drafts, a published lesson's change waits for core_publish_schedule. Families aren't told. Returns the lesson with each student's horse. Staff only.

lessons_set_student_price

ChatGPT
One student's price on one scheduled lesson: an option, a custom price with a reason (owners and managers with finance), or neither (back to the lesson's price). A lesson already charged posts the difference. A lesson booked online changes on its booking (events_set_booking_price). Call without confirm first.

lessons_set_teaching

ChatGPT
Save an Instructor's answer for a session: teaching or not, a lessons-a-week cap, a note, and the dates they can't teach (whole can't-work days on the staff schedule, never time off). It answers their request round's lesson step. Weekly times already made stay either way. Their weekly hours are lessons_set_availability. An Instructor answers for themselves; owners and managers for anyone. When new days off cross lessons already made, nothing more is saved: the answer lists them with their choices, as lessons_set_availability does; put them to the person and call again with resolutions.

lessons_set_times_plan

ChatGPT
Set the plan for these times: each names this plan, or Per lesson. A family booking goes on the plan the time names, so two prices are two plans on one lesson type with each time naming which. Riders who requested keep theirs. Call without confirm first, read back words and keeps_words, then confirm=true after they say yes. Staff only.

lessons_set_type_prices

ChatGPT
Set a lesson type's price options. Nothing already scheduled or booked changes; the answer's changed says, for each option whose price moved, how many upcoming lessons still carry the old price (lessons_apply_price_upcoming moves them, only when asked). Call without confirm first and read back what it would set. Staff.

lessons_set_vocabulary

ChatGPT
Replace the barn's disciplines and/or its ordered rider levels (beginner first). Staff only.

lessons_settle_makeups

ChatGPT
Convert or void make-up credits: a rider's open ones, or chosen ones. Leaving them is also fine: they stay usable until they lapse. Without confirm it changes nothing and answers how many, each credit's recommended value, the total and whose account: say them and ask. Undoing a conversion's ledger entry reopens the credit. Owners and Finance.

lessons_solve_horses

ChatGPT
Propose a horse for every student in every scheduled lesson of the week starting week_start (ISO date; any day of the week works). Disciplines, levels, rest days, daily limits and overlaps are hard rules; the horse the rider had last week comes first, then the least-worked horse. An injured or sick horse is never placed (its status now holds for the whole week). Horses already on a lesson are kept unless replace; a kept one that is injured or sick is listed in result.unwell with its warning, not reassigned. Returns a proposal (id, term_id, kind, status, stats) with result.assignments and result.unassigned (with reasons); apply it with lessons_apply_proposal. Staff only.

lessons_solve_schedule

ChatGPT
Propose the term's weekly timetable from its sheet: open requests in arrival order, each trying its ranked windows and preferred instructors, first fit on a 15-minute grid, arenas by remaining capacity, group asks sharing a placement up to group_size. Returns a proposal (id, term_id, kind, status draft, stats) with result.placements and result.unplaced (each with a reason); every placement lists what it relies_on_pending, and is flagged availability_conflict with an availability_reason when it crosses what the instructor said about their week (flagged, not avoided). Nothing reaches the calendar until lessons_apply_proposal. Staff only.

lessons_student_plan

ChatGPT
How a student pays: pays "plan" or "per_lesson", current (a list: each lessons plan they're on today, with plan, covers: the lesson types it covers, price_cents: their own, stored, starts_on, ends_on), upcoming ones, and their history. A lesson of a type none of their plans covers is charged per lesson. Staff.

lessons_students

ChatGPT
The roster: everyone in lessons (a lesson in the past year or coming up, a level, a live spot in a session not over, or a lessons plan today), a row each with level, weekly times and Instructor, plan name, last lesson, make-ups, and their status in the picked session. No prices. counts has each view's total. Staff only.

lessons_substitute_horse

ChatGPT
Put a substitute horse on the lessons of a horse that departed or was archived, in its place. horse_id is the horse leaving. substitutes maps lesson id → substitute horse id, one per lesson; substitute_horse_id is one horse for every lesson still needing one (a lesson named in substitutes keeps its own pick). Lessons are the ones barn_set_horse_status listed as lessons_needing_substitute; only ask after the person has chosen. A lesson not named is left as it is. A substitute must be eligible for that lesson (in the program, not injured or sick, not resting that day, under its daily limit, free then). One named for a lesson that isn't is refused with the reason and nothing changes; with substitute_horse_id, a lesson it can't take comes back in skipped with the reason, unchanged. Each lesson is changed as lessons_update changes its horses: at once in calendar subscriptions, or, in a barn that drafts the schedule, held until published, when riders and instructors are notified. Answers applied (lesson, when, the substitute, its horses now, and draft "changed" when it waits for publishing) and skipped. Staff only.

lessons_teaching

ChatGPT
One Instructor's answer for a session (spec 68): teaching (true, false for not this session, null for not said yet), max_lessons_week (null: no limit said), note for the barn's owners and managers, and away: the runs of whole days they can't teach inside the session ({from, to, words, reason, waiting}). Everyone's at once is in lessons_session_sheet's teaching. An Instructor may read their own; owners and managers anyone's.

lessons_term_sheet

ChatGPT
The planning sheet for a term: every request by status (open, scheduled, waitlisted, declined) with its ranked windows, and each instructor's availability blocks, with counts per status and how much rolled-over input is still pending. Read this before building or changing a term's schedule. Staff only.

lessons_terms

ChatGPT
The barn's terms, newest first: the stretches of weeks each with one weekly schedule: id, name, starts_on, ends_on, status, notes. Staff only.

lessons_times_from_session

ChatGPT
Start from last session: the earlier session's weekly times as proposals (key, day, start, Instructor, lesson type, spots, riders booked there, continues_in when it already continues somewhere), for lessons_apply_times. from_session null: "No earlier session yet" (add times with lessons_add_times). A session filled by matching has no weekly times and is refused. Staff only.

lessons_type_fold_plan

ChatGPT
Which lesson types would fold now that a time carries its own discipline and levels: each type with a suggestion (keep, fold, ask), why, what differs from the target, its plans, times and lessons ahead, and whether it can fold now (a confirmed time keeps its type). Reads only; it never runs by itself. Staff only.

lessons_type_lessons

ChatGPT
A lesson type's lessons, scheduled or booked online, one row per student (50 a page; more says how many follow): when, the student, Instructors and arena, the horse (own_horse when it's theirs), how it went (past), and paid: {kind: plan | makeup | booked | custom | lesson, words, detail}. counts: lessons, rows, plan (covered by a monthly plan or a make-up credit), charged (and charged_cents), booked_online, and for past came and marked. Staff only.

lessons_type_prices

ChatGPT
A lesson type's price options, the default first: each {id, name, price_cents, is_default, own_horse}. A new lesson starts at the default; families booking online pick (Own horse only for students with a horse on file, unless own_horse_for_everyone). Staff only.

lessons_unanswered_holds

ChatGPT
Held families who haven't answered Keep or Not riding: each family (person_id, name), its riders' held times, the emails and reminders sent (reminded_words "Emailed Mon, Nov 9 · reminded Fri, Nov 13 at 9:00 AM · next Sun, Nov 15 at 9:00 AM"), the deadline and what happens then (unanswered: release or keep). Staff only.

lessons_update

ChatGPT
Reschedule or change a lesson: any field given is replaced, participants wholesale; notes are Markdown. Editing one occurrence of a weekly series detaches it from the series. instructor_change "cover" with instructor_ids that replace one instructor with another records that the new one is covering this lesson ("Sam covering for Jane"); "change" (the default) is a new instructor for good. On a cancelled lesson: cancel_reason (family, no_show, barn) corrects why; instructor_paid (managers) says whether its instructors are paid for it; charge_kept (owner) says whether the families' charges stand — true posts them, false credits them back, once either way. Returns the lesson with conflicts, warnings and pay_notes (instructor time left as it was, and why). Staff only.

lessons_update_break

ChatGPT
Rename, move, stretch or shorten a break (dates YYYY-MM-DD; only fields given change). Lessons it now covers are set aside as Break; lessons it set aside that fall outside the new dates come back as they were (put_back). Its families' reminder day moves with its dates until it's sent. Call with preview=true first (inside, put_back, who hears), tell the person, then preview=false after they say yes. Staff only.

lessons_update_horse_block

ChatGPT
Change a horse block: changes takes any of kind, person_id, starts_on, ends_on (end it early this way, keeping its past), weekdays, start_time and end_time (both null: all day), note. Staff.

lessons_update_lesson_type

ChatGPT
Change a lesson type: changes takes any of name, kind, duration_min, discipline, levels, min_age, max_age, teacher_title, workload_weight, max_riders (1 to 20, null for one rider), lesson_price_cents (a rider's price per lesson; null for none), notes, teacher_ids, horse_ids, space_ids (lists are replaced whole), archived, and bookable=true to make its bookable event. A new length carries to its bookable event's times from now on. Staff only.

lessons_update_request

ChatGPT
Change a request, or say where it got to: series_id marks it scheduled (the weekly series it became, from lessons repeat), decline_reason declines it, status moves it by hand (a waitlisted entry to open, say), verification: "confirmed" marks a rolled-over request as checked (editing its ask does too). Only fields given change. Returns the request. Staff only.

lessons_update_session

ChatGPT
Rename, re-date (YYYY-MM-DD), or move a session's status through planning → published → closed. closed_days ([{date: YYYY-MM-DD, name}], all of them) are the closed days added to the session's Holidays beside the staffing holiday list (spec 56; issue their make-up credits with lessons_issue_holiday_credits). Only fields given change. Returns the session. Staff only.

lessons_update_term

ChatGPT
Rename, re-date, or move a term through planning → published → closed. Only fields given change. Returns the term. Staff only.

lessons_update_time

ChatGPT
Change a weekly time; only fields given change. A time that continues an old one keeps its link: the riders held there stay held, and their hold email will say what changed (email_preview, "Your time moves to Tuesdays 4:30 PM."). Requested riders move with it and each family is emailed; once riders are confirmed the change takes from_on and moves the series' lessons from then (its day and lesson type stay). An Instructor who already teaches then is refused. Call without confirm first (moves_words, hears_words, email_preview, heads-ups), tell the person, then confirm=true after they say yes. Staff only.

lessons_update_type

ChatGPT
Change a lesson type: changes takes any of name, kind, duration_min, discipline, levels, min_age, max_age, teacher_title, workload_weight, max_riders (1 to 20, null for one rider), lesson_price_cents (a rider's price per lesson; null for none), notes, teacher_ids, horse_ids, space_ids (lists are replaced whole), archived, and bookable=true to make its bookable event. A new length carries to its bookable event's times from now on. Staff only.

lessons_vocabulary

ChatGPT
The disciplines this barn teaches and its ladder of rider levels, in order — the words horses and riders are tagged with.

lessons_waiting_list

ChatGPT
The barn's one waiting list, in join order, 50 a page: a person is on it or not, and no session owns an entry. Each family has what they asked for (asked_for_words, or "No preferences on file"), experience, status (waiting, or also_returning: in a returning rider's household, who picks with Returning families) and fits against the session: time_id, words, Instructor, room and whether it's a draft, those inside the family's days first, then by time. A fit is a suggestion for staff and never a block; book one with lessons_add_rider_to_time and the request's id. Staff only.

lessons_week

ChatGPT
One week's horses across the barn, in a session or not: lessons with each rider and horse, needs (injured or sick horses still on a lesson, horses over a daily limit, on a rest day or blocked, riders with no horse, and what a proposal needs set first), workload (each horse per day: load, its limit, and whether it's over), propose (the counts) and proposal (the week's draft, if any; lessons, needs and workload then read as they would after Apply). who narrows lessons and needs, not the workload. Times are in the barn's zone once you read timezone. Next: pick by hand with lessons_set_rider_horse, or propose with lessons_solve_horses. Staff only.

msg_archive_board

ChatGPT
Archive a board: it leaves everyone's Messages list and feed and can't be posted to; its posts are kept. There's no way back in the app, so name the board and confirm with the caller first. Staff only; notifies nobody. Returns id, title and archived.

msg_board_readers

ChatGPT
Who can read a board, by name: staff always, everyone else by the board's groups (all of the barn when it has none). The board's "Who can read this". Staff only; a private conversation's members are on msg_get_conversation.

msg_broadcast

ChatGPT
Post a public announcement every barn user can read (markdown), with an optional post title. Goes to the public board named by board, creating it if needed (creation is staff-only). Returns the post's id, conversation_id, title and created_at. Docs: https://help.1barn.com/assistants/

msg_create_conversation

ChatGPT
Start a conversation. kind 'private' (default): DM one email, or a group of several (title required). kind 'public' (staff only): a board every barn user can read — title required, member_emails ignored. Returns id, kind, title and members by name.

msg_delete_draft

ChatGPT
Delete one of the caller's own drafts; nothing is sent. Returns the id and deleted.

msg_edit

ChatGPT
Replace the text of a post or comment the caller wrote (GitHub-flavored markdown), within 24 hours of posting, as the app's Edit post does. Only the body changes; the title, attachments, reactions and comments stay, and readers see it marked edited. Refused for someone else's message, a deleted one, or after 24 hours. Returns the message's id, title, body, edited and created_at.

msg_get_conversation

ChatGPT
Read a conversation: members by name and the latest posts, newest first, each with its comments (markdown bodies), attachment file names and reaction counts. Pass before (a post's created_at) to page further back while has_more is true. Reading doesn't mark it read.

msg_get_draft

ChatGPT
One of the caller's own drafts, as msg_list_drafts shows it.

msg_im_in

ChatGPT
Answer I'm in on a dated board post as the caller, or take it back (spec 81). Not a sign-up: no spots, money or waiver; an event is signed up for on its own. Notifies nobody. Returns the date with the going count and first names.

msg_leave_conversation

ChatGPT
Leave a private conversation the caller is in: it leaves their list and stops notifying them, and only another member can add them back. Confirm with the caller first. Boards can't be left (use msg_set_notifications). The others aren't told. Returns id and left.

msg_list_conversations

ChatGPT
List conversations visible to the caller (public + their private ones): id, kind, title, members by name (private ones), unread count, and the last message's preview, author and time.

msg_list_drafts

ChatGPT
The caller's own message drafts, the latest saved first: id, where each goes (by name), title, body, source (person or assistant), when it was saved, and cannot_send (why it can't be sent, when its board or conversation can't be posted to anymore). Never anyone else's.

msg_mark_all_read

ChatGPT
Mark everything the caller sees read, clearing their Messages badge (or only boards, or only private conversations). Only the caller's own read state changes; nobody is told. Returns marked: how many had something unread.

msg_mark_unread

ChatGPT
Mark a board or private conversation unread for the caller: it counts on their Messages badge and dashboard card again until they open it. Only the caller's own read state changes; nobody is told. Returns id and unread.

msg_message_people

ChatGPT
Write to many people, one at a time so nobody sees who else got it (spec 52): given person_ids, or everyone with a label (name or id), or a People list view (filter and search, as barn_list_people takes them; with label too). Each is reached by their login (a direct message), else their email (an email thread the owner and managers see), else, for a child, their parents. body is Markdown. Without confirm nothing is sent: the answer says how many it would reach and how (by_login, by_email, via_parents) and who can't be reached; say that back and ask. The owner and managers.

msg_post_going

ChatGPT
A dated board post (spec 81): its board, title, author, when and where, whether it's on the calendar, the event it became, and who said I'm in by name (the board's readers see the same). Reads only.

msg_post_to_event

ChatGPT
Make a dated board post an event (spec 81, staff): first make the event with events_create from the post (msg_post_going has its title, day, time and place), then call this. Nobody is signed up: I'm in isn't a sign-up, and an event may cost money or need a waiver. With tell_going it notifies people, so call first without confirm: nothing changes and the answer says how many hear; ask, then call again with confirm=true.

msg_remove_post_date

ChatGPT
Take the date off a board post (spec 81): whoever posted it, or staff. It leaves the calendar, its I'm in answers go and the people who gave them hear, so when anyone would, call first without confirm: nothing changes and the answer says how many; ask, then call again with confirm=true. The post stays on the board.

msg_rename_conversation

ChatGPT
Rename a board (staff only) or a private group (staff or whoever started it); an empty title clears a group's name, which then reads as its members' names (a board always needs one). Posts, members and who it's for stay; nobody is notified, and readers see the new name in their list. Returns id, kind and title.

msg_save_draft

ChatGPT
Save a message as a draft for the caller to read and send themselves (spec 61): nothing is sent and nobody is notified. The default for board posts and messages to families; say it's waiting in Messages › Drafts. Exactly one of to_emails, board_id or conversation_id. Only the caller ever sees it. body is GitHub-flavored markdown. Returns the draft: id, to (where it goes, by name), title, body, source, cannot_send and link (the app's page for it).

msg_send

ChatGPT
Post to a conversation the caller can access (GitHub-flavored markdown). Give posts a short title when it helps; pass parent_message_id to comment on an existing post instead. Returns the new message's id, conversation_id, title and created_at. Docs: https://help.1barn.com/assistants/

msg_send_draft

ChatGPT
Send one of the caller's own drafts exactly as msg_send would, and delete the draft. It notifies people, so call it first without confirm: nothing is sent, and the answer names where it goes and how many a push reaches; tell the person, and call again with confirm=true only after they say yes. A draft whose board or conversation can't be posted to anymore is refused with why; it is never sent anywhere else. Returns the message's id, conversation_id, title, created_at and whether the conversation was created.

msg_set_board_audience

ChatGPT
Change who a board is for: group keys (everyone, owners, staff, instructors, boarders, vendors), or an empty list for the whole barn. Staff always see every board. Narrowing it hides the board, its posts and its notifications from anyone outside the groups, so say who loses access (msg_list_conversations' reach before and after) and confirm with the caller first. Staff only; notifies nobody. Returns id, title, groups by key and by name.

msg_set_board_posting

ChatGPT
A board's "Others can start posts": false (the default) means only staff start posts on it; true lets anyone who reads it start one, and each new post notifies every reader. Comments are open to every reader either way. Name the board and what changes, and confirm with the caller first. Staff only; notifies nobody. Returns id, title and others_can_post.

msg_set_dated_posts_calendar

ChatGPT
The barn's "Dated posts show on the calendar" (spec 81; on unless turned off), for each board's readers. The owner, or a manager with the settings permission. Notifies nobody.

msg_set_notifications

ChatGPT
The caller's own notifications for one board or private conversation: "all" (every new post and reply pushes, the default) or "off" (none do; unread counts still show). There are no @mentions yet, so there's no mentions-only choice. Returns id and notify.

msg_set_post_date

ChatGPT
Add a date to a board post or change it (spec 81): whoever posted it, or staff. A new day or time tells everyone who said I'm in, so when it would, call first without confirm: nothing changes, and the answer says how many hear; tell the person and call again with confirm=true only after they say yes. Where is an arena_id or a place in words, or neither. Returns the post's date and how many were told.

msg_set_post_on_calendar

ChatGPT
Staff: hide a dated board post from the calendar or show it again (spec 81). It stays on the board; notifies nobody.

msg_update_draft

ChatGPT
Change one of the caller's own drafts: its text, title, or where a new message or post goes (a conversation's reply stays in its conversation). Nothing is sent. Returns the draft.

records_add_sender

ChatGPT
Add one approved sender (owner or manager only): a person in 1barn, an email address, or a whole domain (anyone there; broader). From then on, mail they send to the barn's records address is sent to Anthropic to be read by AI. Before calling, tell the person plainly that mail from this sender will be read by AI (Anthropic) and ask them to confirm; call only after they say yes.

records_approve_sender

ChatGPT
Approve a held email's sender (owner or manager only) and have the email read: scope address adds their address, domain their whole domain (anyone there). This email and their mail from now on are sent to Anthropic to be read by AI, which can't be called back. Before calling, tell the person plainly that mail from this sender will be read by AI (Anthropic) and ask them to confirm; call only after they say yes.

records_dismiss

ChatGPT
Dismiss a suggestion (suggestion_id) or a whole emailed record (item_id) from the records inbox (staff), with an optional reason the AI learns from ("not ours", "a duplicate"). Nothing is filed.

records_file

ChatGPT
File a suggestion from the records inbox (staff): makes a health record (vaccination, vet_visit, farrier), a Coggins renewal, or documents on the horse (invoice, other), one per horse, with the email's files attached. Give kind, horse_ids, provider_person_id or fields (by name, as records_inbox_item shows them) only to correct the suggestion; anything left out is filed as suggested. Check the low_confidence fields with the person first.

records_inbox

ChatGPT
Emails sent to the barn's records address (staff): view open (being read, ready to file, or failed), held (senders not on the barn's approved list; never read by AI) or done. Each has the sender, the subject, when it came, the attachment names, and for ready ones the kinds of record and the horses the AI found. Open one with records_inbox_item.

records_inbox_item

ChatGPT
One emailed record (staff): who sent it, whether it's verified, the attachment names, and the AI's suggestions, each with its kind (vaccination, vet_visit, farrier, coggins, invoice, other), horses, provider, the fields it read (dates YYYY-MM-DD, money in cents) and which ones it was unsure of (low_confidence). The email's text and files stay in the app. File one with records_file.

records_remove_sender

ChatGPT
Take a sender off the approved list (owner or manager only): their mail is held from now on and not read by AI. Ids come from records_senders.

records_senders

ChatGPT
Who may email the barn's records address (staff): people in 1barn (their main and alternate emails count), single addresses, and whole domains. Mail from anyone else is held and never read by AI.

records_set_email_settings

ChatGPT
Turn records email on or off, or change who it takes mail from, as Settings › Records email does. enabled: whether mail to the barn's records address is read and filed (off, mail that arrives is held a day, then deleted; turning it on reads what's held). all_staff: whether mail from any staff member's address is taken as well as the approved senders (records_senders). It changes what mail the barn reads, so call it first without confirm: nothing is saved and the answer says before → after; call again with confirm=true only after the person says yes. Notifies nobody. The owner or a manager.

records_snap

ChatGPT
Snap a record (staff): add a photo of a vet's paper, a Coggins or an invoice, or a PDF, to the records inbox, where the AI reads it as it reads emailed records and suggests the record to add. The files go to Anthropic to be read, as emailed records do; records email must be on (Settings, Records email). It answers at once with the item, status processing; reading takes about a minute, then records_inbox_item shows the suggestions to add with records_file.

staffing_add_entry

ChatGPT
Add a day someone forgot to clock: the person (staff or an instructor), the work type, the clock-in and clock-out (ISO with the barn's offset), its breaks [{started_at, ended_at}] (unpaid; the entry pays them added up) and a note the employee sees. It's flagged as added by hand and waits for approval under the barn's policy. Propose it with the person, the day, the times, the breaks and the hours. Managers only; refused in a closed pay period. Returns the entry.

staffing_add_holidays

ChatGPT
Add days to the barn's holiday calendar, all or nothing. Each: {date: ISO date, name, multiplier?: times the rate, 1 to 9; left out it stores the barn's holiday rate as the holiday's own, paid?: a paid holiday, true when left out, paid_on?: ISO date it's paid on; left out it stores the barn's weekend rule's day as its own}. Up to 40. Two paid holidays can't share a paid day. A day already on the calendar is skipped and listed under skipped; a day in a closed pay period refuses the lot (reopen it first). Hours worked on a holiday pay more in every open pay period that holds it, so say which days and at what rate and confirm with the person before calling. Notifies nobody. Needs the settings permission.

staffing_add_round_people

ChatGPT
Ask more people (on the staff list) in a request round that's still open. They're notified. Before confirming, say who and ask. Managers.

staffing_add_time_off

ChatGPT
A manager adds time off for an employee who didn't ask ("put Maya down for Friday off, from her vacation"), approved as it's entered. person_id: the employee (barn_list_people finds them). ISO dates (ends_on defaults to starts_on), whole days unless both start_time and end_time (HH:MM). policy (a time-off policy's name, like Vacation, or its id) makes it paid from the employee's balance: the suggested minutes (their scheduled shifts then), paid_by_day ({ISO day: minutes}) or paid_minutes (spread over the days); none means unpaid. Days with nothing scheduled (days_without_hours in the preview) aren't guessed: ask how many hours each pays (the preview gives the person's own hours a day when known) and send paid_by_day or paid_minutes. The reason is seen only by managers and the employee. Refused for past days and when they already have time off then. Call it first without confirm: nothing is saved, and the answer says what would be added, the hours and the balance after, and any lessons it touches with their choices; put that to the person and call again with confirm=true (and resolutions {lesson_id: choice}, "*": "default" keeps them all, when there are lessons) only after they say yes. Confirmed, it takes paid hours from the balance, closes the person's bookable slots on whole days off, and the employee gets a notice. Returns the time off and the person's shifts it covers, so they can be left, removed or offered up. Managers only.

staffing_add_to_round

ChatGPT
Ask more people (on the staff list) in a request round that's still open. They're notified. Before confirming, say who and ask. Managers.

staffing_adjust_pto

ChatGPT
Add hours to an employee's time-off balance, or take them away (negative minutes), with a note saying why: an opening balance, a correction. policy is the policy's name or id. Writes one ledger row; nobody is notified. Managers only. Returns the new balance.

staffing_answer_lesson_cover

ChatGPT
Answer a lesson cover request: answer take (any instructor who could teach it, or the one asked) or decline (the one asked by name). Taking it waits for a manager, or under the barn's auto approval puts the caller on the lesson at once; it answers warnings when the lesson crosses the caller's availability. The managers or the instructor who asked get a notice. Returns the cover request.

staffing_answer_lesson_covers

ChatGPT
Answer several lesson cover requests at once (Take all): answer take or decline, each checked as staffing_answer_lesson_cover checks one. All or nothing: when any can't be taken (the caller teaches then, it's inside the cutoff), nothing is and the error names that lesson. Taking waits for a manager, or under the barn's auto approval puts the caller on the lessons at once; a decline leaves each with the instructor who asked. The managers or the instructor who asked get one notice for all of them. Returns {covers, warnings}.

staffing_answer_open_shift

ChatGPT
Say "I can take it" for a shift in the pool, with an optional comment for the manager ("I can do it but need to leave by 4"). Several people can; it stays in the pool until a manager assigns it, and the caller can take it back until then. The managers get a notice. Refused when the caller can't work that kind of shift or is already on a shift then.

staffing_answer_round

ChatGPT
Answer my request round, until it closes. part (time_off, availability or lessons) with answer "none" says there's nothing to add (saving time off, availability or lesson times answers its part as "added" by itself); null takes an answer back. done true is "I'm done", once every part asked has an answer; false takes it back.

staffing_answer_trade

ChatGPT
Answer a trade, or a shift offered up to the caller by name: answer is accept or decline. Accepting checks neither person ends up on two shifts at once, then waits for a manager or, under auto approval, trades the shifts. The managers or the offerer get a notice. Returns the offer.

staffing_approve_entries

ChatGPT
Approve several waiting time entries at once, so they count toward payroll (the Time tab's "Approve N selected"). Propose it with how many entries and hours, and whose. Entries that look wrong (looks_wrong set: a missed clock-out, one longer than the barn's longest shift, a same-minute punch) are never approved this way, even if listed: say so, and approve one on its own with staffing_approve_entry only if the person says it's right, or set its clock-out with staffing_close_entry. Returns approved ids, approved_hours, and skipped [{id, reason, why}] (not_found, not_waiting, closed_period, looks_wrong). Managers only.

staffing_approve_entry

ChatGPT
Approve a time entry that is waiting, so it counts toward payroll. Managers only; refused once its pay period is closed. Returns the entry's id, status, whose it is and its paid minutes.

staffing_archive_work_type

ChatGPT
Archive a kind of work no longer done (archived false restores it). Past shifts and time keep it; it isn't offered for new shifts, standing shifts, time entries, rates or the time clock. Refused, saying what uses it, while upcoming shifts, a running standing shift, or the lesson or paid-time-off work type setting do. Needs the settings permission.

staffing_ask_for_requests

ChatGPT
Send a request round: ask staff for their time off (a span of days) and availability (a span) and, from instructors, their lesson times for a lesson term, by closes_at (ISO with its time zone). Everyone on the staff list, or person_ids. Each person answers each part (adding something, or "nothing to add"), then "I'm done"; the ones not done get one reminder the day before; only the sender hears when it closes. After that, time off asked for its dates is marked after the deadline. Before confirming, say who it goes to, what it asks and when it closes, and ask: everyone asked is notified.

staffing_assign_shift

ChatGPT
Assign a pool shift (open, or offered up) — managers only. pieces is a list of {person_id, starts_at?, ends_at?} (ISO datetimes): one piece gives the whole shift, its times changed if given; two to four split it, the first piece being the shift and the rest new shifts of the same work. Anyone can be picked, answered or not. Whoever answered hears whether they got it, and the employee who offered it up that it's covered. Returns the shifts and warnings (overtime, availability).

staffing_assign_work_type

ChatGPT
Assign an employee a work type, or change their rate for one they have. work_type is its id or name (staffing_work_types). hourly_cents is their rate, more than 0 (an employee's rate is never $0); left out of a new assignment, the work type's suggested rate is copied in (it's theirs from then on: a later change to the suggested rate changes nobody's pay), and with no suggested rate ($0) it's refused: ask for their rate. Changing the rate of one they have needs hourly_cents. A volunteer (staffing_person_work_types says volunteer) has no rate: hourly_cents is refused, and assigning them work needs only a staffing manager. effective_on (YYYY-MM-DD) dates it; today, or from the start for a first assignment, when left out. It changes what someone can be scheduled for and paid, so call it first without confirm: nothing is saved and the answer says what changes; call again with confirm=true only after the person says yes. Notifies nobody. Needs the pay permission for an employee.

staffing_availability

ChatGPT
When people say they can and can't work: weekly blocks (weekday, start_time and end_time, both null for all day, one null for "until" or "from"; kind available or unavailable; optional starts_on and ends_on; note), plus an instructor's lesson availability by term, which counts as available on those days (pending = rolled over and not yet confirmed, so it doesn't count). The caller's own; a manager may name anyone, or leave person_id out for every current employee. Coworkers can't see each other's. Each also carries preferences: the shifts a week and a month they'd like, am/pm/either on weekdays and on weekends, and comments; hints for scheduling, not rules.

staffing_availability_requests

ChatGPT
Availability changes waiting for a manager's approval (when the barn asks for it), one per submission: request_id, who, when it was sent, and each day or week it says ("Mondays from Nov 2": "Can work 3 PM–8 PM"), with what it replaces, their notes, and actions (what the caller may do: approve, decline, withdraw). status: pending (default) or recent (also those decided in the last 30 days, with the decision note). Managers see everyone's (or one person's); anyone else, their own. Pending changes don't count until approved.

staffing_budget

ChatGPT
The labor budget: hours a week by season (month-day start and end, both included, repeating every year, together covering it), optionally split by work type (a type left out isn't budgeted); null until someone sets one. can_edit says whether the caller may change it (the owner, or a manager with the settings permission). With start and end (ISO dates), range is the budget over those days (each day the season's weekly figure / 7). With suggest, suggestions: the median week worked in "All year" and each saved season over the last 52 weeks (7shifts history included), rounded to 5 h, with each work type's share. Dollars only for pay holders, derived from hours x each work type's suggested rate. Managers only.

staffing_cancel_lesson_cover

ChatGPT
Take back a lesson cover request: the caller's own while nobody has taken it, or, for a manager, any that is still live. Whoever had taken it or been asked gets a notice. Returns the cover request.

staffing_cancel_offer

ChatGPT
Take back a shift offer or trade: the caller's own while nobody has taken it, or, for a manager, any that is still live. Whoever had claimed it or been asked gets a notice. Returns the offer.

staffing_cancel_round

ChatGPT
Cancel a request round that's still open. Everyone asked is notified. Nothing is deleted: their answers stay on the round, the requests they sent stay to be decided as usual, and time off asked for its dates isn't marked after the deadline. It can't be started again: send a new one. Before confirming, say all that and ask. Managers.

staffing_cancel_time_off

ChatGPT
Cancel a time-off request: the caller's own while it's pending, or, for a manager, any pending or approved one (the employee gets a notice). Returns the request.

staffing_change_employment_status

ChatGPT
Change someone's employment status and hand on their work, with the same arguments as staffing_preview_status_change. Call it first without confirm: nothing changes, and the answer says what would happen; put that to the person and call again with confirm=true only after they say yes. Confirmed, it records the change, then from that day on cancels, offers up or hands on their shifts, gives their lessons another instructor or a substitute, cancels their open requests, and closes their clock-in and approves entries if asked; the login, Works here, Teaches lessons, punch code, group conversations and archiving happen now for today, or on a later day by themselves. People whose shifts, lessons or requests change are told as the schedule tells them. Managers only; changing the login takes the logins permission. Answers happened, waiting and problems.

staffing_change_round_deadline

ChatGPT
Move the deadline of a request round that's still open, earlier or later. The people not done are notified of the new one, and the day-before reminder goes again for it. A round that has closed can't be moved: start a new one. Before confirming, say the new deadline and ask. Managers.

staffing_claim_shift

ChatGPT
Take a coworker's open offered-up shift. Refused when the caller can't work that kind of shift, is already on a shift then, or has approved time off then. A shift offered up to anyone stays in the pool for others to answer too, with the caller's optional comment, until a manager picks (who gets a notice); under the barn's auto approval it's the caller's at once. Returns the offer.

staffing_close_entry

ChatGPT
Clock someone out who forgot: an entry still open (status open), or one 1barn closed automatically (punch_flags missed_out), ends at clock_out_at (ISO with its offset; the shift's end is usually right), set by the caller, with an optional note the employee sees. It then waits for approval, unless approve=true. Propose it with the person, the time and the hours it comes to. Managers only; refused in a closed pay period. Returns the entry.

staffing_close_period

ChatGPT
Close a pay period: its entries freeze (no edits, no approvals) and time-off policies that earn by the period or by hours worked earn. period: its start date (ISO). Refused until its last day is over at the barn (midnight, the barn's time), while anyone is still clocked in from it, while entries in it wait for approval, while anyone has time on a work type they have no rate for, and while paid time off has no "Time off paid as" (each fixed on the person's Pay card: staffing_assign_work_type, staffing_set_time_off_work_type); read staffing_pay_period_status first and, when it's blocked, say why with its rows instead of proposing this. The proposal should give the period, its hours and overtime, the time off it earns, and that only the owner can reopen it. Notifies nobody. The owner, or a manager with Pay.

staffing_copy_week

ChatGPT
Copy one week's shifts onto another, weekday for weekday ("copy this week to next week"). from_day and to_day are any ISO date in each week (weeks run from the barn's week start). Shifts that would overlap one already there, or land after someone's employment ends, or have an archived work type are skipped; standing and repeating shifts are left out (their series covers the weeks), and so are lesson-calendar shifts. Without confirm it makes nothing and says how many it would copy and skip; put that to the person and call again with confirm=true only if they say yes. Notifies nobody (new shifts in a barn that drafts wait to be published). Managers only.

staffing_create_shift

ChatGPT
Put a shift on the schedule (ISO datetimes with a timezone) for a staff member or instructor; with repeat_until (an ISO date), one a week up to and including that day; with standing (instead of repeat_until), one a week with no end date — a regular weekly shift, kept on the schedule eight weeks ahead as time passes. web_check_in lets them clock in and out for it from their own login (when the barn allows clocking in from the web; otherwise only on the barn's iPad), on every week. Refused when it overlaps one of their shifts; a later week that would is skipped and listed. Returns the first shift, how many were made, the skipped dates, and warnings when it lands on someone's approved time off, leave, or a time they said they can't work. also_on (ISO dates, within 31 days) puts the same shift at the same clock times on those days too, each with the same repeat ("Friday, and Wednesday and Thursday as well"); a day that can't take it is skipped and listed, and also_made lists the days that did. person_id null makes an open shift: in the pool for the team to say they can take it, until a manager assigns it (staffing_assign_shift). Managers only.

staffing_create_work_type

ChatGPT
Add a kind of work to the schedule (barn chores, office, night check…). color: #rrggbb for the schedule, picked for it when left out. hourly_cents: its suggested rate, filled in when someone is assigned it (needs the pay permission; $0 without). Notifies nobody. The owner, or a manager with the settings permission.

staffing_decide_availability

ChatGPT
Decide one submitted availability change (request_id from staffing_availability_requests). decision: approve or decline (managers; note optional, the person sees it), or withdraw (the person themselves, while it waits). Approving makes every day in it count for scheduling warnings and takes away what it replaces; declining keeps it only in their history. Before calling, tell the person which change and what it says, and confirm the decision with them: the employee is notified and it can't be called back. Returns the change with its new status.

staffing_decide_lesson_cover

ChatGPT
A manager approves or rejects a taken lesson cover (decision: approve or reject; a reason is optional). Approving puts the new instructor on that one lesson in place of the one who asked (co-instructors stay), records whom they're covering for, and moves the lesson time between their schedules. Both instructors get a notice. Returns the cover request.

staffing_decide_lesson_covers

ChatGPT
A manager approves or rejects several taken lesson covers at once (Approve all), each as staffing_decide_lesson_cover does one. All or nothing: when any can't be approved, nothing is and the error names that lesson. Approving puts each taker on their lesson in place of the one who asked. Each pair of instructors gets one notice. Returns {covers, warnings}.

staffing_decide_lesson_pay

ChatGPT
Answer a canceled-lesson pay suggestion from staffing_needs_you's lesson_pay: add=true adds the time (minutes, the lesson's length unless given) as an approved entry at the barn's lesson work type; add=false dismisses it. A canceled lesson never pays by itself. Say who, which lesson and how long, and ask before confirming. Managers.

staffing_decide_offer

ChatGPT
A manager approves or rejects a taken offered-up shift or an accepted trade (decision: approve or reject; a reason is optional). Approving moves the shift to the new person (both shifts, for a trade) and answers warnings when someone would go into overtime that week. Both employees get a notice. Returns the offer.

staffing_decide_time_off

ChatGPT
A manager approves or declines a pending time-off request (decision: approve or decline; a reason is optional when declining). For paid time off, approving takes the suggested paid minutes from the employee's balance, or paid_minutes when given (spread over the days asked for); it's refused when that would take the balance below zero and the policy doesn't allow it. Approving answers the person's shifts it covers, so they can be left, removed or offered up. The employee gets a notice. Returns the request.

staffing_default_work_type

ChatGPT
One employee's default work type today (work_type_id, work_type), the next change and the history. The default is one of their assigned work types (never a rate of its own): new shifts for them start as it, and when the barn pays lesson time at the lesson rate, a punch that started as Lessons pays its minutes outside every shift as it. Managers, and the person themselves.

staffing_delete_holiday

ChatGPT
Take a holiday off the barn's calendar (Settings › Staffing › Pay › Holidays): holiday is its id or its date (ISO). Working that day then pays the usual rate, and if it was a paid holiday nobody gets its paid day. Refused when its day, or its paid day, is in a closed pay period. It can't be undone except by adding it again, so call it first without confirm: nothing is removed and the answer names the holiday; call again with confirm=true only after the person says yes. Notifies nobody. Needs the settings permission.

staffing_employment

ChatGPT
One person's employment status: active, on_leave or ended today, the day it began (since; null when nothing has been recorded, which means active), the next scheduled change if any, and every event (hired, leave, returned, ended, rehired) with its day and note, newest first. Managers only.

staffing_end_standing_shift

ChatGPT
End a standing (weekly) shift on a day, the ISO date its last week falls on or before (series_id from staffing_standing_shifts). The later weeks still the person's and not worked come off the schedule, with any offers or trades on them cancelled and both people told; weeks worked, offered up or traded stay. A later day than an earlier end makes the weeks after the old end again. Without confirm it changes nothing and says what it would do; put that to the person and call again with confirm=true only if they say yes. Managers only. Returns removed and made counts.

staffing_hours_report

ChatGPT
Reports › Hours for the barn's days start to end (ISO dates, both included, at most two years; this schedule week when left out): budget (hours for the range, as set today; null without one), totals (scheduled = published shifts not cancelled, open and out-sick ones included; worked = approved, waiting and clocked-in time, rejected not; still_scheduled = shift time still ahead, open shifts included; projected = worked + still scheduled; pending_hours waiting for approval; overtime past the weekly line, week by week; unscheduled_hours worked with no shift), by work type (with budget_hours, volunteer_hours and last_year_hours), by person (overtime, late and its minutes, no-shows, out sick, no-shift hours; volunteer true for volunteer hours, and someone who switched between employee and volunteer inside the dates has a row for each, dated "until Oct 18" / "from Oct 19"), employee_hours and volunteer_hours in totals (volunteers cost $0 and never count toward overtime; cost_per_hour_cents is over rated employee hours only, rated_employee_hours, with not_costed_hours an employee's time with no rate or at $0), attendance and coverage (open shifts posted, filled, still open; offers and trades), look (things worth fixing), the 12-month trend, the busiest weekday × block, and paid time off in hours (never the kind). With compare_last_year, last_year: the same weeks by week of year (a month: the same month); imported true means it's the 7shifts history, whose call-offs read as called_off (not out sick), whose late counts have no minutes, and which had no offers or trades (offers null). Dollars (*_cents) only for the owner and pay holders, and never one person's (their pay): the fields aren't there otherwise, so never estimate them. The CSV downloads are in the app, not here. The owner and managers only.

staffing_list_entries

ChatGPT
One pay period's time entries, filtered and sorted as on the Time tab. period: any day in it (ISO), the current one when left out. Filters: status (open, pending, approved, rejected); person and work_type (names or ids, several allowed); source (punch = the Time Clock, app, manual = set by a manager, imported, auto = closed by 1barn; either end); off_schedule (past the barn's line, usually 15 min, over or under the shift) or off_schedule_minutes; edited_or_missed (an end a manager set, or a missed clock-out); unscheduled. sort: date, person, work_type, worked or variance (vs. schedule by sign: desc is most over first, desc=false most under first); open and rejected entries sink. Each entry has its shift's times, variance_minutes/variance_hours, both ends' sources, punch_flags, who set an end, and looks_wrong. totals (entries, hours, waiting) is for everything filtered, before limit. "Who went most over schedule this week?" is sort=variance, limit=5; "Casey's longest shift this period" is person=["Casey Ford"], sort=worked, limit=1. Managers see everyone; an employee their own.

staffing_list_holidays

ChatGPT
The barn's holiday calendar: the days whose hours pay extra, each with its id, date (ISO), name and its own multiplier (filled from the barn's holiday rate when it was added). One year, or every year when year is left out. Payroll pays time worked on a holiday at the larger of its multiplier and overtime's, never both. Each also says whether it's a paid holiday (paid: eligible staff get their holiday hours without working) and its own paid day (paid_on and paid_day, the same day: filled from the barn's weekend rule when it was added, then the holiday's own; paid_day_rule says how it reads, weekend, same_day or custom). Changing the barn's rate or weekend rule never changes a holiday already on the calendar. Staff can read it.

staffing_list_pool

ChatGPT
The open shift pool: shifts with nobody on them, and shifts offered up to anyone, that haven't ended, soonest first. Each has the shift, where it came from (open or offer_up, and whose), who said they can take it with their comments (a manager sees all; anyone else only their own answer and a count), and what the caller may do (respond, withdraw, assign).

staffing_list_requests

ChatGPT
What's going on with offered-up shifts, trades, lesson covers and time off for the caller: their own shift offers, offers waiting on them (open offered-up shifts they can claim, trades asked of them), their lesson cover requests and the ones they could take, their upcoming time off, counts of what's waiting, and for a manager the approval queue (taken offers and accepted trades with overtime warnings, claimed lesson covers, pending time off with reasons). Each offer and cover lists the actions the caller may take on it.

staffing_list_shifts

ChatGPT
Scheduled shifts overlapping a window (ISO datetimes), optionally for one person. Managers see everyone; an employee sees their own. Each: person, work type, starts_at, ends_at, minutes, notes, source (manual or lessons), the lesson day it came from, lessons_inside (the person's lessons during it: count and each title and time, or null), and standing (a week of a shift that repeats weekly with no end date). Lessons inside someone's longer shift are part of it, not a shift of their own, so hours never count twice.

staffing_mark_days

ChatGPT
Add to someone's availability for particular days ("David can't work Saturday 8 to 5"), keeping everything already declared. days: ISO dates (up to 31). Each day gets its own block for that day only; with weekly, one block per weekday among them, every week from that day on. kind: unavailable (the default) or available; start_time and end_time "HH:MM", both left out for all day, end_time left out for "from then on". The caller's own; a manager may name anyone. Shifts and lessons that cross it get a warning, never a refusal. Nobody is notified. Returns the blocks made.

staffing_missing_default_work_types

ChatGPT
Lesson instructors with no default work type today, each with the work types they could take as one (choices; empty: assign another work type first). Their time outside lesson shifts can't be paid until they have one. Managers only.

staffing_my_time

ChatGPT
The caller's own time clock: whether they're clocked in, their next shift, their shifts in the coming week, the work they can clock in for, the barn's approval policy, and their entries in a window (ISO datetimes; the last two weeks when none is given). Clocking in happens on the barn's iPad; web_clock_in says whether the barn also lets shifts be clocked from a login, and each shift's web_check_in whether that one may; kiosk_unscheduled whether the iPad takes a clock-in with no shift (unscheduled, for a manager's approval) or sends them to a manager to add the time. Each coming shift says how many of their lessons fall inside it (lessons_inside), and each entry how many of its minutes are paid as lesson time (lesson_minutes) and its breaks. on_break says they're clocked in but on a break now (since break_started_at); breaks are started and ended where they clocked in. A login the barn hasn't linked to a person has no entries.

staffing_needs_you

ChatGPT
Only what the caller can fix on the schedule, grouped by how soon it bites. Managers: late (people whose shift started and who haven't clocked in), open_shifts (the next two weeks, drafts too, with can_take and said_yes), time_entries (waiting count and the ones that look wrong, with the reason), time_off (pending, with shifts_in_it and lessons_in_it), availability (changes waiting for approval, one per submission, with request_id and days), offers (offers up, trades and lesson covers someone took, waiting for a manager), overtime (people past overtime_minutes this barn week; draft when only unpublished changes put them there), lesson_pay (spec 50: a late family cancel or a no-show whose instructor has no time for the slot, with words like "Mara's Tue 4:00 PM lesson was a late cancel: add 1 h at their lesson rate?"; answer with staffing_decide_lesson_pay). The owner and managers with Pay: pay_period (from a period's last day until it's closed: state prepare, blocked or ready, its counts and title; its waiting entries are left out of time_entries). Anyone: offered_to_me (shifts offered up or traded to them by name, with fits_availability) and covers_to_me. count counts every item, the pay period as 1.

staffing_offer_lesson_cover

ChatGPT
Ask another instructor to cover one of the caller's own upcoming lessons (one occurrence, even in a weekly series): any instructor who could teach it, or only to_person_id. Refused inside the barn's offer cutoff, for a lesson already up for a cover, or when the named instructor teaches another lesson then or has time off. The instructors who could take it get a phone notice. Returns the cover request.

staffing_offer_shift

ChatGPT
Offer up one of the caller's own upcoming shifts. kind offer_up offers it to anyone who can work it (or only to to_person_id); kind trade asks the coworker who has trade_shift_id for that shift in return. Refused inside the barn's cutoff, for shifts from the lesson calendar, or when it's already offered. The coworkers who could take it get a phone notice. Returns the offer.

staffing_paid_holidays

ChatGPT
Who gets holiday pay: on a day (date, ISO) or for a holiday (holiday: its name or id; the next paid holiday when both are left out). A paid holiday pays eligible staff their holiday hours on its paid day without a clock-in, at the time-off rate, never toward overtime. Returns the holiday, the day it's paid on, everyone paid (name, hours, works, also_working: they have a shift or time that day too) and everyone not paid with why: not_eligible (not set up), eligible_from (with the day their paid holidays start), on_leave, ended or not_hired. For "who gets holiday pay on Thanksgiving?" or "is Drew paid for July 3?". Hours only. Managers only.

staffing_pay_period_status

ChatGPT
What's left before a pay period can close, and what blocks it. period: any day in it (ISO); by default the period whose last day is today, else the one just past. Returns its state (open, last_day, ended, closed), ends_at (the barn's midnight after the last day: it can't close before), can_close, blockers ({code, message, person_id}: not_ended, waiting, clocked_in, looks_wrong, no_rate: an employee's time on a work type they have no rate for (reason not_assigned) or at $0 (reason zero_rate; $0 counts as no rate), never paid at a guess, fixed on their Pay card (rate_blockers has each with its work type, minutes and first_day, the day a fixing rate starts); time_off_pay), volunteer_hours (each volunteer's hours in the period, with volunteer_until or volunteer_from when they switched inside it: volunteers have no rate and never block a close), counts {waiting, looks_wrong, clocked_in} (never overlapping: waiting entries look right, looks_wrong ones are held back with a reason, clocked_in are still open), the entries in each (id, person, day, times, hours, reason), detail (the same words the app uses: "2 waiting · 1 still clocked in · 1 looks wrong"), totals (approved regular, overtime, holiday and time off hours, per person and for the barn), accrual_preview (the time off closing earns, per policy), closure and history (every close and reopen, with the reopen reasons), can_reopen, and owner ({user_id, first_name, email}: who reopens it, the barn's first owner; email is what msg_send's to_emails takes). Answer what's blocking in those words: "2 waiting, Quinn Ortiz is still clocked in from Sat 9:00 PM, and Casey's Tuesday looks wrong". Hours only, never pay. The owner, or a manager with Pay.

staffing_pending_entries

ChatGPT
The approval queue: time entries waiting for a manager, oldest first, each with its flags (late_out, unscheduled, manual, auto_closed, break_expired — still on a break when the shift ended, so closed at the break's start…) and its breaks.

staffing_period_hours

ChatGPT
A pay period's hours per person, as the Time tab's Hours view shows them: hours by overtime week, regular, overtime, holiday (holiday_hours: Holiday worked, on a day on the barn's holiday calendar), holiday_paid_hours (Holiday paid: paid holidays for eligible staff, not worked, never overtime), time off and total, how many entries wait, volunteer_hours per person (a volunteer's time: no overtime, never in payroll), and each person's wages (Base and Secondary: their distinct hourly rates, with the work types at each and the hours worked at each; overtime and time off stay on the person). Approved and waiting entries count (approved_only for just approved); rejected and open ones never do. period: any day in it (ISO), the current one by default; person and work_type narrow it (names or ids). Hours only, never rates or pay. Managers only.

staffing_person_work_types

ChatGPT
The work types one employee can do. A person can do only the active work types assigned to them (on their Pay card), each at a rate of their own; a type's suggested rate is only what's filled in when assigning. Unassigned types aren't on their time clock or in their open shifts, and the schedule warns when they're put on one. Each active type with assigned, and with the pay permission their own_hourly_cents and the type's suggested hourly_cents. Assign with staffing_assign_work_type. Managers only.

staffing_preview_status_change

ChatGPT
What changing someone's employment status would do, step by step, without changing anything: the workflow that replaces archiving for anyone who works here or has employment history. kind: ended, leave, returned or rehired (default: what follows their status). day (ISO): ended, their last day worked; leave, the first day off; back or rehired, the first day back (default today). expected_return_on: leave only. The answer lists what it found: their shifts and standing shifts from that day, lessons they teach, open requests (offers, trades, "I can take it" answers, time off, cover requests), a running clock-in, entries waiting for approval, the pay period, paid time off balances in hours, whether they have a punch code, group conversations, calendar_links (how many live calendar links they have here), connected_apps (how many connected AI apps reach this barn), client_reasons (why a client login might fit: horses, a child, lessons, a balance) and archive_suggested; then choices with their defaults and plan, a line per thing that would happen and when (login, roles, punch code, conversations, calendar links, connected AI apps and archiving wait for a later day). choices takes: login (ended client|disable|keep; leave keep|pause; returned keep|enable; rehired keep|staff|instructor), works_here, is_instructor, shifts and series ({all, person_id, items: {id: {action, person_id}}}; shifts offer|cancel|assign|keep, series end|offer|assign|keep), lessons ({all, person_id, items}; reassign for good, cover for a substitute, remove when someone else also teaches, keep), cancel_requests, clock_out, approve_entry_ids, pto_paid_out (recorded on the note only; nothing is paid), retire_punch_code, leave_conversation_ids, turn_off_calendar_links and disconnect_ai_apps (this barn only; both default on when employment ends or the login is turned off or paused), note (private), eligible_for_rehire, archive, unarchive. Pick people for handovers from staff and instructors. Managers only. Then call staffing_change_employment_status with the same arguments.

staffing_pto_balances

ChatGPT
Paid time-off balances: the caller's own, or, for a manager, one person's (person_id). One per time-off policy (Vacation, Sick…): the balance in minutes, and available_on when the person is still in the policy's waiting period. Nobody but the person and the managers can see a balance.

staffing_rate_everyone_on_work_type

ChatGPT
Give everyone assigned a work type a new rate ("everyone on Barn Worker gets $17"), from effective_on (YYYY-MM-DD, today when left out). Rates are each person's own: this is the one way to change them together; the work type's suggested rate (staffing_update_work_type) changes nobody's pay. Call it first without confirm: nothing is saved and changes lists who goes from what to what; call again with confirm=true only after the person says yes. Notifies nobody. Needs the pay permission. Volunteers have no rate: they're skipped, and skipped_volunteers names them. hourly_cents is more than 0.

staffing_reject_entry

ChatGPT
Reject a time entry so it doesn't count toward payroll, with the reason the employee sees ("Mis-tap at the Time Clock; the 6:02 one is right"). Managers only; refused once its pay period is closed. Returns the entry's id, status and whose it is.

staffing_remind_round

ChatGPT
Remind people who aren't done with a request round (all of them, or person_ids), while it's open. Before confirming, say who and ask. Managers.

staffing_remove_timeclock_device

ChatGPT
Remove one of the barn's time clock devices: it stops taking punches at once and has to be paired again to come back (in the app, with a new code). device is its id or name. It cuts off a way people clock in, so call it first without confirm: nothing is changed and the answer names the device; call again with confirm=true only after the person says yes. Notifies nobody. Needs the settings permission.

staffing_rename_timeclock_device

ChatGPT
Rename one of the barn's time clock devices (the iPad or phone running the 1barn Time Clock app, or a computer at /clock): "iPhone Air" to "Tack room iPhone". device is its id or its current name. Only the label changes; it stays paired and keeps punching. Needs the settings permission.

staffing_reopen_period

ChatGPT
Reopen a closed pay period so its entries can be edited and approved again; the time off its close earned is taken back until it closes again. period: its start date (ISO). reason is required (3 to 200 characters) and stays on the period for the owner and managers with Pay to see: when the owner hasn't said why, ask them before proposing this. The owner only: when a manager asks, say only the owner can reopen it and offer to message them (staffing_pay_period_status's owner: msg_send to their email, drafted with the period and why, sent only on a yes). Notifies nobody.

staffing_request_time_off

ChatGPT
Ask for time off for the caller: ISO dates (ends_on defaults to starts_on), whole days unless both start_time and end_time (HH:MM) are given. policy (a time-off policy's name, like Vacation, or its id; see staffing_pto_balances) makes it paid from that balance; none means unpaid. The reason is seen only by managers. Requests sooner than the barn's notice are still taken, flagged short_notice. The managers get a notice. Returns the request, and for paid time off the suggested paid minutes (the caller's scheduled shifts then, or 8 hours a day) and the balance after.

staffing_round

ChatGPT
One request round with every person's answers: who's done, part-way or hasn't started, and what each asked for in its dates (time-off requests, availability changes, lesson times for its term). Managers.

staffing_rounds

ChatGPT
Request rounds open or closed in the last 60 days: a manager asking staff for time off and availability by a deadline. A manager sees every round with counts (done, part-way, not started); anyone else sees rounds they're asked in, with their own answers under mine (each part asked: added, none, or still open, and done_at).

staffing_set_availability

ChatGPT
Replace someone's weekly availability with blocks, wholesale: send the whole week, since every block they had is removed. Each block: {weekday: 0=Monday…6=Sunday or a day's name, start_time and end_time "HH:MM" (both null for all day; leave end_time null for "from then on"), kind: available | unavailable, starts_on?, ends_on? (ISO dates), note?}. An empty list clears it. The caller's own; a manager may name anyone. Shifts and lessons that cross it get a warning, never a refusal. Nobody is notified. Returns the blocks saved.

staffing_set_budget

ChatGPT
Replace the labor budget with these seasons, whole (read it first with staffing_budget and change only what was asked). Each season: name, start and end ("MM-DD", both included; may wrap the new year, e.g. Winter 10-01 to 04-30), and hours_per_week (the barn total), or with by_work_type work_types {work_type_id: hours a week}. Seasons can't overlap and must cover the year; hours in halves. seasons [] removes the budget. It applies to every week, past ones included. Call it first without confirm: nothing is saved, and the answer says what would change ("Winter goes from 150 h to 140 h a week"); tell the person, and call again with confirm=true only after they say yes. Nobody is notified. The owner, or a manager with the settings permission.

staffing_set_default_work_type

ChatGPT
Set an employee's default work type from effective_on (YYYY-MM-DD, today if not said); no work_type_id ends it. It must be one of the work types assigned to them (staffing_person_work_types). Without confirm it changes nothing and says what would change; call again with confirm=true only if they say yes. Managers only.

staffing_set_employment_status

ChatGPT
Record a change to someone's employment from a day on: kind is hired, leave, returned, ended or rehired; effective_on is an ISO date (today when left out; a later day schedules it). Ending someone takes them off the schedule's pickers and closes the time clock to them from that day; their past shifts, time and payroll stay. Leave keeps them listed, and new shifts for them warn. Nobody is notified. Managers only. Returns the record and warnings about shifts still on the schedule from that day.

staffing_set_employment_terms

ChatGPT
Change employment terms for one or more people from a day on: volunteer (true: Volunteer, false: Employee), works (full_time, part_time or not_set), holiday_pay (whether they get paid holidays) and holiday_hours (what each pays them, 8 by default, up to 24). A volunteer has no rates, earns no time off, gets no paid holidays, costs $0 and is left out of the payroll file; time before the day stays what it was. volunteer true turns paid holidays off in the same change; giving works, holiday_pay or holiday_hours with it is refused. volunteer false for a volunteer needs rates: [{work_type (name or id), hourly_cents}], one above 0 for each work type they're assigned that day (staffing_person_work_types), one person at a time. A time off balance stays as it is: 1barn never pays it out or zeroes it (a payout is staffing_adjust_pto with a note). people: names or ids, or "full_time" for everyone full-time that day (for "turn on paid holidays for all full-time staff"). effective_on: ISO date, today when left out; never inside a closed pay period. Only what's given changes. It changes what people are paid, so say who and from when and confirm first; dry_run true changes nothing and returns each person's review line ("Parker Wells: paid holidays on, 8.00 h. Next: Thanksgiving Day, Thu Nov 26"; "Maya Torres: volunteer until Oct 23, employee from Oct 24 · Barn chores $15.00/h"; going to Volunteer it also says rates_stopping, time_off_hours and still_needs_rates). Turning paid holidays on gives back approved time off on a paid holiday. Notifies nobody. Paid holidays, hours and volunteer need the pay permission; works any manager.

staffing_set_lesson_shift_span

ChatGPT
Add time before or after a lesson shift ("give Kayla 30 minutes after her lessons Thursday"). A lesson shift stays locked to the lessons; starts_at/ends_at (ISO datetimes with a timezone) are the whole span with the added time. An earlier start or later end makes or stretches an ordinary shift next to it in the person's default work type (or work_type_id), which can then be offered up, traded or cancelled on its own; a span back to the lesson shift's own times removes it. It can't go inside the lessons. Refused when the person has no default work type and none is given. Without confirm it changes nothing and says what would change; call again with confirm=true only if they say yes. Managers only. Returns the lesson shift with its parts.

staffing_set_preferences

ChatGPT
Set what someone would like, for whoever builds the schedule: ideal shifts a week (0–14) and a month (0–62), weekday_time and weekend_time (am, pm or either), and comments. Only the fields given change. The caller's own; a manager may name anyone. Nobody is notified.

staffing_set_shift_attendance

ChatGPT
Record what happened to a shift. outcome: - out_sick: the person can't come (note optional). An employee may mark only their own upcoming shift, and the managers get a notice. A manager may add post_replacement: an open copy of the shift goes in the pool and the people who could work it get a notice. - no_show: they didn't come or say (managers, once it has started). - late / not_late: set or clear late, with late_minutes if known (managers; a punch past the barn's grace marks it on its own). - clear: undo out_sick or no_show (managers). - cancel: the barn cancels it, before or after it starts, with an optional reason ("rained out"); it stays on the schedule struck through (managers; not lesson-calendar shifts). Cancelled, out-sick and no-show shifts send no reminders and aren't counted in scheduled hours; pay follows the time clock. Returns the shift (and the replacement when one was posted).

staffing_set_time_off_policy

ChatGPT
Add a time-off policy (no policy) or change one (policy: its id or name, staffing_time_off_policies). changes: any of name, accrual (none, per_hours_worked, per_period or annual), earn_minutes, per_minutes (per_hours_worked: e.g. 1800 earns earn_minutes per 30 hours worked), year_start ("MM-DD"), max_balance_minutes and carryover_minutes (null for no cap), waiting_days, allow_negative, applies_to ("all" or person ids) and active (false retires it; balances stay). Minutes, not hours (480 is 8 hours). Ledger rows already there stay; the new rule applies from the next accrual. It changes what time off people earn, so call it first without confirm: nothing is saved and the answer says each field before → after; call again with confirm=true only after the person says yes. Notifies nobody. The owner, or a manager with the settings permission.

staffing_set_time_off_work_type

ChatGPT
Set which of an employee's assigned work types pays their paid time off and paid holidays (work_type by id or name; null clears it). It changes what their days off pay, so call it first without confirm: nothing is saved and the answer says before → after; call again with confirm=true only after the person says yes. Notifies nobody. Needs the pay permission.

staffing_set_web_clock_in

ChatGPT
Make one employee the exception to the barn's "people may clock in from their phone" (the web and the phone app rather than only the barn's iPad): web_clock_in is default (follow the barn), allowed (they may, with the barn's No: any of their own scheduled, published shifts, inside the early-in window) or not_allowed (they may not, with the barn's Yes: the iPad only). Someone already clocked in from their phone can still take breaks and clock out there. It changes where someone may record paid time, so say who and what and confirm with the person first. Notifies nobody. Managers only. Returns their setting, the barn's (barn_web_clock_in), whether it's an exception (web_clock_in_exception) and what it comes to (web_clock_in_effective).

staffing_set_work_type_rate

ChatGPT
Give everyone assigned a work type a new rate ("everyone on Barn Worker gets $17"), from effective_on (YYYY-MM-DD, today when left out). Rates are each person's own: this is the one way to change them together; the work type's suggested rate (staffing_update_work_type) changes nobody's pay. Call it first without confirm: nothing is saved and changes lists who goes from what to what; call again with confirm=true only after the person says yes. Notifies nobody. Needs the pay permission. Volunteers have no rate: they're skipped, and skipped_volunteers names them. hourly_cents is more than 0.

staffing_settings

ChatGPT
The barn's staffing settings, as Settings › Staffing shows them, grouped by its pages: shifts_and_requests (lesson shifts; offered shifts, trades, time off notice and availability approval), time_clock (early and late allowances, what an earlier clock-in does, lateness, approval, rounding, the longest shift, web clock-in and clocking in without a shift) and pay (pay periods, overtime, holiday pay, which day weekend holidays are paid on and how time off is paid; only with the pay permission). Each field: value, label (the page's words), said (the value as the page says it) and means. can_change says whether the caller may change them (the owner, or a manager with the settings permission; pay's fields need pay too) with staffing_update_settings. Also who manages and the people set apart from the barn's web clock-in. Work types, holidays, time-off policies, time clock tablets and the labor budget have tools of their own. Managers only.

staffing_split_entry

ChatGPT
Split a time entry clocked in before its shift started (can_split_early in staffing_list_entries) at the shift's start: the part before becomes its own unscheduled entry, of a work type the person is assigned (work_type_id, one of the preview's work_types; ask which, never guess), added by hand like staffing_add_entry; the rest stays on the shift from its start, marked edited. Paid time in total doesn't change. Without confirm it changes nothing and returns the two parts and the work types to pick from; say the person, the times of both parts and the work, then call again with confirm=true and work_type_id. Refused when a break runs across the shift's start or the pay period is closed. Notifies nobody. Managers only. Returns both entries (before, after).

staffing_standing_shifts

ChatGPT
The standing shifts (weekly, set on the schedule) in effect on the day on (ISO date): for each, person_id and name, series_id, start and end ("HH:MM", barn time; an end at or before the start runs past midnight), minutes and the work type. Someone with none that day isn't listed: there's no guess from past weeks, so ask the person for the times and work type. Managers get everyone who can be scheduled then (person_id narrows to one); anyone else gets their own. Use it to suggest times before staffing_create_shift.

staffing_start_round

ChatGPT
Send a request round: ask staff for their time off (a span of days) and availability (a span) and, from instructors, their lesson times for a lesson term, by closes_at (ISO with its time zone). Everyone on the staff list, or person_ids. Each person answers each part (adding something, or "nothing to add"), then "I'm done"; the ones not done get one reminder the day before; only the sender hears when it closes. After that, time off asked for its dates is marked after the deadline. Before confirming, say who it goes to, what it asks and when it closes, and ask: everyone asked is notified.

staffing_suggest_holidays

ChatGPT
US holidays for a year on their real dates (barns work every day, so never the Friday or Monday a weekend holiday is observed on): New Year's Day, Martin Luther King Jr. Day, Presidents' Day, Easter Sunday, Memorial Day, Juneteenth, Independence Day, Labor Day, Indigenous Peoples' Day, Veterans Day, Thanksgiving Day, the day after Thanksgiving, Christmas Eve, Christmas Day and New Year's Eve. Each says whether it's one of the six most barns pay extra for (suggested), whether the barn already has a holiday that day (already, with existing_name), and the closed pay period it falls in (closed_period), which can't take one, whether it starts as a paid holiday (paid, true for the six) and its paid_day by the barn's weekend rule. Also the barn's default_multiplier. Changes nothing; add the ones the person picks with staffing_add_holidays.

staffing_time_off_pay

ChatGPT
One employee's "Time off paid as": the work type whose rate (their assignment's rate on each day off) pays their paid time off and paid holidays. qualifies says whether they have any (a time-off policy, or holiday pay now or later); assigned whether the type set is still theirs; choices their assigned types. Payroll pays $0, with a warning, when it isn't set. Needs the pay permission.

staffing_time_off_policies

ChatGPT
The barn's time-off policies (Vacation, Sick…): id, name, accrual (none, per_hours_worked, per_period or annual), earn_minutes (what each accrual earns), per_minutes (the worked minutes that earn it, per_hours_worked only), year_start (MM-DD), max_balance_minutes and carryover_minutes (null: no cap), waiting_days (before a new hire can use it), allow_negative, active, and for a manager applies_to ("all" or person ids). Managers see every one; anyone else on staff the active ones that apply to them.

staffing_timeclock_devices

ChatGPT
The barn's time clock devices (iPads and phones running the 1barn Time Clock app, or a computer at /clock): id, name, when it was paired, last seen, and locked_until (after five wrong codes the keypad locks a while; null when it isn't locked). Never a token or pairing code: a new device is paired in the app. Needs the settings permission.

staffing_unassign_work_type

ChatGPT
Take a work type away from an employee, from today or effective_on (YYYY-MM-DD): it leaves their time clock and open shifts; shifts and time they already have keep it. Call it first without confirm: nothing is saved and the answer says what changes; call again with confirm=true only after the person says yes. Notifies nobody. Needs the pay permission (a volunteer's, only a staffing manager: there's no rate).

staffing_unlock_timeclock_device

ChatGPT
Unlock a time clock device's keypad early, after five wrong codes locked it (the farrier's kid, not an attack). device is its id or name. Notifies nobody. The owner, or a manager with the settings permission (the devices are listed there).

staffing_update_entry

ChatGPT
Fix a time entry: its clock-in or clock-out (ISO with the barn's offset), its work type (staffing_work_types), its note (the employee sees it), and its breaks. breaks is the whole list, unpaid: [{id, started_at, ended_at}], each row from staffing_list_entries kept by its id, a new one without an id, and any row left out is deleted; the entry then pays their minutes added up (there's no typed break). Leave breaks out to keep them as they are. Each break must sit inside the clocked times, start before it ends and not overlap another. A clock-out on an entry still open clocks the person out. An approved entry stays approved, marked edited. Propose it with the person, the day, what changes and the hours before and after. Managers only; refused in a closed pay period. Returns the entry.

staffing_update_holiday

ChatGPT
Change one holiday in place: holiday is its id or its current date (ISO). Give a new date, name or multiplier (times the rate, 1 to 9); use_barn_rate true stores the barn's holiday rate as it is now. paid false makes it a premium only (nobody gets a paid day); paid_on (ISO) pays it on that day, kept as given, and paid_by_rule true stores the barn's weekend rule's day. Moving its date moves its paid day the same distance unless paid_on says another. Two paid holidays can't share a paid day: the refusal names the fix. Only what's given changes. Refused when the day is already a holiday, and when the old or new date (or paid day) is in a closed pay period, or the multiplier changes while it's in one (a rename is fine there). It changes what an open pay period pays, so confirm with the person first. Notifies nobody. Needs the settings permission.

staffing_update_settings

ChatGPT
Change any of the barn's staffing settings (read them first with staffing_settings, which lists every field, its values and what it means). changes: {field: new value}, only the fields asked about, e.g. {"early_in_rule": "prevent"} for "turn on Prevent early clock-ins" or {"early_in_minutes": 10} for "let people clock in 10 minutes early". Minutes stay minutes (max_shift_minutes 720 is 12 hours); work type fields take a name or id. early_in_rule: approve, actual or prevent (shift_start is gone: time worked is paid). It changes how the barn's time is counted, paid or handed off, so call it first without confirm: nothing is saved, and the answer lists each setting before → after ("Earlier than the allowance: allow and flag for approval (paid as punched) → prevent early clock-ins"), checked exactly as a save would be. Tell the person and call again with confirm=true only after they say yes. Changes apply from now on; nobody is notified. The owner, or a manager with the settings permission; pay periods, overtime, holiday pay and time off's rate need the pay permission too.

staffing_update_shift

ChatGPT
Change a shift on the schedule ("move Sam's Tuesday shift to 2pm"): another person (person_id), work type, times (ISO datetimes with a timezone), notes, or open=true to put it back in the pool with nobody on it. Only what's given changes. scope "following" changes this week and the later weeks of a standing or repeating shift too (a time change moves each by the same clock amount). Refused for a cancelled shift, a lesson-calendar shift (change the lessons), or one that would overlap the person's other shifts. A live offer or trade on a changed shift is cancelled and both people are told; in a barn that drafts, a published shift's change waits until it's published. Without confirm it changes nothing and says what would change; put that to the person and call again with confirm=true only if they say yes. Managers only. Returns the shift, how many changed (updated) and any warnings.

staffing_update_work_type

ChatGPT
Rename a kind of work, change its schedule color (#rrggbb) or its suggested hourly rate in cents (the pay permission). work_type is its id or name (staffing_work_types). The suggested rate is only what's filled in when someone is next assigned it: it changes nobody's pay (staffing_rate_everyone_on_work_type does that). With hourly_cents call it first without confirm: nothing is saved and the answer says the rate before → after; call again with confirm=true only after the person says yes. Archive with staffing_archive_work_type. Notifies nobody. The owner, or a manager with the settings permission.

staffing_withdraw_answer

ChatGPT
Take back the caller's "I can take it" on a pool shift, while no manager has assigned it. Nobody is notified.

staffing_work_types

ChatGPT
The barn's kinds of work (barn chores, lessons, office…): id and name, and for a manager the default hourly rate in cents.

support_ask_for_person

ChatGPT
Hand a support thread to a person at 1barn ("Talk to a person"): support@ is emailed with the conversation and an optional note. Does nothing more if a person already has it. Staff only.

support_close_thread

ChatGPT
Close a support thread the answer settled ("Yes, close it" in the app). A later reply reopens it. Staff only.

support_get_thread

ChatGPT
One support thread with every message (author, body, time; files by name only). Only a look: 1barn's replies stay unread (unread) until the thread is opened in the app. Staff only.

support_list_threads

ChatGPT
The barn's Help and support threads with 1barn, newest activity first: subject, status (open, waiting = 1barn replied and it's the barn's turn, closed), unread, whether a person at 1barn has it (escalated), and who wrote last (last_from: barn, assistant or staff, with last_author). Staff only.

support_open_thread

ChatGPT
Ask 1barn for help: opens a support thread and sends it to a person at 1barn (support@ is emailed), who replies in Help and support. The subject is the message's first line unless given. Show the user the message and confirm before sending; it goes to 1barn's team under their name. Staff only.

support_reply

ChatGPT
Reply in a support thread; it reopens if closed and goes to a person at 1barn. Confirm the text with the user before sending. Staff only.

website_add_section

ChatGPT
Add a section of type (text, price, gallery, quotes or events, the Booking section, as many as you like; one each of boarding, lessons, forms and contact) to the draft, after section after (default: before Contact), optionally with its fields (a booking section: shows, categories, types, event_id, show_photos, as in website_update_section; it starts showing everything). A text, price or booking section gets its own page. added is the new section's id.

website_changes

ChatGPT
What the draft changes from what visitors see, one line per thing ("Boarding: text edited, 1 photo added"), and whether the site was ever published.

website_check_subdomain

ChatGPT
Whether name could be the barn's web address (name.barn.page): lowercase letters, numbers and hyphens, 3 to 30 long, no hyphen at either end or two in a row, not reserved or taken by another barn. available, and reason when not; yours when it's one of this barn's own names. Reserves nothing.

website_draft

ChatGPT
Draft with Ask: write the website's draft from the barn's 1barn data (profile, facility, lessons, events, forms) and, with read_site, url and own_site (the person confirms that site is the barn's own; nothing is read without it), up to 40 pages and 30 photos of its current website (robots.txt honored). A job: about a minute; follow it with website_draft_status. It replaces the draft (never the public site) and counts as one Ask question, from the website's own 25 a month first. Without confirm nothing happens and the answer says what would; confirm=true only after the person says yes.

website_draft_status

ChatGPT
A Draft with Ask run: status (queued, working, ready, opened, failed, stopped), its steps, and when ready the summary (what came from 1barn, from the old site, what was left out, what to check).

website_get_site

ChatGPT
The barn's website at <subdomain>.barn.page: site.subdomain and url, status (draft, published or offline), theme (one of the 12 in themes, or custom), published_version and when, changes (one line per change since publishing, the Publish dialog's list), publishing (a version on its way), last_publish, old names that still redirect, next_rename_at, revision (pass it back to the editing tools), menu (the menu as the site draws it: pages and groups), photo_slots (photo slots and whether each is empty; publishing never waits for them), theme_warnings (a custom theme's color pairs under 4.5:1), and content: the draft, {schema_version, title, description, ga_measurement_id, menu_groups, book_now, custom_theme, sections: [{id, type, name, slug, visible, menu_group, ...}]}. A site is a home page plus a page per section with a slug. Section types: hero (always first), text, price, boarding, lessons, events (labeled Booking: live from 1barn, as many as you like, each with shows), gallery, quotes, forms (from 1barn), contact (address and phone from the barn profile). For booking sections: booking (the booking page's link, and per section shows_words, warnings (nothing_picked, event_passed, type_archived), link, hidden), event_types and upcoming_events (what types and event_id pick from). schema lists each type's fields and limits; leave it out with include_schema false. Also profile (what the site reads from the barn profile), billing (the add-on: on, trial, price), ask (website questions left) and draft_job (the latest Draft with Ask run). Works without the add-on (entitled false). Owner and managers with the Settings permission.

website_move_section

ChatGPT
Move a section up or down one place among the sections on the site (the home banner stays first). Draft only.

website_publish

ChatGPT
Publish the draft as the barn's public website, replacing what visitors and search engines see (or bringing an offline site back). Without confirm nothing changes and the answer lists the changes since the last publish; call again with confirm=true only after the person says yes. Then the version is queued and goes live within seconds (website_get_site's publishing, then published_version). The answer without confirm also lists a custom theme's warnings (pairs under 4.5:1), photos_to_add and notes (a font change, booking sections left off); none blocks. Booking sections' times are live already.

website_remove_section

ChatGPT
Remove a section from the draft, its text and photos with it (hiding keeps them: website_set_section_visible). The home banner and Contact can't be removed. Without confirm nothing changes and the answer says what would; confirm=true only after the person says yes.

website_rewrite

ChatGPT
Rewrite a section's text (HTML) with Ask: mode shorter, friendlier or spelling. Returns the new text and saves nothing (put it in with website_update_section if the person wants it). Half an Ask question, from the website's own first.

website_rollback

ChatGPT
Put an earlier version (a number from website_versions) back live for every visitor, at once. The draft isn't changed. Without confirm nothing changes and the answer says what would; confirm=true only after the person says yes.

website_search_fonts

ChatGPT
Google Fonts families for a custom theme (the daily cached catalog, most popular first): query in the name, category serif, sans-serif, display, handwriting or monospace. Each with its weights; display and handwriting families are headings_only (hard to read in paragraphs). partial true: only the themes' own families are listed until the catalog is cached. Reads only.

website_set_details

ChatGPT
The site's title (60 characters or fewer shows whole in Google) and description (160 or fewer) for search and shared links, the barn's own Google Analytics measurement ID (G- then letters and digits; "" for none): with one set, the site shows a cookie notice and loads Google's tag only after a visitor accepts; and book_now, where the header's Book now and the home banner's first button go: "booking_page" (the barn's full booking page, the default) or the id of a booking section with its own page. Leave one out to keep it. Draft only.

website_set_menu_groups

ChatGPT
The site menu's groups, in order (one level, up to 10; each a name of 40 characters at most, unique ignoring case): "Programs" keeps that group and its sections, {name: "Our programs", from: "Programs"} renames it with its sections. A group left out puts its sections at the top level. A section joins a group with website_update_section's menu_group. On the site a group is a menu label with a dropdown (a heading in the phone menu and the footer); a group with one page shows that page at the top. Draft only.

website_set_section_visible

ChatGPT
Show a section on the site or hide it; a hidden one keeps its content. The home banner is always on. Draft only: the public site changes with website_publish.

website_set_subdomain

ChatGPT
Make name the barn's web address (name.barn.page). On a published site this moves the public website at once: the old address redirects to the new one and is held for the barn for 12 months. Once a site has been published its address changes at most once every 30 days (next_rename_at says when); going straight back to the name it just replaced, the same day, is allowed. Without confirm nothing changes and the answer says what would; call again with confirm=true only after the person says yes.

website_set_theme

ChatGPT
Pick the site's theme. prairie (a full photo, the words low on it, Lora and Lato: family barns), paddock (photo beside the words, Plus Jakarta Sans: any barn), arena (condensed capitals on a deep band, Barlow: training barns), huntclub (a matted photo, Libre Baskerville: hunter/jumper), sagebrush (slab capitals in a stitched frame: western, ranch), meadow (a quiet centered serif, Newsreader: modern, minimal), homestead (an arched photo, Alegreya: rustic farmhouse), harbor (classical capitals, Marcellus: equestrian clubs), ponyclub (round letters, raised buttons, Fredoka: kids' riding schools), tackroom (dark leather, Playfair Display: luxury), opengate (Open Sans a size larger, big buttons: community and therapeutic riding), crosscountry (a slanted photo, Manrope over Figtree: eventing). Every theme reads the same sections, uses the barn's color and logo (fitted to read) and its own fonts. theme "custom" with custom {base: a theme key, colors: {background, panel, text, heading, accent, button} as hex (accent and button may be null: they follow the barn color), fonts: {heading: {family, weight}, body: {family}} (Google Fonts families; website_search_fonts)} sets the site's one custom theme (replacing any earlier one): the base's layout and treatments in those colors and fonts. Pairs under 4.5:1 come back in site.theme_warnings, never refused (website_suggest_palettes gives palettes that pass). Picking another theme keeps the custom one; discard_custom drops it. Draft only.

website_start_over

ChatGPT
Start the draft over from 1barn's data (Start blank): Home, Coming up (a booking section), Lessons, Forms and Contact on, the rest hidden with a line to replace. Replaces the draft (not the public site). Without confirm nothing changes; confirm=true only after the person says yes.

website_suggest_palettes

ChatGPT
Three custom-theme palettes from one color (hex; often the barn color): Light, Warm paper and Dark, worked out in OKLCH, each with background, panel, text, heading, accent and button, and every pair 4.5:1 or better (pairs). Pass one's colors to website_set_theme's custom. Reads only.

website_take_offline

ChatGPT
Take the barn's public website offline: every address shows a short "this site is resting" page with the barn's phone until it's published again. The draft, the address and every version are kept. Without confirm nothing changes and the answer says what would; confirm=true only after the person says yes.

website_update_content

ChatGPT
Replace the website's whole draft with content (as website_get_site returns it; keep each section's id). For one change, the section tools are simpler. Rich text fields are HTML, cleaned to a short allowlist. Pass the revision you read so a save made meanwhile isn't overwritten (refused as stale). The public site doesn't change until website_publish.

website_update_section

ChatGPT
Change some fields of one section of the draft: fields is {field: value} for the section's type (schema: heading, body (HTML), eyebrow, button_label, name, nav_label, slug (its page's address, '' for home only), menu_group (one of content.menu_groups, null for the top level; only with a slug), photos [{document_id, alt, focal: {x, y} 0 to 1, the part every crop keeps}], prices, amenities, offers, quotes, show_form…). A booking section (type events): shows (all, categories, types or event), categories (names), types (event type ids from website_get_site's event_types), event_id (one event or bookable from upcoming_events), home_max (rows on the home page), show_photos (each type's photo beside its rows). The public site waits for website_publish; booking times are live.

website_versions

ChatGPT
The website's published versions, newest first: number, status (queued, publishing, ready, failed), live, the address it was made for, its pages, file count and size, who published it and when, and the error of a failed one. Any ready version can be put back with website_rollback.

Capabilities

Writes

Example Prompts

Click any prompt to copy it.

Similar Apps