# API: Childcare

| Method | Path | What it does | Scope |
|---|---|---|---|
| DELETE | `/v1/mkt/care/absences/:id` | Undo an absence (the child is expected after all) | `care:write` |
| POST | `/v1/mkt/care/announcements` | Write an announcement to a program's or a site's families: preview first (how many guardians, the words), then queue it (site leads and admins; 3 a site a day; only if announcements are on) | `care:write` |
| POST | `/v1/mkt/care/assistant/billing-questions` | Ask about your billing in plain words (owners, admins and staff with billing access; the billing questions switch). The answer quotes your billing reports; the assistant can't charge, refund, post, write off or message anyone | `care:read` |
| GET | `/v1/mkt/care/assistant/drafts` | The assistant's open drafts about a child's day, a child, a family's message or an inquiry (for staff who may see it; drafts expire after 7 days) | `care:read` |
| POST | `/v1/mkt/care/assistant/drafts/:id/approve` | Approve a draft as written or edited: a daily report is filed as the child's report for that day (the family sees it in their view); an observation is saved unshared with the standards you pick. Replies are sent from the conversation or the inquiry | `care:write` |
| POST | `/v1/mkt/care/assistant/drafts/:id/discard` | Discard one of the assistant's drafts (nothing is filed or sent) | `care:write` |
| GET | `/v1/mkt/care/assistant/handbook` | Your handbook as the assistant reads it: each section with its version (families never see this page) | `care:read` |
| PUT | `/v1/mkt/care/assistant/handbook` | Save your handbook (owners and admins): paste its text with a heading for each section (hours, closures, illness policy, what to pack, fees in words, pickups). Each section is versioned; sections you leave out are archived | `care:write` |
| GET | `/v1/mkt/care/audit/restricted-reads` | Which children's medical, custody, photo or other restricted notes one person opened in a time window, by field, with their families (owners, signed in; never the notes themselves; each look recorded) | `children:read` |
| GET | `/v1/mkt/care/billing/accounts` | Families' billing accounts with balances (cursor-paginated, at most 100 a page): filter to overdue, without autopay, or with a failed payment method. Family names only for people in the app or keys with the children scope. | `tuition:read` |
| POST | `/v1/mkt/care/billing/accounts` | Open a family's billing account (or return the one it has); filing only, it charges no one | `tuition:write` |
| GET | `/v1/mkt/care/billing/accounts/:id` | One family's account: balance, payers and their shares, payment methods (brand and last 4 only), autopay, open invoices and the ledger (by family or by one child) | `tuition:read` |
| POST | `/v1/mkt/care/billing/accounts/:id/charges` | Put a fee on a family's account (registration, a deposit, supplies) or an adjustment with a reason; it appears on their next invoice | `tuition:write` |
| POST | `/v1/mkt/care/billing/accounts/:id/deposits/:entryId/apply` | Apply a family's held deposit to their account (usually their last invoice), in the app | `tuition:write` |
| POST | `/v1/mkt/care/billing/accounts/:id/payers` | Add a payer to a family's account: another guardian, an employer or another payer | `tuition:write` |
| PUT | `/v1/mkt/care/billing/accounts/:id/shares` | Split a family's charges between its payers from a date (percent, a fixed amount, and one who pays the rest) | `tuition:write` |
| GET | `/v1/mkt/care/billing/accounts/:id/statement` | A family's statement for a period: opening balance, each line, closing balance (JSON or PDF) | `tuition:read` |
| PUT | `/v1/mkt/care/billing/autopay/exemptions/:accountId` | Excuse a family from required autopay, with a reason and an end date (owners and admins) | `tuition:write` |
| POST | `/v1/mkt/care/billing/autopay/resume` | Let autopay go ahead today after it didn't run for a few days (in the app) | `tuition:write` |
| GET | `/v1/mkt/care/billing/children` | Children at a site with the rate each is billed on (or none yet), for putting children on rates (at most 200 a page) | `tuition:read` |
| PUT | `/v1/mkt/care/billing/closures/:siteId` | Set a site's closed days (holidays): credited on monthly and weekly tuition when the setting says so | `tuition:write` |
| POST | `/v1/mkt/care/billing/discounts` | Add a discount: sibling, staff, scholarship or your own, as a percent or an amount | `tuition:write` |
| POST | `/v1/mkt/care/billing/enrollments` | Put a child on a rate: which days they come, from when (and until when). Bills from the next run; never bills past periods by itself. | `tuition:write` |
| PATCH | `/v1/mkt/care/billing/enrollments/:id` | End a child's billing on a date (withdrawal, in the app): the next run prorates | `tuition:write` |
| POST | `/v1/mkt/care/billing/enrollments/bulk` | Put several children on a rate at once (in the app): the days they come and from when. Each is billed from the next run. | `tuition:write` |
| POST | `/v1/mkt/care/billing/exports` | Export the general ledger for your accounting software (CSV, QuickBooks Desktop IIF, QuickBooks Online journal entries, or a Xero manual journal). Family names only if an admin chooses them. | `tuition:write` |
| POST | `/v1/mkt/care/billing/fees` | Add a fee you charge: registration, a deposit, supplies, an activity | `tuition:write` |
| POST | `/v1/mkt/care/billing/invoices/:id/void` | Void an invoice with a reason (in the app): its lines are reversed and anything paid on it stays as a credit | `tuition:write` |
| PUT | `/v1/mkt/care/billing/late-fees/:which` | Turn a late pick-up or late payment fee on (with its rule) or off (owners and admins, in the app). It applies only to what happens after it's turned on; fees are proposed for a person unless auto-post is on. | `tuition:write` |
| GET | `/v1/mkt/care/billing/overview` | Billing at a glance: what's due, overdue by age, failed payments by kind, disputes, runs and reviews waiting. Totals and counts only, no names. | `tuition:read` |
| POST | `/v1/mkt/care/billing/payments` | Record a payment taken at the desk (cash or a check): applied to the family's oldest invoices first | `tuition:write` |
| POST | `/v1/mkt/care/billing/payments/:id/refund` | Refund a payment (owners, admins and billing staff, in the app): by card or bank through your Stripe account, or as a credit on the family's account | `tuition:write` |
| POST | `/v1/mkt/care/billing/payments/turn-off` | Turn card and bank payments off (owners): no new charges or checkouts; families keep their records. | `tuition:write` |
| POST | `/v1/mkt/care/billing/payments/turn-on` | Turn on card and bank payments on your own Stripe account (owners, in the app). It charges and messages no one: families add a payment method or autopay themselves. | `tuition:write` |
| GET | `/v1/mkt/care/billing/rates` | Your price list: tuition rates (monthly, weekly, daily, hourly), discounts and fees | `tuition:read` |
| POST | `/v1/mkt/care/billing/rates` | Add a tuition rate (owners, admins and billing staff) | `tuition:write` |
| POST | `/v1/mkt/care/billing/rates/:id/archive` | Retire a rate (enrollments on it keep it until moved to another) | `tuition:write` |
| GET | `/v1/mkt/care/billing/reviews` | What waits for a person: autopay charges held over a limit, and proposed late fees | `tuition:read` |
| POST | `/v1/mkt/care/billing/reviews/:id` | Decide a held autopay charge or a proposed late fee (in the app): charge or post it, or waive it | `tuition:write` |
| GET | `/v1/mkt/care/billing/runs` | Invoice runs: previews waiting to be posted and runs posted (totals and counts) | `tuition:read` |
| POST | `/v1/mkt/care/billing/runs` | Prepare an invoice run's preview for a period (monthly, weekly, or check-ins billed after): every line and total, and any problems. It posts nothing. | `tuition:write` |
| POST | `/v1/mkt/care/billing/runs/:id/discard` | Discard a run's preview | `tuition:write` |
| GET | `/v1/mkt/care/billing/runs/:id/families` | A run family by family: each family's lines and total in a preview, or the invoice each got once posted (50 families a page) | `tuition:read` |
| POST | `/v1/mkt/care/billing/runs/:id/post` | Post a previewed run (in the app): the lines and the families' invoices. If something changed since the preview, it shows the new preview instead. | `tuition:write` |
| GET | `/v1/mkt/care/billing/settings` | Billing settings: invoice day, proration, autopay rules and limits, who pays card and bank fees, our fee per payment, late fees, the details on tax statements, and the accounting codes | `tuition:read` |
| PUT | `/v1/mkt/care/billing/settings` | Change billing settings (owners and admins, in the app) | `tuition:write` |
| GET | `/v1/mkt/care/billing/setup` | What's left to set up billing: rates, children on rates, your Stripe account, payments, the first invoices | `tuition:read` |
| GET | `/v1/mkt/care/billing/tax-statements/:year` | A year's statements, drafts and published: who each is for, the total and whether families see it yet (at most 200 a page) | `tuition:read` |
| GET | `/v1/mkt/care/billing/tax-statements/:year/:id/pdf` | One family's year-end statement as they see it (PDF), to check before publishing | `tuition:read` |
| POST | `/v1/mkt/care/billing/tax-statements/:year/prepare` | Prepare (or refresh) a year's tax statements as drafts families don't see yet (in the app: a change to a published one is a corrected statement, published at once) | `tuition:write` |
| POST | `/v1/mkt/care/billing/tax-statements/:year/publish` | Publish a year's tax statements to families (in the app); emails only if that message is on | `tuition:write` |
| GET | `/v1/mkt/care/booking-embeds` | Your booking pages for your own website: the site each shows, the websites allowed to show it, the snippet to paste, and today's link requests | `care:read` |
| POST | `/v1/mkt/care/booking-embeds` | Make a booking page for your own website (owners and admins): one site or every site, and the https websites allowed to show it (at most 5) | `care:write` |
| DELETE | `/v1/mkt/care/booking-embeds/:id` | Take a booking page down for good (its snippet stops working at once) | `care:write` |
| PUT | `/v1/mkt/care/booking-embeds/:id` | Change which websites may show a booking page, or turn it off and on (owners and admins) | `care:write` |
| GET | `/v1/mkt/care/children/:id` | A child (name, age, flags) with their pickup list (names only, and who may not collect them) | `children:read` |
| PUT | `/v1/mkt/care/children/:id/activity-photo-consent` | Record a guardian's consent to photos of the day for a child (given on paper or in person, with their name), or its withdrawal (which deletes the child's photos of the day) | `care:write` |
| PUT | `/v1/mkt/care/children/:id/activity-video-consent` | Record a guardian's consent to videos of the day for a child (given on paper or in person, with their name), or its withdrawal (which deletes the child's videos) | `care:write` |
| GET | `/v1/mkt/care/children/:id/daily-sheet` | A child's daily sheet for a day (today by default): meals, bottles, naps, diapers, activities, mood, notes, medication given and photos of the day, for staff of the site | `children:read` |
| GET | `/v1/mkt/care/children/:id/immunizations` | A child's immunization record against the state's schedule: doses, what's due, any exemption, and the certificate (site leads and admins; each opening is recorded) | `children:read` |
| PUT | `/v1/mkt/care/children/:id/immunizations` | Record a child's doses, that you saw the certificate (and its scan), or an exemption the state allows with its expiry and document (site leads and admins) | `care:write` |
| POST | `/v1/mkt/care/children/:id/leave` | Mark a child as having left your organization: their notes and photo are deleted after 90 days; attendance stays for its own period | `care:write` |
| PUT | `/v1/mkt/care/children/:id/meal-category` | Record a child's meal-program eligibility category (free, reduced-price or paid) for a site that claims CACFP; never income (site leads and admins) | `care:write` |
| POST | `/v1/mkt/care/children/:id/observation-draft` | Turn a teacher's note into a draft observation with up to three of the state's standards suggested (the observation drafts switch). The teacher picks, edits and saves it | `care:write` |
| GET | `/v1/mkt/care/children/:id/observations` | A child's observations, newest first (50 at a time), with notes, standards, milestones and whether each is shared; reading them is recorded | `children:read` |
| POST | `/v1/mkt/care/children/:id/observations` | Write an observation of a child's learning: a short note (kept sealed), the state's indicators it shows, milestones seen, and up to 4 of today's photos or videos of the child. Share it to put it in the family's portfolio | `care:write` |
| POST | `/v1/mkt/care/children/:id/pickups` | Add someone who may collect a child, or someone who may not (a custody order: staff are alerted, never told to release) | `care:write` |
| GET | `/v1/mkt/care/children/:id/placements` | A child's home rooms over time: the room, days and dates | `children:read` |
| POST | `/v1/mkt/care/children/:id/placements` | Place a child in a room from a date (a move ends the current placement the day before) | `care:write` |
| PUT | `/v1/mkt/care/children/:id/provider-own` | Mark a child as your own (the provider's), for the states that count a provider's own children toward a home's limit | `care:write` |
| POST | `/v1/mkt/care/children/:id/report-draft` | Draft a child's daily report from the day's sheet (staff of the child's site; the daily report drafts switch). A teacher edits and approves it before it's filed | `care:write` |
| GET | `/v1/mkt/care/children/:id/restricted` | A child's medical and allergy notes, custody notes and photo, for staff of a site the child is at this week (each look is recorded) | `children:read` |
| PUT | `/v1/mkt/care/children/:id/restricted` | Set a child's medical notes, custody notes or photo (a photo needs the guardian's consent, recorded here) | `care:write` |
| PUT | `/v1/mkt/care/children/:id/subsidy` | Mark a child as paid for by a state subsidy program, with the case or authorization number the state gives (kept sealed), or clear it (site leads and admins) | `care:write` |
| GET | `/v1/mkt/care/children/:id/subsidy-authorizations` | A child's subsidy authorizations: agency, the last 4 of the case number, units approved, rate, co-pay and dates (billing access) | `care:read` |
| POST | `/v1/mkt/care/children/:id/subsidy-authorizations` | Record a child's subsidy authorization: the agency, site, case number (kept sealed), units approved, rate, the family's co-pay and the dates. A rate or co-pay change is a new authorization from its first day | `care:write` |
| GET | `/v1/mkt/care/children/:id/visits` | A child's recent check-ins and check-outs (the attendance record), newest first, at most 100 | `children:read` |
| POST | `/v1/mkt/care/conversation-messages/:id/reply-draft` | Suggest a reply to a family's message from your handbook, citing the sections used (the handbook replies switch). Questions about a child, health, medicine, custody, pickups, a balance or a complaint stay with staff, with no suggestion | `care:write` |
| GET | `/v1/mkt/care/conversations` | Conversations with families at your sites, newest first: the family, site, room, who wrote last and when, and unread counts (never the words) | `care:read` |
| POST | `/v1/mkt/care/conversations/:id/close` | Close a conversation (the family can start a new one; a reply reopens it) | `care:write` |
| GET | `/v1/mkt/care/conversations/:id/messages` | Read a conversation with a family, newest first (50 at a time); each opening is recorded | `care:read` |
| POST | `/v1/mkt/care/conversations/:id/messages` | Reply to a family (they're told there's a reply when that message kind is on, after their quiet hours) | `care:write` |
| GET | `/v1/mkt/care/conversations/summary` | Counts of conversations with families at your sites: open, waiting for a reply, and how long the oldest has waited (no names, no words) | `care:read` |
| DELETE | `/v1/mkt/care/doors/:id` | Remove a door (its log stays for its period) (owners and admins) | `care:write` |
| PATCH | `/v1/mkt/care/doors/:id` | Change a door: its name, lock id, what opens it, on or off (owners and admins) | `care:write` |
| POST | `/v1/mkt/care/doors/:id/open` | Open a door now, as a signed-in staff member of its site (a door staff may open; ceilings and the policy apply; logged) | `care:write` |
| GET | `/v1/mkt/care/doors/settings` | Door settings: on or off, the lock vendor, whether a key is saved (never the key) and the opens a day (owners and admins) | `care:read` |
| PUT | `/v1/mkt/care/doors/settings` | Turn doors on or off, choose the lock vendor, save its API key (write-only) and set the opens a day (owners, in the app) | `care:write` |
| DELETE | `/v1/mkt/care/enrollments/:id` | Take a child off a program's roster (their attendance stays) | `care:write` |
| GET | `/v1/mkt/care/expected` | The children expected today in the rooms you're on shift in, first names only, for check-in | `care:read` |
| POST | `/v1/mkt/care/family-links/bulk` | Invite every family to the family view at once: preview who would get an email, then send (first invitations last 7 days; one email an address; at most 200 a day) | `care:write` |
| GET | `/v1/mkt/care/form-submissions/:id` | A family's filled form with its answers and signature, for staff with the family's full record (each look is recorded); print it from the app for a paper copy | `children:read` |
| GET | `/v1/mkt/care/form-submissions/:id/pdf` | A family's filled and signed PDF, for the staff who may open its answers (each look is recorded) | `children:read` |
| GET | `/v1/mkt/care/forms` | Your forms and waivers: fields, a waiver's text, signature, how long each is good for, and whether check-in needs it | `care:read` |
| POST | `/v1/mkt/care/forms` | Write a form or waiver (owners and admins): its fields, text, signature, how many months it's good for, and whether check-in needs it | `care:write` |
| PUT | `/v1/mkt/care/forms/:id` | Change a form (a new version: families who filled the old one keep it, marked as an earlier version) or archive it (owners and admins) | `care:write` |
| DELETE | `/v1/mkt/care/forms/:id/pdf` | Take the PDF off a form (owners and admins); signed copies families already made are kept | `care:write` |
| GET | `/v1/mkt/care/forms/:id/pdf` | The form's blank PDF as uploaded, or with `preview=true` filled with sample words in each box so you can check where they land | `care:read` |
| PUT | `/v1/mkt/care/forms/:id/pdf` | Attach your own PDF to a form (owners and admins; at most 2 MB and 30 pages, not password-protected). Families still fill the form here; their answers and signature are written onto the PDF. Replacing it makes a new form version and clears the field positions. | `care:write` |
| PUT | `/v1/mkt/care/forms/:id/pdf-fields` | Place the form's fields, the signature, the signer's name, the date and the child's name on its PDF: boxes in fractions of the page from its top-left (owners and admins; a new form version) | `care:write` |
| POST | `/v1/mkt/care/forms/:id/submissions` | Record a family's form (filled on paper or the front-desk tablet): answers, who signed, and the signature if the form asks | `care:write` |
| PATCH | `/v1/mkt/care/guardians/:id` | Change a guardian's relationship, phone, email or language (their name stays: add a new guardian for a different person) | `care:write` |
| DELETE | `/v1/mkt/care/guardians/:id/family-access` | End a guardian's access to the family view (every open session ends now) | `care:write` |
| POST | `/v1/mkt/care/guardians/:id/invite` | Email a guardian a sign-in link to their family's view (works once: a first invitation within 7 days, a later link for 30 minutes; a new link ends the old one; at most 3 a guardian a day) | `care:write` |
| POST | `/v1/mkt/care/hours/clock` | Clock in or out, or start or end a break, on your own phone with the code the site's kiosk shows (scan it, or type it) (when your organization turned the phone clock on). 5 wrong codes in 10 minutes pause it for 10 minutes | `care:write` |
| GET | `/v1/mkt/care/hours/corrections` | Corrections waiting: your own, or as a site lead your sites' staff's (owners and admins: all), newest first (up to 100 a page; next_cursor for more) | `care:read` |
| POST | `/v1/mkt/care/hours/corrections` | Ask your site lead to correct your own punches: a missing punch, or a wrong time on one (it shows on their list; nothing is sent) | `care:write` |
| POST | `/v1/mkt/care/hours/corrections/:id/decide` | Accept a correction (it becomes the punch, with the person's note as the reason) or decline it with a note | `care:write` |
| GET | `/v1/mkt/care/hours/me` | Your own clock: whether you're clocked in or on a break, your choices, and this pay period's hours so far | `care:read` |
| POST | `/v1/mkt/care/hours/payroll-export` | Download a pay period's approved hours as a file for your payroll provider (Gusto, ADP Workforce Now or a plain CSV; owners and admins, signed in). Each download is recorded; nothing is sent to the provider | `care:write` |
| POST | `/v1/mkt/care/hours/punches` | Enter a punch for a staff member who couldn't clock (forgot, the kiosk was down), with the reason (site leads for their sites, owners and admins). It doesn't move anyone between rooms | `care:write` |
| POST | `/v1/mkt/care/hours/punches/:id/edit` | Correct a punch's time (or break kind), with the reason. The original stays, struck through, beside the correction | `care:write` |
| POST | `/v1/mkt/care/hours/punches/:id/void` | Strike out a punch made by mistake, with the reason (it stays on the record, struck through) | `care:write` |
| GET | `/v1/mkt/care/hours/settings` | The time clock's settings: whether the clock and the phone clock are on, the workweek, rounding, breaks, the pay period and the payroll file, with each site's overtime rule and its source | `care:read` |
| PUT | `/v1/mkt/care/hours/settings` | Change the time clock's settings (owners and admins, signed in). The clock and the phone clock stay off until turned on here | `care:write` |
| GET | `/v1/mkt/care/households` | Find a family to check in: by name, family number or the last 4 digits of a phone (at most 20), or list families by name (at most 50), with each child's first name, age and flags | `children:read` |
| POST | `/v1/mkt/care/households` | Add a family by hand (most come from a roster file) | `care:write` |
| GET | `/v1/mkt/care/households/:id` | A family: its children (names, ages, flags), guardians and each child's pickups | `children:read` |
| POST | `/v1/mkt/care/households/:id/children` | Add a child to a family; the family's guardians become the child's authorized pickups | `care:write` |
| POST | `/v1/mkt/care/households/:id/conversations` | Start a conversation with a family at one of your sites (or a room of it, when room conversations are on) | `care:write` |
| GET | `/v1/mkt/care/households/:id/forms` | A family's forms and waivers: each one's status (current, expiring, expired, missing), who signed and when (not the answers) | `children:read` |
| POST | `/v1/mkt/care/households/:id/guardians` | Add a guardian to a family; they become an authorized pickup for each of its children | `care:write` |
| GET | `/v1/mkt/care/immunizations/schedule/:state` | A state's child-care immunization requirements by age, the exemptions it allows, its grace period, certificate and annual report, with sources (no children) | `care:read` |
| POST | `/v1/mkt/care/imports` | Import families from a roster file (CSV): preview first, then file them. Nothing is sent to anyone | `care:write` |
| POST | `/v1/mkt/care/imports/mapping` | Suggest how another tool's export's columns map onto ours (one row per child or per family), with what's missing and any columns we refuse. Nothing is filed | `care:write` |
| POST | `/v1/mkt/care/imports/staff` | Import staff from another tool's staff export (CSV): names, with a role suggested from the job title; preview first. Email and title aren't kept, and nobody is invited or messaged (owners and admins) | `care:write` |
| GET | `/v1/mkt/care/incidents/:id` | An incident with what happened, for staff of its site (each look is recorded) | `children:read` |
| POST | `/v1/mkt/care/incidents/:id/acknowledge` | The guardian acknowledges an incident report (at pickup): their name and, if they sign, a signature drawn on the screen | `care:write` |
| POST | `/v1/mkt/care/incidents/:id/guardian-told` | Record that the guardian was told about an incident: how and when | `care:write` |
| GET | `/v1/mkt/care/inquiries` | Inquiries from prospective families at your sites, by stage (waitlisted in their order), newest change first | `children:read` |
| POST | `/v1/mkt/care/inquiries` | Record an inquiry a family made by phone, in person or by referral (nothing is sent to them unless that message is on) | `care:write` |
| DELETE | `/v1/mkt/care/inquiries/:id` | Delete an inquiry and everything about it at once (when a family asks; a family that applied keeps its own records) | `care:write` |
| GET | `/v1/mkt/care/inquiries/:id` | One inquiry: the family, the children, the stages it went through, its tours, the family's message and your notes (each opening is recorded) | `children:read` |
| PUT | `/v1/mkt/care/inquiries/:id` | Move an inquiry to another stage (closing says why; Toured records its latest tour that has happened as attended), or change your notes | `care:write` |
| POST | `/v1/mkt/care/inquiries/:id/application` | Start an application: makes the family (household, guardian, the children already born) so you can invite them to their family view and its forms. Sends nothing | `care:write` |
| POST | `/v1/mkt/care/inquiries/:id/email` | Email the family from this inquiry (your words; at most 2 emails a prospective family a day, within your organization's daily limit) | `care:write` |
| POST | `/v1/mkt/care/inquiries/:id/enroll` | Enroll: place each of the family's children in a room from a start date (and days of the week) | `care:write` |
| POST | `/v1/mkt/care/inquiries/:id/reply-draft` | Draft a first reply to an inquiry: your openings for the children's ages and up to three tour times (the inquiry drafts switch). Staff edit and send it; booking a tour stays your click. It never promises a place, a date or a price | `care:write` |
| POST | `/v1/mkt/care/inquiries/:id/tours` | Book a family on a tour time (the confirmation goes only if that message is on) | `care:write` |
| GET | `/v1/mkt/care/inquiry-embeds` | Your inquiry forms for your own website: the site each is for, the websites allowed to show it, whether it offers tours, the snippet, and today's submissions | `care:read` |
| POST | `/v1/mkt/care/inquiry-embeds` | Make an inquiry form for a site, for your own website (owners and admins): the https websites allowed to show it (at most 5) and whether families can book a tour on it | `care:write` |
| PUT | `/v1/mkt/care/inquiry-embeds/:id` | Change an inquiry form's websites or tours, turn it off and on, or take it down for good (owners and admins) | `care:write` |
| GET | `/v1/mkt/care/kiosk` | Whether this device is a check-in kiosk, and for which site | `care:read` |
| POST | `/v1/mkt/care/kiosk` | Turn this device into the check-in kiosk for one of your sites (web sign-in only; needs a kiosk PIN set; at most 14 hours) | `care:write` |
| POST | `/v1/mkt/care/kiosk/clock` | Staff clock at the kiosk: the clock PIN alone shows the person's state and choices; with an action it clocks in (with a room), starts or ends a break, or clocks out. 5 wrong PINs in 10 minutes pause the kiosk's clock for 10 minutes | `care:write` |
| GET | `/v1/mkt/care/kiosk/clock-code` | The code this kiosk shows for staff clocking in on their phones (it changes every 2 minutes) | `care:read` |
| POST | `/v1/mkt/care/kiosk/exit` | Leave the check-in kiosk with the staff PIN (5 wrong PINs in 10 minutes lock that kiosk for 10 minutes) | `care:read` |
| GET | `/v1/mkt/care/learning/milestones` | Developmental milestones by age (the CDC's): recorded only as seen, never as a concern; the product never flags a delay | `care:read` |
| GET | `/v1/mkt/care/learning/standards` | A state's early-learning framework: its domains and the indicators you tag observations with (for an age, or matching words). The state's document is linked; indicators are short wording grouped under its domains | `care:read` |
| GET | `/v1/mkt/care/lessons` | Your lesson bank: lessons for an age or matching words (no children's details here) | `care:read` |
| POST | `/v1/mkt/care/lessons` | Add a lesson to your bank (no children's names here) | `care:write` |
| PUT | `/v1/mkt/care/lessons/:id` | Change a lesson, or archive it (plans that use it keep it) | `care:write` |
| POST | `/v1/mkt/care/lessons/starter` | Add the 40 starter lessons to your bank (owners and admins; nothing appears until you do; adding again skips the ones you have) | `care:write` |
| GET | `/v1/mkt/care/limits` | Every limit the childcare product has, with what's used now and the share (owners and admins; owners are told at 50%, 80% and the limit) | `care:read` |
| GET | `/v1/mkt/care/logs/:id` | One care log, with the medicine's name and dose for a medication entry, or the photo of a photo of the day (staff of the site; each look is recorded) | `children:read` |
| POST | `/v1/mkt/care/logs/:id/end` | End a nap | `care:write` |
| DELETE | `/v1/mkt/care/meal-counts/:id` | Strike out a count marked by mistake (kept on the record with who and when, not deleted) | `care:write` |
| GET | `/v1/mkt/care/meal-services/:id` | A meal service: the children checked in to the room now and whether each has been counted as served | `children:read` |
| POST | `/v1/mkt/care/meal-services/:id/counts` | Count children as served at a meal service, as they're served: only children checked in to the room now, and only today | `care:write` |
| GET | `/v1/mkt/care/messages` | The latest family messages and what became of each (sent, combined into a digest, skipped and why), without their words; at most 200 | `care:read` |
| GET | `/v1/mkt/care/messages/channels` | How family messages go out: email, push (families turn it on from their family view) and texts (Center and Group plans; the kinds you pick, to guardians who agreed), each with its switch, limits and counts | `care:read` |
| PUT | `/v1/mkt/care/messages/channels` | Turn push or texts on or off, choose which kinds go by text, or set the daily text limit (owners and admins; the limit is an owner's). Nothing already sent is resent. | `care:write` |
| POST | `/v1/mkt/care/messages/deliver` | Deliver family messages that are due now, under the same ceilings, switches and policy gate as the worker (admins) | `care:write` |
| GET | `/v1/mkt/care/messages/kinds` | The kinds of family message, each off until you turn it on, with what it says (English and Spanish previews), and how they go out (email, push and texts) | `care:read` |
| PUT | `/v1/mkt/care/messages/kinds/:kind` | Turn one kind of family message on or off (owners and admins); nothing is sent for what happened before it was on | `care:write` |
| DELETE | `/v1/mkt/care/observations/:id` | Delete an observation (it leaves the family's portfolio at once) | `care:write` |
| PUT | `/v1/mkt/care/observations/:id` | Change an observation, share it to the family's portfolio, or take it back out | `care:write` |
| DELETE | `/v1/mkt/care/pickups/:id` | Remove someone from a child's pickup list | `care:write` |
| GET | `/v1/mkt/care/pickups/:id/photo` | The photo of someone who may collect a child, for staff checking them at pickup (each look is recorded) | `children:read` |
| PUT | `/v1/mkt/care/pickups/:id/photo` | Set or remove the photo of someone who may collect a child (with their consent, recorded; photos must be on for your organization) | `care:write` |
| PATCH | `/v1/mkt/care/programs/:id` | Change a program's name, end date, weekdays or pickup signatures, or archive it (site leads, admins, owners) | `care:write` |
| POST | `/v1/mkt/care/programs/:id/absences` | Mark a child absent from a program on a day (the school or a parent called), with who said so | `care:write` |
| POST | `/v1/mkt/care/programs/:id/arrivals` | Check enrolled children in to their program as they arrive (from school or the bus), as a group: refused when the room's ratio wouldn't hold. No tag: pickup checks the person's ID and, if the program asks, their signature | `care:write` |
| GET | `/v1/mkt/care/programs/:id/dismissal` | A day's dismissal list: each enrolled child expected that day by school and how they leave it, and whether they're here, collected, absent or still expected | `children:read` |
| GET | `/v1/mkt/care/programs/:id/enrollments` | A program's roster: each child's first name and initial, age, flags, school, grade and how they leave school (at most 1,000) | `children:read` |
| POST | `/v1/mkt/care/programs/:id/enrollments` | Enroll a child in a program, with their school, grade and how they leave school (enrolling again updates those) | `care:write` |
| PUT | `/v1/mkt/care/programs/:id/registration` | Open or close a program's registration: closing date, fee per child, capacity, how it's paid (at the desk or by card through your Stripe account), and whether staff review each (site leads and admins) | `care:write` |
| GET | `/v1/mkt/care/programs/:id/registrations` | A program's registrations, oldest first: the family's children (first names, initials), status, amount and how it's paid | `children:read` |
| POST | `/v1/mkt/care/programs/:id/roster` | Import a program's roster from a file (CSV with school, grade and dismissal columns): preview first, then file the families and enroll the children. Nothing is sent to anyone | `care:write` |
| POST | `/v1/mkt/care/registrations/:id/decide` | Enroll a registration's children, decline it, or mark it paid (paid at the desk) and enroll (site leads and admins) | `care:write` |
| GET | `/v1/mkt/care/reports/custom/fields` | What a custom report can show: for each dataset, its columns, groups, counts and filters (children's names are marked; nothing sealed is on the list), and your saved reports with their schedules | `care:read` |
| POST | `/v1/mkt/care/reports/custom/run` | Run a custom report on the sites you can see (at most 92 days and 5,000 rows), as JSON or CSV; children's names only for signed-in staff who may see children's records | `care:read` |
| GET | `/v1/mkt/care/reports/saved` | Your organization's saved reports and their schedules | `care:read` |
| POST | `/v1/mkt/care/reports/saved` | Save a custom report for your organization (site leads and admins) | `care:write` |
| PUT | `/v1/mkt/care/reports/saved/:id` | Rename or change a saved report, or archive it (site leads and admins) | `care:write` |
| GET | `/v1/mkt/care/reports/saved/:id/run` | Run a saved report for its dates (or other dates), as JSON or CSV | `care:read` |
| PUT | `/v1/mkt/care/reports/saved/:id/schedule` | Turn a report's schedule on or off: daily, weekly or monthly, the staff to tell (members of your organization, at most 10). They get a notice with a link, never the rows. At most 10 scheduled reports. | `care:write` |
| GET | `/v1/mkt/care/reports/sites` | Every site side by side for a date range: visits, children, families, child-hours, staff-hours, staff-hours the ratio needed and hours short (owners and admins; counts only; CSV with format=csv) | `care:read` |
| DELETE | `/v1/mkt/care/reservation-groups/:id` | Cancel a family's booking or waitlist place for a session; the next waiting families that fit are booked | `care:write` |
| POST | `/v1/mkt/care/reservation-groups/:id/move` | Move a family's booking to another session (booked or waitlisted there, as places allow); the old place goes to the waitlist | `care:write` |
| GET | `/v1/mkt/care/rooms/:id/daily-summary` | Today's daily-sheet counts for a room: children here, and how many meals, bottles, naps, diapers, activities, moods and photos were logged (no names) | `care:read` |
| GET | `/v1/mkt/care/rooms/:id/immunization-flags` | Which children in a room have immunization records due or overdue (a flag only: no doses, no kind of exemption) | `children:read` |
| GET | `/v1/mkt/care/rooms/:id/lesson-plans/:week` | A room's lesson plan for the week that includes this date (YYYY-MM-DD) | `care:read` |
| PUT | `/v1/mkt/care/rooms/:id/lesson-plans/:week` | Write a room's lesson plan for the week that includes this date (no children's details here) | `care:write` |
| GET | `/v1/mkt/care/rooms/:id/lesson-plans/:week/lessons` | The lessons on a room's weekly plan, by weekday | `care:read` |
| PUT | `/v1/mkt/care/rooms/:id/lesson-plans/:week/lessons` | Set the lessons on a room's weekly plan, by weekday (replaces the week's list; starts the week's plan if there isn't one) | `care:write` |
| GET | `/v1/mkt/care/rooms/:id/logs` | Today's care logs for the children checked in to a room (medication shows as given, with the time; its detail opens one at a time) | `children:read` |
| POST | `/v1/mkt/care/rooms/:id/meal-services` | Start a meal service in a room today (one per meal type a day), with its menu; opening it again returns it | `care:write` |
| GET | `/v1/mkt/care/rooms/:id/observation-coverage` | A room's observations over the last days (30 by default): how many, by domain, and the children with none yet (first names for staff in the app; counts only for keys and assistants) | `care:read` |
| POST | `/v1/mkt/care/rooms/:id/report-drafts` | Draft today's report for each child checked in to a room today (at most 10, one at a time, within your daily limit). Each draft still needs its own approval | `care:write` |
| POST | `/v1/mkt/care/rooms/:id/sessions` | Publish a bookable session in a room (a start, an end, a capacity up to the room's), once or weekly for up to 12 weeks (site leads and admins) | `care:write` |
| POST | `/v1/mkt/care/rooms/:id/shifts` | Start a staff member's shift in a room (they count toward its ratio until it ends; one open shift each) | `care:write` |
| GET | `/v1/mkt/care/rules/:state` | A state's licensing rules for each program type, each with its regulation section and source (reference, not legal advice) | `care:read` |
| POST | `/v1/mkt/care/sample` | Add a sample site with made-up families, to try check-in, ratios and pickups (every name is marked as a sample) | `care:write` |
| DELETE | `/v1/mkt/care/sessions/:id` | Cancel a session: its bookings and waitlist are cancelled (nobody is messaged; tell families yourself or with an announcement) | `care:write` |
| GET | `/v1/mkt/care/sessions/:id/reservations` | Who's booked for a session and who's waiting, in order (first names and initials, by family) | `children:read` |
| POST | `/v1/mkt/care/sessions/:id/reservations` | Book a family's children into a session together, or put them on its waitlist together when they don't all fit | `care:write` |
| GET | `/v1/mkt/care/settings` | Your organization's childcare switches (photos of children and pickups: off until turned on) | `care:read` |
| PUT | `/v1/mkt/care/settings` | Turn photos of children and pickups on or off (owners and admins; each photo still needs a guardian's consent) | `care:write` |
| PUT | `/v1/mkt/care/settings/activity-photos` | Turn photos of the day on or off (owners). Separate from identification photos; each child also needs a guardian's consent. Turning it off deletes every photo of the day. | `care:write` |
| PUT | `/v1/mkt/care/settings/activity-videos` | Turn videos of the day on or off (owners). Separate from photos of the day; each child also needs a guardian's consent to videos; no sound; turning them off deletes every video of the day. | `care:write` |
| GET | `/v1/mkt/care/settings/assistant` | The assistant's features, each off until an owner turns it on: what it does, what goes to the model provider and what never does, who may use it, its daily limit and this month's use | `care:read` |
| PUT | `/v1/mkt/care/settings/assistant` | Turn the assistant's features on or off and lower their daily limits (owners, in the app). Turning one on sends nothing and drafts nothing by itself | `care:write` |
| GET | `/v1/mkt/care/settings/conversations` | Whether families can message you, staff quiet hours and the daily limits on messages | `care:read` |
| PUT | `/v1/mkt/care/settings/conversations` | Turn messages with families on or off, allow room conversations, set staff quiet hours and the daily limits (owners and admins). Telling families there's a reply is its own message, 'Replies from staff', in Family messages | `care:write` |
| GET | `/v1/mkt/care/settings/daily-report` | When the daily report goes (at pickup, or at a time at each site's day's end) and about how many a day it would send at your recent attendance | `care:read` |
| PUT | `/v1/mkt/care/settings/daily-report` | Choose when the daily report goes: at pickup, or at a time each site's day ends (owners and admins). It still goes only once you turn the Daily report message on. | `care:write` |
| PUT | `/v1/mkt/care/settings/family-booking` | Let families book sessions from their family view (owners and admins; off until turned on) | `care:write` |
| PUT | `/v1/mkt/care/settings/family-messages` | Set your organization's daily limit on family messages (owners; at most 20,000 a day) | `care:write` |
| PUT | `/v1/mkt/care/settings/family-view` | Turn the family view on or off: guardians you invite see their own children's check-ins and pickup list | `care:write` |
| PUT | `/v1/mkt/care/settings/immunizations` | Turn immunization records on or off (owners and admins). Records already kept stay until their retention; nothing is sent by turning this on | `care:write` |
| PUT | `/v1/mkt/care/settings/kiosk-pin` | Set the PIN staff enter to leave the check-in kiosk (4 to 8 digits; owners and admins) | `care:write` |
| PUT | `/v1/mkt/care/settings/labels` | A home daycare: print labels and pickup tags at check-in, or not (owners and admins; centers always print them) | `care:write` |
| GET | `/v1/mkt/care/settings/prospect-messages` | Which emails to prospective families are on (each off until you turn it on), the daily limit, and today's count | `care:read` |
| PUT | `/v1/mkt/care/settings/prospect-messages` | Turn emails to prospective families on or off (an inquiry receipt, a tour confirmation, a tour reminder; owners and admins) and set the daily limit (owners). Nothing is sent for what happened before | `care:write` |
| GET | `/v1/mkt/care/settings/qualifications` | Who counts toward each kind of room's ratio (the certifications required and a minimum age, with the site's state's own words beside them), whether the ratio counts only qualified staff, and the expiry notices | `care:read` |
| PUT | `/v1/mkt/care/settings/qualifications` | Set who counts toward each kind of room's ratio, whether the ratio counts only qualified staff, and the certification expiry notices (owners and admins) | `care:write` |
| PUT | `/v1/mkt/care/settings/stripe-account` | Connect (or disconnect) your organization's own Stripe account for card payments on registrations: the account id from your Stripe dashboard (owners) | `care:write` |
| GET | `/v1/mkt/care/settings/stripe-connect` | Your Stripe account's state for card payments: connected, details submitted, able to take charges (read from Stripe; owners) | `care:read` |
| POST | `/v1/mkt/care/settings/stripe-connect` | Start (or continue) Stripe's own onboarding for your organization's Stripe account, for card payments on registrations: returns Stripe's link (owners, signed in) | `care:write` |
| GET | `/v1/mkt/care/setup/checklist` | What's left to set up: a center's path from its site to its first invoices, or a home's from its home to the first daily report | `care:read` |
| GET | `/v1/mkt/care/setup/home` | Your home daycare's setup: the home, its type and the state's limit, and what's left on the checklist | `care:read` |
| POST | `/v1/mkt/care/setup/home` | Set up a home daycare (owners): your home as the one site, one room of your state's home type, and you as its caregiver. Nothing is sent and nothing else is turned on | `care:write` |
| PUT | `/v1/mkt/care/setup/kind` | Say whether this organization is a center or a home daycare (owners, as they create it): the getting-started checklist follows. Changes nothing else | `care:write` |
| POST | `/v1/mkt/care/shifts/:id/end` | End a shift. Refused when it would leave a room short of the staff its children need | `care:write` |
| GET | `/v1/mkt/care/sites` | The sites you work at (all sites for owners and admins) | `care:read` |
| POST | `/v1/mkt/care/sites` | Add a site: a building where you care for children, in the state whose licensing rules apply | `care:write` |
| GET | `/v1/mkt/care/sites/:id/board` | Each room right now: children checked in, staff on shift, what the state's ratio needs and whether it holds | `care:read` |
| PUT | `/v1/mkt/care/sites/:id/cacfp` | Say whether a site claims the USDA food program (CACFP) and in which component: a center, or at-risk afterschool (owners and admins) | `care:write` |
| GET | `/v1/mkt/care/sites/:id/cacfp/claim` | A site's CACFP claim for a month: each meal type served and claimable, by eligibility category (format=csv for a file) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/door-log` | A site's door log, newest first: which door, what opened it, the outcome and why (site leads and admins; at most 200 at a time) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/doors` | A site's doors and what opens each (staff of the site) | `care:read` |
| POST | `/v1/mkt/care/sites/:id/doors` | Add a door at a site: its lock's id at the vendor and what may open it (check-in, staff); off until turned on (owners and admins) | `care:write` |
| GET | `/v1/mkt/care/sites/:id/enrollment-funnel` | How inquiries moved through the stages over a period (90 days by default): counts by stage and how many reached each, no names | `care:read` |
| GET | `/v1/mkt/care/sites/:id/exports/subsidy` | A month's subsidy attendance for a site: each subsidized child's days (first in, last out, minutes, who collected them, or absent and why), with the case number, as JSON or CSV for the state's portal (site leads and admins; each export recorded) | `children:read` |
| GET | `/v1/mkt/care/sites/:id/forms-due` | Families of a site (checked in in the last 90 days) missing a form, or whose form has expired or expires in 14 days (site leads and admins; at most 500) | `children:read` |
| GET | `/v1/mkt/care/sites/:id/hours/now` | Who is clocked in and on a break at a site now (names for signed-in staff at the site; counts only for keys and assistants) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/hours/summary` | A site's hours for a pay period: how many people worked, total regular, overtime and double-time hours, timesheets approved and waiting, and punches to look at. Totals only, no names | `care:read` |
| GET | `/v1/mkt/care/sites/:id/immunizations/report` | A site's immunization status: children up to date, due soon, overdue, in a grace period and exempt (site leads and admins also see exemptions by kind and who to follow up with; keys get the counts) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/incidents` | A site's incidents over the last days (kind, child's first name, times, whether the guardian was told and acknowledged); what happened opens one at a time | `children:read` |
| GET | `/v1/mkt/care/sites/:id/meal-services` | A site's meal services on a day (today by default), with how many children were counted at each | `care:read` |
| GET | `/v1/mkt/care/sites/:id/offline-pack` | This site's copy for offline check-in on a staff device: rooms and staff on shift, who's checked in, and the site's families for finding them and checking pickups (no notes, photos or contact details; each download recorded) | `children:read` |
| GET | `/v1/mkt/care/sites/:id/openings` | Openings by room for the coming months, from children's birthdays, moves up to the next room, planned leaves and room sizes, with the waitlisted families who fit (names for staff in the app; counts for keys and assistants) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/programs` | A site's after-school and camp programs: days, dates, room and how many children are enrolled | `care:read` |
| POST | `/v1/mkt/care/sites/:id/programs` | Add an after-school or camp program at a site: its room, weekdays, dates, and whether pickups sign (site leads, admins, owners) | `care:write` |
| GET | `/v1/mkt/care/sites/:id/reports/attendance` | Attendance records for a site and date range: each visit with the child's name, room, program, times and who brought and collected them (site leads and admins; each export recorded; CSV with format=csv) | `children:read` |
| GET | `/v1/mkt/care/sites/:id/reports/staffing` | Staffing from real attendance: per room, child-hours, staff-hours, the hours the ratio needed and the hours short; and the average children and staff needed by weekday and hour (counts only; CSV with format=csv) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/reports/usage` | Usage for a site by day: visits, children, families, average stay and the busiest hour (counts only; CSV with format=csv) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/rooms` | A site's rooms with their program type, ages and capacity | `care:read` |
| POST | `/v1/mkt/care/sites/:id/rooms` | Add a room to a site: its program type (whose licensing rules apply), ages and capacity | `care:write` |
| POST | `/v1/mkt/care/sites/:id/rosters` | Import several programs' rosters from one file (CSV with a program column naming each row's program at this site): preview first, then file the families and enroll each child in their program. Nothing is sent to anyone | `care:write` |
| GET | `/v1/mkt/care/sites/:id/schedules/:week` | A site's schedule for a week: planned shifts by room, the times a room would be short of the staff its expected children need (and times with no one to cover a break), and overtime warnings. Staff see published weeks; keys and assistants get counts and times, no names | `care:read` |
| PUT | `/v1/mkt/care/sites/:id/schedules/:week` | Set a site's planned shifts for a week (site leads for their sites, owners and admins; at most 500 shifts). Replaces the week's shifts and returns the checks | `care:write` |
| POST | `/v1/mkt/care/sites/:id/schedules/:week/copy` | Start a week's schedule from an earlier week's shifts, moved to the same weekdays (only into a week with no shifts yet) | `care:write` |
| POST | `/v1/mkt/care/sites/:id/schedules/:week/publish` | Publish a week's schedule so the site's staff see it in the app (it tells no one by itself; shortfalls don't block it) | `care:write` |
| GET | `/v1/mkt/care/sites/:id/sessions` | A site's sessions between two times (the next 7 days by default) with booked, waiting and places left (no names) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/sync-conflicts` | What offline devices sent that couldn't be applied as it was, for a site lead to accept or dismiss (open first) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/timesheets` | Every staff member's timesheet at a site for a pay period: hours, flags and status (site leads for their sites, owners and admins; at most 500 people) | `care:read` |
| GET | `/v1/mkt/care/sites/:id/tour-slots` | A site's tour times in the next three weeks, with places booked and left | `care:read` |
| POST | `/v1/mkt/care/sites/:id/tour-slots` | Offer a tour time at a site (15 to 120 minutes, up to 10 families) | `care:write` |
| GET | `/v1/mkt/care/sites/:id/visits` | Who's checked in at a site now (first names, rooms, flags), or today's check-ins and check-outs. At most 500 | `children:read` |
| GET | `/v1/mkt/care/sites/:id/whereabouts` | Where everyone is at a site now: each room's children with where their parent is (first names and initials for staff who may see children; counts and parents' locations otherwise) | `care:read` |
| GET | `/v1/mkt/care/staff` | Your organization's childcare staff, their roles and sites (owners and admins see everyone; others see their sites') | `care:read` |
| POST | `/v1/mkt/care/staff` | Add a staff member with a role and the sites they work at: a member of your organization, or someone new with their email, who gets an invitation and is linked to this record when they accept it | `care:write` |
| DELETE | `/v1/mkt/care/staff-certs/:id` | Strike out a certification recorded by mistake or replaced (kept on the record with who and when; owners and admins) | `care:write` |
| GET | `/v1/mkt/care/staff-certs/expiring` | Certifications and background checks expired or expiring in the next 60 days, by staff member (owners and admins see everyone; site leads their sites' staff). No report contents | `care:read` |
| PATCH | `/v1/mkt/care/staff/:id` | Change a staff member's role and the sites they work at, or remove them (owners and admins) | `care:write` |
| POST | `/v1/mkt/care/staff/:id/certs` | Record a staff member's certification or background-check status, with the date checked and when it expires (owners and admins; the report itself is never stored) | `care:write` |
| POST | `/v1/mkt/care/staff/:id/clock-pin` | Issue a new 6-digit clock PIN for a staff member (yourself, or your sites' staff as a site lead, or anyone as an owner or admin). Shown once; the old PIN stops working | `care:write` |
| PUT | `/v1/mkt/care/staff/:id/date-of-birth` | Record a staff member's date of birth, for the minimum age to count toward a ratio (owners and admins) | `care:write` |
| PUT | `/v1/mkt/care/staff/:id/pay-settings` | A staff member's id in your payroll provider, and whether daily overtime applies to them where a state makes it depend on the person (owners and admins). No pay rates are kept | `care:write` |
| GET | `/v1/mkt/care/staff/:id/qualifications` | A staff member's certifications and background-check status (never the report), and for each kind of room whether they count toward its ratio and why not | `care:read` |
| GET | `/v1/mkt/care/staff/:id/timesheet` | A staff member's timesheet for a pay period: each punch (corrections beside the originals), hours by day split into regular, overtime and double time, flags to look at, and whether it's approved | `care:read` |
| POST | `/v1/mkt/care/staff/:id/timesheet/approve` | Approve a staff member's timesheet for a pay period (site leads for their sites, owners and admins; not your own). Refused while a punch is open, a flag needs fixing or a correction waits | `care:write` |
| POST | `/v1/mkt/care/staff/:id/timesheet/attest` | Confirm your own hours for a pay period are right (before your site lead approves them) | `care:write` |
| POST | `/v1/mkt/care/staff/:id/timesheet/reopen` | Reopen an approved timesheet to correct it, with the reason. If it was already sent to payroll, the next payroll file carries the difference | `care:write` |
| PATCH | `/v1/mkt/care/subsidy-authorizations/:id` | Fill in or correct an authorization (its units, rate and site make one that needs detail start paying), change its end date, or end it with a reason. Once a claim uses it, its rate, units and co-pay stay: end it and add a new one | `care:write` |
| GET | `/v1/mkt/care/subsidy/agencies` | The agencies that pay for children's care (state programs, counties, workforce boards), with the rules you set up from each one's provider agreement | `care:read` |
| POST | `/v1/mkt/care/subsidy/agencies` | Add an agency with its rules from your provider agreement: how it pays (full and part days, hours, by week, month or enrollment), paid absences, and whether a family may be billed the rate difference (off by default) | `care:write` |
| PATCH | `/v1/mkt/care/subsidy/agencies/:id` | Change an agency's rules (claims already prepared keep the rules they were prepared with), or archive it | `care:write` |
| GET | `/v1/mkt/care/subsidy/aging` | What agencies still owe, by how long since the period ended: 0–30, 31–60, 61–90 and over 90 days (billing access) | `care:read` |
| GET | `/v1/mkt/care/subsidy/authorizations` | Subsidy authorizations across children, with each child's name, newest first (up to 200 a page; next_cursor for more; billing access) | `care:read` |
| GET | `/v1/mkt/care/subsidy/claims` | Claims to agencies, newest period first (up to 100 a page; next_cursor for more): status, expected and received (billing access) | `care:read` |
| POST | `/v1/mkt/care/subsidy/claims` | Start (or recompute) a draft claim to an agency for a site and period: what the agency should pay for each child, from attendance and their authorization. Nothing is posted or sent | `care:write` |
| GET | `/v1/mkt/care/subsidy/claims/:id` | A claim with each child's line: units, how they were counted, expected, received and the difference (billing access) | `care:read` |
| POST | `/v1/mkt/care/subsidy/claims/:id/close` | Close a claim once every line is paid or resolved; reopening it later needs a reason | `care:write` |
| POST | `/v1/mkt/care/subsidy/claims/:id/copays` | Post each child's co-pay for the claim's period to their family's account (preview first: the count and total). Posting sends nothing; it shows on the family's next invoice | `care:write` |
| POST | `/v1/mkt/care/subsidy/claims/:id/prepare` | Prepare a draft claim: its lines are frozen, and each child's expected amount is posted to the agency's account (preview first: the count and total). Refused while an authorization for this agency and site still needs its units and rate | `care:write` |
| POST | `/v1/mkt/care/subsidy/claims/:id/reopen` | Reopen a prepared claim to recompute it, with the reason: its posted amounts are reversed. Refused once a deposit is matched to it | `care:write` |
| POST | `/v1/mkt/care/subsidy/claims/:id/submitted` | Mark a claim as submitted: you keyed it into the agency's or state's portal (or sent it) on this date. Nothing is sent from here | `care:write` |
| GET | `/v1/mkt/care/subsidy/flags` | What needs a look: lines paid short or over (deferred ones from their follow-up date), claims overdue, care over the approved units, authorizations ending within 30 days or still needing detail, with the children's names (billing access) | `care:read` |
| POST | `/v1/mkt/care/subsidy/lines/:id/resolve` | Resolve a line's difference with a note: waive it, wait for it (with a date to look again), bill the family (not a rate difference where the agency forbids it), bill the family for care over the approved units, record an overpayment returned to the agency, or note a resubmission. Billing a family sends nothing | `care:write` |
| POST | `/v1/mkt/care/subsidy/payments` | Record a deposit from an agency (its date, amount and check or EFT number). It's matched to children next; nothing is matched by itself | `care:write` |
| POST | `/v1/mkt/care/subsidy/payments/:id/allocate` | Match a deposit to children's lines (amounts in cents; never more than the deposit holds). A line paid within your tolerance is matched; otherwise it's under or over until resolved | `care:write` |
| POST | `/v1/mkt/care/subsidy/payments/import` | Read an agency's remittance file (CSV, with your column names) and suggest which child and period each row pays. With preview, nothing is recorded; otherwise the deposit is recorded and the suggestions wait for you to accept | `care:write` |
| PUT | `/v1/mkt/care/subsidy/settings` | Subsidy settings: the difference that still counts as paid (rounding), and how many days after a period a claim with nothing received is overdue | `care:write` |
| GET | `/v1/mkt/care/subsidy/summary` | Subsidy by agency for a range of periods: expected, received, written off, billed to families and still owed. Totals by agency (billing access) | `care:read` |
| GET | `/v1/mkt/care/support-grants` | Support access you have given: who, why, until when, and whether it is still live (owners and admins; at most 50, newest first) | `care:read` |
| POST | `/v1/mkt/care/support-grants` | Let one of our support team see your families and site counts for a set time (1–72 hours), with a reason; never medical or custody notes or photos (owners, signed in) | `care:write` |
| DELETE | `/v1/mkt/care/support-grants/:id` | End support access now (owners, signed in) | `care:write` |
| GET | `/v1/mkt/care/support/thread` | Your organization's conversation with our support team, oldest first, and whether support access is live (owners and admins) | `care:read` |
| POST | `/v1/mkt/care/support/thread` | Write to our support team (owners and admins; leave out children's details: if we need to see a family, give support access for a few hours) | `care:write` |
| POST | `/v1/mkt/care/sync` | Send what a staff device did while offline (check-ins and releases, in order): each is applied against what's true now, once; what can't be applied as it was goes to the site lead as a conflict | `care:write` |
| POST | `/v1/mkt/care/sync-conflicts/:id/resolve` | Accept an offline conflict (record the check-in or release as it happened, with your reason) or dismiss it (site leads and admins) | `care:write` |
| DELETE | `/v1/mkt/care/tour-slots/:id` | Cancel a tour time (families booked on it are cancelled too; tell them yourself) | `care:write` |
| PUT | `/v1/mkt/care/tours/:id` | Record how a tour went (attended or no-show), or cancel it | `care:write` |
| GET | `/v1/mkt/care/videos/:id` | Play a video of the day (staff of the site; each view is recorded) | `children:read` |
| POST | `/v1/mkt/care/videos/:id/complete` | Finish a video of the day once every part is in: it's checked (a video, no sound, at most 15 seconds) and shown in the child's day | `care:write` |
| PUT | `/v1/mkt/care/videos/:id/parts/:n` | Send one part of a video of the day (base64, at most 256 KB each, in order or not) | `care:write` |
| POST | `/v1/mkt/care/visits` | Check children in to a room (one family's, together): refused when the room is full or the staff on shift wouldn't keep the ratio. Returns a label for each child and one pickup tag, sharing a code shown once | `care:write` |
| POST | `/v1/mkt/care/visits/:id/check-out` | Check a child out to the person collecting them: an authorized pickup with the tag's code, or a site lead's override with a reason. A blocked person is always refused | `care:write` |
| POST | `/v1/mkt/care/visits/:id/incidents` | Record an incident (injury, illness, behavior) during a child's visit: what happened (kept sealed), first aid, who saw it | `care:write` |
| POST | `/v1/mkt/care/visits/:id/logs` | Log care for a child who's checked in: a diaper change, a nap (start; end it later), a meal (how much was eaten), a bottle (what and how much), an activity, the child's mood, a note, a photo of the day (activity photos on, the guardian's consent, only this child in it), or medication given (with the guardian's written authorization on file; name and dose kept sealed) | `care:write` |
| POST | `/v1/mkt/care/visits/:id/move` | Move a checked-in child to another room at the same site (refused when that room is full, outside the child's age, or short of staff for the ratio); the move is kept | `care:write` |
| GET | `/v1/mkt/care/visits/:id/moves` | Where a child was during a visit: the room they were checked in to, each move, and each change of where the parent was | `children:read` |
| PUT | `/v1/mkt/care/visits/:id/parent-location` | Note where to reach the parent during the visit (for the family's children here together); each change is kept | `care:write` |
| POST | `/v1/mkt/care/visits/:id/reprint` | Print a new label and tag (a new code; the old tag stops working) | `care:write` |
| GET | `/v1/mkt/care/visits/:id/signature` | The signature given at a child's pickup, for a site lead or admin (each view is recorded) | `children:read` |
| POST | `/v1/mkt/care/visits/:id/videos` | Start a video of the day of a checked-in child (videos on, the guardian's consent, only this child in it, no sound, at most 15 seconds and 4 MB); then send its parts and complete it | `care:write` |

## Examples

### DELETE /v1/mkt/care/absences/$ID

Undo an absence (the child is expected after all)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/absences/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/absences/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/announcements

Write an announcement to a program's or a site's families: preview first (how many guardians, the words), then queue it (site leads and admins; 3 a site a day; only if announcements are on)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/announcements" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/announcements`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/assistant/billing-questions

Ask about your billing in plain words (owners, admins and staff with billing access; the billing questions switch). The answer quotes your billing reports; the assistant can't charge, refund, post, write off or message anyone

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/assistant/billing-questions" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/billing-questions`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/assistant/drafts

The assistant's open drafts about a child's day, a child, a family's message or an inquiry (for staff who may see it; drafts expire after 7 days)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/assistant/drafts" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/drafts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/assistant/drafts/$ID/approve

Approve a draft as written or edited: a daily report is filed as the child's report for that day (the family sees it in their view); an observation is saved unshared with the standards you pick. Replies are sent from the conversation or the inquiry

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/assistant/drafts/$ID/approve" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/drafts/${id}/approve`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/assistant/drafts/$ID/discard

Discard one of the assistant's drafts (nothing is filed or sent)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/assistant/drafts/$ID/discard" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/drafts/${id}/discard`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/assistant/handbook

Your handbook as the assistant reads it: each section with its version (families never see this page)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/assistant/handbook" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/handbook`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/assistant/handbook

Save your handbook (owners and admins): paste its text with a heading for each section (hours, closures, illness policy, what to pack, fees in words, pickups). Each section is versioned; sections you leave out are archived

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/assistant/handbook" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/assistant/handbook`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/audit/restricted-reads

Which children's medical, custody, photo or other restricted notes one person opened in a time window, by field, with their families (owners, signed in; never the notes themselves; each look recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/audit/restricted-reads" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/audit/restricted-reads`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/accounts

Families' billing accounts with balances (cursor-paginated, at most 100 a page): filter to overdue, without autopay, or with a failed payment method. Family names only for people in the app or keys with the children scope.

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/accounts" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/accounts

Open a family's billing account (or return the one it has); filing only, it charges no one

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/accounts" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/accounts/$ID

One family's account: balance, payers and their shares, payment methods (brand and last 4 only), autopay, open invoices and the ledger (by family or by one child)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/accounts/$ID/charges

Put a fee on a family's account (registration, a deposit, supplies) or an adjustment with a reason; it appears on their next invoice

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID/charges" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}/charges`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/accounts/$ID/deposits/$ENTRY_ID/apply

Apply a family's held deposit to their account (usually their last invoice), in the app

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID/deposits/$ENTRY_ID/apply" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}/deposits/${entryId}/apply`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/accounts/$ID/payers

Add a payer to a family's account: another guardian, an employer or another payer

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID/payers" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}/payers`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/billing/accounts/$ID/shares

Split a family's charges between its payers from a date (percent, a fixed amount, and one who pays the rest)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID/shares" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}/shares`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/accounts/$ID/statement

A family's statement for a period: opening balance, each line, closing balance (JSON or PDF)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/accounts/$ID/statement" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/accounts/${id}/statement`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/billing/autopay/exemptions/$ACCOUNT_ID

Excuse a family from required autopay, with a reason and an end date (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/billing/autopay/exemptions/$ACCOUNT_ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/autopay/exemptions/${accountId}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/autopay/resume

Let autopay go ahead today after it didn't run for a few days (in the app)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/autopay/resume" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/autopay/resume`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/children

Children at a site with the rate each is billed on (or none yet), for putting children on rates (at most 200 a page)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/children" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/children`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/billing/closures/$SITE_ID

Set a site's closed days (holidays): credited on monthly and weekly tuition when the setting says so

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/billing/closures/$SITE_ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/closures/${siteId}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/discounts

Add a discount: sibling, staff, scholarship or your own, as a percent or an amount

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/discounts" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/discounts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/enrollments

Put a child on a rate: which days they come, from when (and until when). Bills from the next run; never bills past periods by itself.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/enrollments" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/enrollments`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PATCH /v1/mkt/care/billing/enrollments/$ID

End a child's billing on a date (withdrawal, in the app): the next run prorates

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/billing/enrollments/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/enrollments/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/enrollments/bulk

Put several children on a rate at once (in the app): the days they come and from when. Each is billed from the next run.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/enrollments/bulk" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/enrollments/bulk`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/exports

Export the general ledger for your accounting software (CSV, QuickBooks Desktop IIF, QuickBooks Online journal entries, or a Xero manual journal). Family names only if an admin chooses them.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/exports" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/exports`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/fees

Add a fee you charge: registration, a deposit, supplies, an activity

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/fees" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/fees`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/invoices/$ID/void

Void an invoice with a reason (in the app): its lines are reversed and anything paid on it stays as a credit

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/invoices/$ID/void" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/invoices/${id}/void`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/billing/late-fees/$WHICH

Turn a late pick-up or late payment fee on (with its rule) or off (owners and admins, in the app). It applies only to what happens after it's turned on; fees are proposed for a person unless auto-post is on.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/billing/late-fees/$WHICH" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/late-fees/${which}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/overview

Billing at a glance: what's due, overdue by age, failed payments by kind, disputes, runs and reviews waiting. Totals and counts only, no names.

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/overview" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/overview`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/payments

Record a payment taken at the desk (cash or a check): applied to the family's oldest invoices first

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/payments" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/payments`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/payments/$ID/refund

Refund a payment (owners, admins and billing staff, in the app): by card or bank through your Stripe account, or as a credit on the family's account

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/payments/$ID/refund" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/payments/${id}/refund`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/payments/turn-off

Turn card and bank payments off (owners): no new charges or checkouts; families keep their records.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/payments/turn-off" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/payments/turn-off`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/payments/turn-on

Turn on card and bank payments on your own Stripe account (owners, in the app). It charges and messages no one: families add a payment method or autopay themselves.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/payments/turn-on" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/payments/turn-on`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/rates

Your price list: tuition rates (monthly, weekly, daily, hourly), discounts and fees

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/rates" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/rates`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/rates

Add a tuition rate (owners, admins and billing staff)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/rates" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/rates`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/rates/$ID/archive

Retire a rate (enrollments on it keep it until moved to another)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/rates/$ID/archive" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/rates/${id}/archive`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/reviews

What waits for a person: autopay charges held over a limit, and proposed late fees

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/reviews" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/reviews`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/reviews/$ID

Decide a held autopay charge or a proposed late fee (in the app): charge or post it, or waive it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/reviews/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/reviews/${id}`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/runs

Invoice runs: previews waiting to be posted and runs posted (totals and counts)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/runs" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/runs`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/runs

Prepare an invoice run's preview for a period (monthly, weekly, or check-ins billed after): every line and total, and any problems. It posts nothing.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/runs" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/runs`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/runs/$ID/discard

Discard a run's preview

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/runs/$ID/discard" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/runs/${id}/discard`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/runs/$ID/families

A run family by family: each family's lines and total in a preview, or the invoice each got once posted (50 families a page)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/runs/$ID/families" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/runs/${id}/families`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/runs/$ID/post

Post a previewed run (in the app): the lines and the families' invoices. If something changed since the preview, it shows the new preview instead.

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/runs/$ID/post" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/runs/${id}/post`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/settings

Billing settings: invoice day, proration, autopay rules and limits, who pays card and bank fees, our fee per payment, late fees, the details on tax statements, and the accounting codes

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/settings" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/billing/settings

Change billing settings (owners and admins, in the app)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/billing/settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/setup

What's left to set up billing: rates, children on rates, your Stripe account, payments, the first invoices

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/setup" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/setup`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/tax-statements/$YEAR

A year's statements, drafts and published: who each is for, the total and whether families see it yet (at most 200 a page)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/$YEAR" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/${year}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/billing/tax-statements/$YEAR/$ID/pdf

One family's year-end statement as they see it (PDF), to check before publishing

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/$YEAR/$ID/pdf" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/${year}/${id}/pdf`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/tax-statements/$YEAR/prepare

Prepare (or refresh) a year's tax statements as drafts families don't see yet (in the app: a change to a published one is a corrected statement, published at once)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/$YEAR/prepare" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/${year}/prepare`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/billing/tax-statements/$YEAR/publish

Publish a year's tax statements to families (in the app); emails only if that message is on

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/$YEAR/publish" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/billing/tax-statements/${year}/publish`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/booking-embeds

Your booking pages for your own website: the site each shows, the websites allowed to show it, the snippet to paste, and today's link requests

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/booking-embeds" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/booking-embeds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/booking-embeds

Make a booking page for your own website (owners and admins): one site or every site, and the https websites allowed to show it (at most 5)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/booking-embeds" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/booking-embeds`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/booking-embeds/$ID

Take a booking page down for good (its snippet stops working at once)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/booking-embeds/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/booking-embeds/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/booking-embeds/$ID

Change which websites may show a booking page, or turn it off and on (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/booking-embeds/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/booking-embeds/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID

A child (name, age, flags) with their pickup list (names only, and who may not collect them)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/activity-photo-consent

Record a guardian's consent to photos of the day for a child (given on paper or in person, with their name), or its withdrawal (which deletes the child's photos of the day)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/activity-photo-consent" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/activity-photo-consent`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/activity-video-consent

Record a guardian's consent to videos of the day for a child (given on paper or in person, with their name), or its withdrawal (which deletes the child's videos)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/activity-video-consent" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/activity-video-consent`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/daily-sheet

A child's daily sheet for a day (today by default): meals, bottles, naps, diapers, activities, mood, notes, medication given and photos of the day, for staff of the site

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/daily-sheet" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/daily-sheet`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/immunizations

A child's immunization record against the state's schedule: doses, what's due, any exemption, and the certificate (site leads and admins; each opening is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/immunizations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/immunizations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/immunizations

Record a child's doses, that you saw the certificate (and its scan), or an exemption the state allows with its expiry and document (site leads and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/immunizations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/immunizations`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/leave

Mark a child as having left your organization: their notes and photo are deleted after 90 days; attendance stays for its own period

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/leave" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/leave`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/meal-category

Record a child's meal-program eligibility category (free, reduced-price or paid) for a site that claims CACFP; never income (site leads and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/meal-category" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/meal-category`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/observation-draft

Turn a teacher's note into a draft observation with up to three of the state's standards suggested (the observation drafts switch). The teacher picks, edits and saves it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/observation-draft" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/observation-draft`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/observations

A child's observations, newest first (50 at a time), with notes, standards, milestones and whether each is shared; reading them is recorded

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/observations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/observations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/observations

Write an observation of a child's learning: a short note (kept sealed), the state's indicators it shows, milestones seen, and up to 4 of today's photos or videos of the child. Share it to put it in the family's portfolio

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/observations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/observations`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/pickups

Add someone who may collect a child, or someone who may not (a custody order: staff are alerted, never told to release)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/pickups" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/pickups`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/placements

A child's home rooms over time: the room, days and dates

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/placements" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/placements`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/placements

Place a child in a room from a date (a move ends the current placement the day before)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/placements" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/placements`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/provider-own

Mark a child as your own (the provider's), for the states that count a provider's own children toward a home's limit

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/provider-own" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/provider-own`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/report-draft

Draft a child's daily report from the day's sheet (staff of the child's site; the daily report drafts switch). A teacher edits and approves it before it's filed

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/report-draft" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/report-draft`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/restricted

A child's medical and allergy notes, custody notes and photo, for staff of a site the child is at this week (each look is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/restricted" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/restricted`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/restricted

Set a child's medical notes, custody notes or photo (a photo needs the guardian's consent, recorded here)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/restricted" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/restricted`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/children/$ID/subsidy

Mark a child as paid for by a state subsidy program, with the case or authorization number the state gives (kept sealed), or clear it (site leads and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/children/$ID/subsidy" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/subsidy`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/subsidy-authorizations

A child's subsidy authorizations: agency, the last 4 of the case number, units approved, rate, co-pay and dates (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/subsidy-authorizations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/subsidy-authorizations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/children/$ID/subsidy-authorizations

Record a child's subsidy authorization: the agency, site, case number (kept sealed), units approved, rate, the family's co-pay and the dates. A rate or co-pay change is a new authorization from its first day

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/children/$ID/subsidy-authorizations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/subsidy-authorizations`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/children/$ID/visits

A child's recent check-ins and check-outs (the attendance record), newest first, at most 100

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/children/$ID/visits" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/children/${id}/visits`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/conversation-messages/$ID/reply-draft

Suggest a reply to a family's message from your handbook, citing the sections used (the handbook replies switch). Questions about a child, health, medicine, custody, pickups, a balance or a complaint stay with staff, with no suggestion

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/conversation-messages/$ID/reply-draft" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversation-messages/${id}/reply-draft`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/conversations

Conversations with families at your sites, newest first: the family, site, room, who wrote last and when, and unread counts (never the words)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/conversations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/conversations/$ID/close

Close a conversation (the family can start a new one; a reply reopens it)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/conversations/$ID/close" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversations/${id}/close`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/conversations/$ID/messages

Read a conversation with a family, newest first (50 at a time); each opening is recorded

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/conversations/$ID/messages" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversations/${id}/messages`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/conversations/$ID/messages

Reply to a family (they're told there's a reply when that message kind is on, after their quiet hours)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/conversations/$ID/messages" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversations/${id}/messages`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/conversations/summary

Counts of conversations with families at your sites: open, waiting for a reply, and how long the oldest has waited (no names, no words)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/conversations/summary" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/conversations/summary`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### DELETE /v1/mkt/care/doors/$ID

Remove a door (its log stays for its period) (owners and admins)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/doors/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/doors/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PATCH /v1/mkt/care/doors/$ID

Change a door: its name, lock id, what opens it, on or off (owners and admins)

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/doors/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/doors/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/doors/$ID/open

Open a door now, as a signed-in staff member of its site (a door staff may open; ceilings and the policy apply; logged)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/doors/$ID/open" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/doors/${id}/open`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/doors/settings

Door settings: on or off, the lock vendor, whether a key is saved (never the key) and the opens a day (owners and admins)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/doors/settings" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/doors/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/doors/settings

Turn doors on or off, choose the lock vendor, save its API key (write-only) and set the opens a day (owners, in the app)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/doors/settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/doors/settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/enrollments/$ID

Take a child off a program's roster (their attendance stays)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/enrollments/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/enrollments/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/expected

The children expected today in the rooms you're on shift in, first names only, for check-in

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/expected" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/expected`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/family-links/bulk

Invite every family to the family view at once: preview who would get an email, then send (first invitations last 7 days; one email an address; at most 200 a day)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/family-links/bulk" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/family-links/bulk`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/form-submissions/$ID

A family's filled form with its answers and signature, for staff with the family's full record (each look is recorded); print it from the app for a paper copy

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/form-submissions/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/form-submissions/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/form-submissions/$ID/pdf

A family's filled and signed PDF, for the staff who may open its answers (each look is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/form-submissions/$ID/pdf" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/form-submissions/${id}/pdf`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/forms

Your forms and waivers: fields, a waiver's text, signature, how long each is good for, and whether check-in needs it

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/forms" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/forms

Write a form or waiver (owners and admins): its fields, text, signature, how many months it's good for, and whether check-in needs it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/forms" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/forms/$ID

Change a form (a new version: families who filled the old one keep it, marked as an earlier version) or archive it (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/forms/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/forms/$ID/pdf

Take the PDF off a form (owners and admins); signed copies families already made are kept

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/forms/$ID/pdf" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}/pdf`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/forms/$ID/pdf

The form's blank PDF as uploaded, or with `preview=true` filled with sample words in each box so you can check where they land

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/forms/$ID/pdf" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}/pdf`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/forms/$ID/pdf

Attach your own PDF to a form (owners and admins; at most 2 MB and 30 pages, not password-protected). Families still fill the form here; their answers and signature are written onto the PDF. Replacing it makes a new form version and clears the field positions.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/forms/$ID/pdf" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}/pdf`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/forms/$ID/pdf-fields

Place the form's fields, the signature, the signer's name, the date and the child's name on its PDF: boxes in fractions of the page from its top-left (owners and admins; a new form version)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/forms/$ID/pdf-fields" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}/pdf-fields`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/forms/$ID/submissions

Record a family's form (filled on paper or the front-desk tablet): answers, who signed, and the signature if the form asks

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/forms/$ID/submissions" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/forms/${id}/submissions`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PATCH /v1/mkt/care/guardians/$ID

Change a guardian's relationship, phone, email or language (their name stays: add a new guardian for a different person)

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/guardians/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/guardians/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/guardians/$ID/family-access

End a guardian's access to the family view (every open session ends now)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/guardians/$ID/family-access" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/guardians/${id}/family-access`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/guardians/$ID/invite

Email a guardian a sign-in link to their family's view (works once: a first invitation within 7 days, a later link for 30 minutes; a new link ends the old one; at most 3 a guardian a day)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/guardians/$ID/invite" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/guardians/${id}/invite`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/clock

Clock in or out, or start or end a break, on your own phone with the code the site's kiosk shows (scan it, or type it) (when your organization turned the phone clock on). 5 wrong codes in 10 minutes pause it for 10 minutes

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/clock" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/clock`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/hours/corrections

Corrections waiting: your own, or as a site lead your sites' staff's (owners and admins: all), newest first (up to 100 a page; next_cursor for more)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/hours/corrections" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/corrections`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/corrections

Ask your site lead to correct your own punches: a missing punch, or a wrong time on one (it shows on their list; nothing is sent)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/corrections" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/corrections`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/corrections/$ID/decide

Accept a correction (it becomes the punch, with the person's note as the reason) or decline it with a note

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/corrections/$ID/decide" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/corrections/${id}/decide`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/hours/me

Your own clock: whether you're clocked in or on a break, your choices, and this pay period's hours so far

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/hours/me" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/me`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/payroll-export

Download a pay period's approved hours as a file for your payroll provider (Gusto, ADP Workforce Now or a plain CSV; owners and admins, signed in). Each download is recorded; nothing is sent to the provider

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/payroll-export" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/payroll-export`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/punches

Enter a punch for a staff member who couldn't clock (forgot, the kiosk was down), with the reason (site leads for their sites, owners and admins). It doesn't move anyone between rooms

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/punches" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/punches`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/punches/$ID/edit

Correct a punch's time (or break kind), with the reason. The original stays, struck through, beside the correction

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/punches/$ID/edit" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/punches/${id}/edit`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/hours/punches/$ID/void

Strike out a punch made by mistake, with the reason (it stays on the record, struck through)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/hours/punches/$ID/void" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/punches/${id}/void`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/hours/settings

The time clock's settings: whether the clock and the phone clock are on, the workweek, rounding, breaks, the pay period and the payroll file, with each site's overtime rule and its source

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/hours/settings" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/hours/settings

Change the time clock's settings (owners and admins, signed in). The clock and the phone clock stay off until turned on here

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/hours/settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/hours/settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/households

Find a family to check in: by name, family number or the last 4 digits of a phone (at most 20), or list families by name (at most 50), with each child's first name, age and flags

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/households" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/households

Add a family by hand (most come from a roster file)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/households" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/households/$ID

A family: its children (names, ages, flags), guardians and each child's pickups

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/households/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/households/$ID/children

Add a child to a family; the family's guardians become the child's authorized pickups

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/households/$ID/children" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households/${id}/children`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/households/$ID/conversations

Start a conversation with a family at one of your sites (or a room of it, when room conversations are on)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/households/$ID/conversations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households/${id}/conversations`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/households/$ID/forms

A family's forms and waivers: each one's status (current, expiring, expired, missing), who signed and when (not the answers)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/households/$ID/forms" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households/${id}/forms`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/households/$ID/guardians

Add a guardian to a family; they become an authorized pickup for each of its children

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/households/$ID/guardians" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/households/${id}/guardians`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/immunizations/schedule/$STATE

A state's child-care immunization requirements by age, the exemptions it allows, its grace period, certificate and annual report, with sources (no children)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/immunizations/schedule/$STATE" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/immunizations/schedule/${state}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/imports

Import families from a roster file (CSV): preview first, then file them. Nothing is sent to anyone

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/imports" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/imports`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/imports/mapping

Suggest how another tool's export's columns map onto ours (one row per child or per family), with what's missing and any columns we refuse. Nothing is filed

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/imports/mapping" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/imports/mapping`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/imports/staff

Import staff from another tool's staff export (CSV): names, with a role suggested from the job title; preview first. Email and title aren't kept, and nobody is invited or messaged (owners and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/imports/staff" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/imports/staff`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/incidents/$ID

An incident with what happened, for staff of its site (each look is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/incidents/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/incidents/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/incidents/$ID/acknowledge

The guardian acknowledges an incident report (at pickup): their name and, if they sign, a signature drawn on the screen

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/incidents/$ID/acknowledge" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/incidents/${id}/acknowledge`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/incidents/$ID/guardian-told

Record that the guardian was told about an incident: how and when

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/incidents/$ID/guardian-told" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/incidents/${id}/guardian-told`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/inquiries

Inquiries from prospective families at your sites, by stage (waitlisted in their order), newest change first

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/inquiries" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries

Record an inquiry a family made by phone, in person or by referral (nothing is sent to them unless that message is on)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/inquiries/$ID

Delete an inquiry and everything about it at once (when a family asks; a family that applied keeps its own records)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/inquiries/$ID

One inquiry: the family, the children, the stages it went through, its tours, the family's message and your notes (each opening is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/inquiries/$ID

Move an inquiry to another stage (closing says why; Toured records its latest tour that has happened as attended), or change your notes

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries/$ID/application

Start an application: makes the family (household, guardian, the children already born) so you can invite them to their family view and its forms. Sends nothing

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID/application" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}/application`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries/$ID/email

Email the family from this inquiry (your words; at most 2 emails a prospective family a day, within your organization's daily limit)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID/email" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}/email`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries/$ID/enroll

Enroll: place each of the family's children in a room from a start date (and days of the week)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID/enroll" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}/enroll`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries/$ID/reply-draft

Draft a first reply to an inquiry: your openings for the children's ages and up to three tour times (the inquiry drafts switch). Staff edit and send it; booking a tour stays your click. It never promises a place, a date or a price

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID/reply-draft" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}/reply-draft`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiries/$ID/tours

Book a family on a tour time (the confirmation goes only if that message is on)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiries/$ID/tours" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiries/${id}/tours`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/inquiry-embeds

Your inquiry forms for your own website: the site each is for, the websites allowed to show it, whether it offers tours, the snippet, and today's submissions

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/inquiry-embeds" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiry-embeds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/inquiry-embeds

Make an inquiry form for a site, for your own website (owners and admins): the https websites allowed to show it (at most 5) and whether families can book a tour on it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/inquiry-embeds" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiry-embeds`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/inquiry-embeds/$ID

Change an inquiry form's websites or tours, turn it off and on, or take it down for good (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/inquiry-embeds/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/inquiry-embeds/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/kiosk

Whether this device is a check-in kiosk, and for which site

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/kiosk" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/kiosk`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/kiosk

Turn this device into the check-in kiosk for one of your sites (web sign-in only; needs a kiosk PIN set; at most 14 hours)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/kiosk" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/kiosk`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/kiosk/clock

Staff clock at the kiosk: the clock PIN alone shows the person's state and choices; with an action it clocks in (with a room), starts or ends a break, or clocks out. 5 wrong PINs in 10 minutes pause the kiosk's clock for 10 minutes

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/kiosk/clock" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/kiosk/clock`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/kiosk/clock-code

The code this kiosk shows for staff clocking in on their phones (it changes every 2 minutes)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/kiosk/clock-code" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/kiosk/clock-code`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/kiosk/exit

Leave the check-in kiosk with the staff PIN (5 wrong PINs in 10 minutes lock that kiosk for 10 minutes)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/kiosk/exit" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/kiosk/exit`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/learning/milestones

Developmental milestones by age (the CDC's): recorded only as seen, never as a concern; the product never flags a delay

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/learning/milestones" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/learning/milestones`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/learning/standards

A state's early-learning framework: its domains and the indicators you tag observations with (for an age, or matching words). The state's document is linked; indicators are short wording grouped under its domains

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/learning/standards" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/learning/standards`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/lessons

Your lesson bank: lessons for an age or matching words (no children's details here)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/lessons" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/lessons`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/lessons

Add a lesson to your bank (no children's names here)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/lessons" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/lessons`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/lessons/$ID

Change a lesson, or archive it (plans that use it keep it)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/lessons/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/lessons/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/lessons/starter

Add the 40 starter lessons to your bank (owners and admins; nothing appears until you do; adding again skips the ones you have)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/lessons/starter" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/lessons/starter`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/limits

Every limit the childcare product has, with what's used now and the share (owners and admins; owners are told at 50%, 80% and the limit)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/limits" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/limits`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/logs/$ID

One care log, with the medicine's name and dose for a medication entry, or the photo of a photo of the day (staff of the site; each look is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/logs/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/logs/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/logs/$ID/end

End a nap

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/logs/$ID/end" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/logs/${id}/end`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/meal-counts/$ID

Strike out a count marked by mistake (kept on the record with who and when, not deleted)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/meal-counts/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/meal-counts/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/meal-services/$ID

A meal service: the children checked in to the room now and whether each has been counted as served

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/meal-services/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/meal-services/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/meal-services/$ID/counts

Count children as served at a meal service, as they're served: only children checked in to the room now, and only today

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/meal-services/$ID/counts" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/meal-services/${id}/counts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/messages

The latest family messages and what became of each (sent, combined into a digest, skipped and why), without their words; at most 200

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/messages" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/messages/channels

How family messages go out: email, push (families turn it on from their family view) and texts (Center and Group plans; the kinds you pick, to guardians who agreed), each with its switch, limits and counts

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/messages/channels" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages/channels`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/messages/channels

Turn push or texts on or off, choose which kinds go by text, or set the daily text limit (owners and admins; the limit is an owner's). Nothing already sent is resent.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/messages/channels" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages/channels`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/messages/deliver

Deliver family messages that are due now, under the same ceilings, switches and policy gate as the worker (admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/messages/deliver" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages/deliver`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/messages/kinds

The kinds of family message, each off until you turn it on, with what it says (English and Spanish previews), and how they go out (email, push and texts)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/messages/kinds" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages/kinds`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/messages/kinds/$KIND

Turn one kind of family message on or off (owners and admins); nothing is sent for what happened before it was on

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/messages/kinds/$KIND" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/messages/kinds/${kind}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/observations/$ID

Delete an observation (it leaves the family's portfolio at once)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/observations/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/observations/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/observations/$ID

Change an observation, share it to the family's portfolio, or take it back out

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/observations/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/observations/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/pickups/$ID

Remove someone from a child's pickup list

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/pickups/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/pickups/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/pickups/$ID/photo

The photo of someone who may collect a child, for staff checking them at pickup (each look is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/pickups/$ID/photo" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/pickups/${id}/photo`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/pickups/$ID/photo

Set or remove the photo of someone who may collect a child (with their consent, recorded; photos must be on for your organization)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/pickups/$ID/photo" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/pickups/${id}/photo`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PATCH /v1/mkt/care/programs/$ID

Change a program's name, end date, weekdays or pickup signatures, or archive it (site leads, admins, owners)

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/programs/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/programs/$ID/absences

Mark a child absent from a program on a day (the school or a parent called), with who said so

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/programs/$ID/absences" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/absences`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/programs/$ID/arrivals

Check enrolled children in to their program as they arrive (from school or the bus), as a group: refused when the room's ratio wouldn't hold. No tag: pickup checks the person's ID and, if the program asks, their signature

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/programs/$ID/arrivals" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/arrivals`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/programs/$ID/dismissal

A day's dismissal list: each enrolled child expected that day by school and how they leave it, and whether they're here, collected, absent or still expected

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/programs/$ID/dismissal" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/dismissal`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/programs/$ID/enrollments

A program's roster: each child's first name and initial, age, flags, school, grade and how they leave school (at most 1,000)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/programs/$ID/enrollments" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/enrollments`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/programs/$ID/enrollments

Enroll a child in a program, with their school, grade and how they leave school (enrolling again updates those)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/programs/$ID/enrollments" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/enrollments`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/programs/$ID/registration

Open or close a program's registration: closing date, fee per child, capacity, how it's paid (at the desk or by card through your Stripe account), and whether staff review each (site leads and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/programs/$ID/registration" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/registration`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/programs/$ID/registrations

A program's registrations, oldest first: the family's children (first names, initials), status, amount and how it's paid

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/programs/$ID/registrations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/registrations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/programs/$ID/roster

Import a program's roster from a file (CSV with school, grade and dismissal columns): preview first, then file the families and enroll the children. Nothing is sent to anyone

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/programs/$ID/roster" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/programs/${id}/roster`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/registrations/$ID/decide

Enroll a registration's children, decline it, or mark it paid (paid at the desk) and enroll (site leads and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/registrations/$ID/decide" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/registrations/${id}/decide`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/reports/custom/fields

What a custom report can show: for each dataset, its columns, groups, counts and filters (children's names are marked; nothing sealed is on the list), and your saved reports with their schedules

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/reports/custom/fields" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/custom/fields`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/reports/custom/run

Run a custom report on the sites you can see (at most 92 days and 5,000 rows), as JSON or CSV; children's names only for signed-in staff who may see children's records

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/reports/custom/run" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/custom/run`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/reports/saved

Your organization's saved reports and their schedules

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/reports/saved" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/saved`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/reports/saved

Save a custom report for your organization (site leads and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/reports/saved" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/saved`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/reports/saved/$ID

Rename or change a saved report, or archive it (site leads and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/reports/saved/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/saved/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/reports/saved/$ID/run

Run a saved report for its dates (or other dates), as JSON or CSV

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/reports/saved/$ID/run" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/saved/${id}/run`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/reports/saved/$ID/schedule

Turn a report's schedule on or off: daily, weekly or monthly, the staff to tell (members of your organization, at most 10). They get a notice with a link, never the rows. At most 10 scheduled reports.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/reports/saved/$ID/schedule" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/saved/${id}/schedule`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/reports/sites

Every site side by side for a date range: visits, children, families, child-hours, staff-hours, staff-hours the ratio needed and hours short (owners and admins; counts only; CSV with format=csv)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/reports/sites" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reports/sites`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### DELETE /v1/mkt/care/reservation-groups/$ID

Cancel a family's booking or waitlist place for a session; the next waiting families that fit are booked

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/reservation-groups/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reservation-groups/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/reservation-groups/$ID/move

Move a family's booking to another session (booked or waitlisted there, as places allow); the old place goes to the waitlist

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/reservation-groups/$ID/move" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/reservation-groups/${id}/move`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/daily-summary

Today's daily-sheet counts for a room: children here, and how many meals, bottles, naps, diapers, activities, moods and photos were logged (no names)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/daily-summary" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/daily-summary`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/immunization-flags

Which children in a room have immunization records due or overdue (a flag only: no doses, no kind of exemption)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/immunization-flags" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/immunization-flags`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/lesson-plans/$WEEK

A room's lesson plan for the week that includes this date (YYYY-MM-DD)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/lesson-plans/$WEEK" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/lesson-plans/${week}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/rooms/$ID/lesson-plans/$WEEK

Write a room's lesson plan for the week that includes this date (no children's details here)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/lesson-plans/$WEEK" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/lesson-plans/${week}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/lesson-plans/$WEEK/lessons

The lessons on a room's weekly plan, by weekday

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/lesson-plans/$WEEK/lessons" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/lesson-plans/${week}/lessons`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/rooms/$ID/lesson-plans/$WEEK/lessons

Set the lessons on a room's weekly plan, by weekday (replaces the week's list; starts the week's plan if there isn't one)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/lesson-plans/$WEEK/lessons" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/lesson-plans/${week}/lessons`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/logs

Today's care logs for the children checked in to a room (medication shows as given, with the time; its detail opens one at a time)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/logs" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/logs`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/rooms/$ID/meal-services

Start a meal service in a room today (one per meal type a day), with its menu; opening it again returns it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/meal-services" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/meal-services`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/rooms/$ID/observation-coverage

A room's observations over the last days (30 by default): how many, by domain, and the children with none yet (first names for staff in the app; counts only for keys and assistants)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/observation-coverage" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/observation-coverage`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/rooms/$ID/report-drafts

Draft today's report for each child checked in to a room today (at most 10, one at a time, within your daily limit). Each draft still needs its own approval

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/report-drafts" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/report-drafts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/rooms/$ID/sessions

Publish a bookable session in a room (a start, an end, a capacity up to the room's), once or weekly for up to 12 weeks (site leads and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/sessions" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/sessions`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/rooms/$ID/shifts

Start a staff member's shift in a room (they count toward its ratio until it ends; one open shift each)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/rooms/$ID/shifts" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rooms/${id}/shifts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/rules/$STATE

A state's licensing rules for each program type, each with its regulation section and source (reference, not legal advice)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/rules/$STATE" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/rules/${state}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sample

Add a sample site with made-up families, to try check-in, ratios and pickups (every name is marked as a sample)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sample" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sample`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/sessions/$ID

Cancel a session: its bookings and waitlist are cancelled (nobody is messaged; tell families yourself or with an announcement)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/sessions/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sessions/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sessions/$ID/reservations

Who's booked for a session and who's waiting, in order (first names and initials, by family)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sessions/$ID/reservations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sessions/${id}/reservations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sessions/$ID/reservations

Book a family's children into a session together, or put them on its waitlist together when they don't all fit

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sessions/$ID/reservations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sessions/${id}/reservations`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings

Your organization's childcare switches (photos of children and pickups: off until turned on)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings

Turn photos of children and pickups on or off (owners and admins; each photo still needs a guardian's consent)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/activity-photos

Turn photos of the day on or off (owners). Separate from identification photos; each child also needs a guardian's consent. Turning it off deletes every photo of the day.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/activity-photos" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/activity-photos`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/activity-videos

Turn videos of the day on or off (owners). Separate from photos of the day; each child also needs a guardian's consent to videos; no sound; turning them off deletes every video of the day.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/activity-videos" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/activity-videos`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/assistant

The assistant's features, each off until an owner turns it on: what it does, what goes to the model provider and what never does, who may use it, its daily limit and this month's use

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/assistant" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/assistant`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/assistant

Turn the assistant's features on or off and lower their daily limits (owners, in the app). Turning one on sends nothing and drafts nothing by itself

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/assistant" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/assistant`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/conversations

Whether families can message you, staff quiet hours and the daily limits on messages

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/conversations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/conversations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/conversations

Turn messages with families on or off, allow room conversations, set staff quiet hours and the daily limits (owners and admins). Telling families there's a reply is its own message, 'Replies from staff', in Family messages

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/conversations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/conversations`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/daily-report

When the daily report goes (at pickup, or at a time at each site's day's end) and about how many a day it would send at your recent attendance

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/daily-report" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/daily-report`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/daily-report

Choose when the daily report goes: at pickup, or at a time each site's day ends (owners and admins). It still goes only once you turn the Daily report message on.

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/daily-report" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/daily-report`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/family-booking

Let families book sessions from their family view (owners and admins; off until turned on)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/family-booking" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/family-booking`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/family-messages

Set your organization's daily limit on family messages (owners; at most 20,000 a day)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/family-messages" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/family-messages`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/family-view

Turn the family view on or off: guardians you invite see their own children's check-ins and pickup list

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/family-view" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/family-view`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/immunizations

Turn immunization records on or off (owners and admins). Records already kept stay until their retention; nothing is sent by turning this on

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/immunizations" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/immunizations`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/kiosk-pin

Set the PIN staff enter to leave the check-in kiosk (4 to 8 digits; owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/kiosk-pin" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/kiosk-pin`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/labels

A home daycare: print labels and pickup tags at check-in, or not (owners and admins; centers always print them)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/labels" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/labels`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/prospect-messages

Which emails to prospective families are on (each off until you turn it on), the daily limit, and today's count

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/prospect-messages" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/prospect-messages`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/prospect-messages

Turn emails to prospective families on or off (an inquiry receipt, a tour confirmation, a tour reminder; owners and admins) and set the daily limit (owners). Nothing is sent for what happened before

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/prospect-messages" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/prospect-messages`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/qualifications

Who counts toward each kind of room's ratio (the certifications required and a minimum age, with the site's state's own words beside them), whether the ratio counts only qualified staff, and the expiry notices

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/qualifications" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/qualifications`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/qualifications

Set who counts toward each kind of room's ratio, whether the ratio counts only qualified staff, and the certification expiry notices (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/qualifications" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/qualifications`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/settings/stripe-account

Connect (or disconnect) your organization's own Stripe account for card payments on registrations: the account id from your Stripe dashboard (owners)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/settings/stripe-account" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/stripe-account`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/settings/stripe-connect

Your Stripe account's state for card payments: connected, details submitted, able to take charges (read from Stripe; owners)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/settings/stripe-connect" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/stripe-connect`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/settings/stripe-connect

Start (or continue) Stripe's own onboarding for your organization's Stripe account, for card payments on registrations: returns Stripe's link (owners, signed in)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/settings/stripe-connect" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/settings/stripe-connect`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/setup/checklist

What's left to set up: a center's path from its site to its first invoices, or a home's from its home to the first daily report

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/setup/checklist" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/setup/checklist`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/setup/home

Your home daycare's setup: the home, its type and the state's limit, and what's left on the checklist

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/setup/home" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/setup/home`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/setup/home

Set up a home daycare (owners): your home as the one site, one room of your state's home type, and you as its caregiver. Nothing is sent and nothing else is turned on

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/setup/home" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/setup/home`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/setup/kind

Say whether this organization is a center or a home daycare (owners, as they create it): the getting-started checklist follows. Changes nothing else

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/setup/kind" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/setup/kind`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/shifts/$ID/end

End a shift. Refused when it would leave a room short of the staff its children need

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/shifts/$ID/end" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/shifts/${id}/end`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites

The sites you work at (all sites for owners and admins)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sites

Add a site: a building where you care for children, in the state whose licensing rules apply

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/board

Each room right now: children checked in, staff on shift, what the state's ratio needs and whether it holds

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/board" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/board`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/sites/$ID/cacfp

Say whether a site claims the USDA food program (CACFP) and in which component: a center, or at-risk afterschool (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/sites/$ID/cacfp" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/cacfp`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/cacfp/claim

A site's CACFP claim for a month: each meal type served and claimable, by eligibility category (format=csv for a file)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/cacfp/claim" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/cacfp/claim`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/door-log

A site's door log, newest first: which door, what opened it, the outcome and why (site leads and admins; at most 200 at a time)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/door-log" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/door-log`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/doors

A site's doors and what opens each (staff of the site)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/doors" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/doors`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/doors

Add a door at a site: its lock's id at the vendor and what may open it (check-in, staff); off until turned on (owners and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/doors" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/doors`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/enrollment-funnel

How inquiries moved through the stages over a period (90 days by default): counts by stage and how many reached each, no names

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/enrollment-funnel" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/enrollment-funnel`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/exports/subsidy

A month's subsidy attendance for a site: each subsidized child's days (first in, last out, minutes, who collected them, or absent and why), with the case number, as JSON or CSV for the state's portal (site leads and admins; each export recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/exports/subsidy" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/exports/subsidy`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/forms-due

Families of a site (checked in in the last 90 days) missing a form, or whose form has expired or expires in 14 days (site leads and admins; at most 500)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/forms-due" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/forms-due`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/hours/now

Who is clocked in and on a break at a site now (names for signed-in staff at the site; counts only for keys and assistants)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/hours/now" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/hours/now`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/hours/summary

A site's hours for a pay period: how many people worked, total regular, overtime and double-time hours, timesheets approved and waiting, and punches to look at. Totals only, no names

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/hours/summary" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/hours/summary`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/immunizations/report

A site's immunization status: children up to date, due soon, overdue, in a grace period and exempt (site leads and admins also see exemptions by kind and who to follow up with; keys get the counts)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/immunizations/report" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/immunizations/report`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/incidents

A site's incidents over the last days (kind, child's first name, times, whether the guardian was told and acknowledged); what happened opens one at a time

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/incidents" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/incidents`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/meal-services

A site's meal services on a day (today by default), with how many children were counted at each

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/meal-services" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/meal-services`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/offline-pack

This site's copy for offline check-in on a staff device: rooms and staff on shift, who's checked in, and the site's families for finding them and checking pickups (no notes, photos or contact details; each download recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/offline-pack" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/offline-pack`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/openings

Openings by room for the coming months, from children's birthdays, moves up to the next room, planned leaves and room sizes, with the waitlisted families who fit (names for staff in the app; counts for keys and assistants)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/openings" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/openings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/programs

A site's after-school and camp programs: days, dates, room and how many children are enrolled

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/programs" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/programs`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/programs

Add an after-school or camp program at a site: its room, weekdays, dates, and whether pickups sign (site leads, admins, owners)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/programs" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/programs`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/reports/attendance

Attendance records for a site and date range: each visit with the child's name, room, program, times and who brought and collected them (site leads and admins; each export recorded; CSV with format=csv)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/reports/attendance" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/reports/attendance`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/reports/staffing

Staffing from real attendance: per room, child-hours, staff-hours, the hours the ratio needed and the hours short; and the average children and staff needed by weekday and hour (counts only; CSV with format=csv)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/reports/staffing" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/reports/staffing`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/reports/usage

Usage for a site by day: visits, children, families, average stay and the busiest hour (counts only; CSV with format=csv)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/reports/usage" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/reports/usage`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/rooms

A site's rooms with their program type, ages and capacity

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/rooms" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/rooms`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/rooms

Add a room to a site: its program type (whose licensing rules apply), ages and capacity

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/rooms" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/rooms`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/rosters

Import several programs' rosters from one file (CSV with a program column naming each row's program at this site): preview first, then file the families and enroll each child in their program. Nothing is sent to anyone

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/rosters" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/rosters`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/schedules/$WEEK

A site's schedule for a week: planned shifts by room, the times a room would be short of the staff its expected children need (and times with no one to cover a break), and overtime warnings. Staff see published weeks; keys and assistants get counts and times, no names

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/schedules/$WEEK" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/schedules/${week}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/sites/$ID/schedules/$WEEK

Set a site's planned shifts for a week (site leads for their sites, owners and admins; at most 500 shifts). Replaces the week's shifts and returns the checks

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/sites/$ID/schedules/$WEEK" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/schedules/${week}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/schedules/$WEEK/copy

Start a week's schedule from an earlier week's shifts, moved to the same weekdays (only into a week with no shifts yet)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/schedules/$WEEK/copy" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/schedules/${week}/copy`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/schedules/$WEEK/publish

Publish a week's schedule so the site's staff see it in the app (it tells no one by itself; shortfalls don't block it)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/schedules/$WEEK/publish" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/schedules/${week}/publish`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/sessions

A site's sessions between two times (the next 7 days by default) with booked, waiting and places left (no names)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/sessions" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/sessions`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/sync-conflicts

What offline devices sent that couldn't be applied as it was, for a site lead to accept or dismiss (open first)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/sync-conflicts" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/sync-conflicts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/timesheets

Every staff member's timesheet at a site for a pay period: hours, flags and status (site leads for their sites, owners and admins; at most 500 people)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/timesheets" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/timesheets`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/tour-slots

A site's tour times in the next three weeks, with places booked and left

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/tour-slots" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/tour-slots`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/sites/$ID/tour-slots

Offer a tour time at a site (15 to 120 minutes, up to 10 families)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sites/$ID/tour-slots" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/tour-slots`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/visits

Who's checked in at a site now (first names, rooms, flags), or today's check-ins and check-outs. At most 500

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/visits" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/visits`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/sites/$ID/whereabouts

Where everyone is at a site now: each room's children with where their parent is (first names and initials for staff who may see children; counts and parents' locations otherwise)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/sites/$ID/whereabouts" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sites/${id}/whereabouts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/staff

Your organization's childcare staff, their roles and sites (owners and admins see everyone; others see their sites')

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/staff" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/staff

Add a staff member with a role and the sites they work at: a member of your organization, or someone new with their email, who gets an invitation and is linked to this record when they accept it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/staff-certs/$ID

Strike out a certification recorded by mistake or replaced (kept on the record with who and when; owners and admins)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/staff-certs/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff-certs/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/staff-certs/expiring

Certifications and background checks expired or expiring in the next 60 days, by staff member (owners and admins see everyone; site leads their sites' staff). No report contents

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/staff-certs/expiring" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff-certs/expiring`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PATCH /v1/mkt/care/staff/$ID

Change a staff member's role and the sites they work at, or remove them (owners and admins)

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/staff/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/staff/$ID/certs

Record a staff member's certification or background-check status, with the date checked and when it expires (owners and admins; the report itself is never stored)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff/$ID/certs" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/certs`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/staff/$ID/clock-pin

Issue a new 6-digit clock PIN for a staff member (yourself, or your sites' staff as a site lead, or anyone as an owner or admin). Shown once; the old PIN stops working

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff/$ID/clock-pin" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/clock-pin`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/staff/$ID/date-of-birth

Record a staff member's date of birth, for the minimum age to count toward a ratio (owners and admins)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/staff/$ID/date-of-birth" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/date-of-birth`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/staff/$ID/pay-settings

A staff member's id in your payroll provider, and whether daily overtime applies to them where a state makes it depend on the person (owners and admins). No pay rates are kept

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/staff/$ID/pay-settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/pay-settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/staff/$ID/qualifications

A staff member's certifications and background-check status (never the report), and for each kind of room whether they count toward its ratio and why not

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/staff/$ID/qualifications" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/qualifications`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/staff/$ID/timesheet

A staff member's timesheet for a pay period: each punch (corrections beside the originals), hours by day split into regular, overtime and double time, flags to look at, and whether it's approved

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/staff/$ID/timesheet" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/timesheet`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/staff/$ID/timesheet/approve

Approve a staff member's timesheet for a pay period (site leads for their sites, owners and admins; not your own). Refused while a punch is open, a flag needs fixing or a correction waits

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff/$ID/timesheet/approve" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/timesheet/approve`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/staff/$ID/timesheet/attest

Confirm your own hours for a pay period are right (before your site lead approves them)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff/$ID/timesheet/attest" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/timesheet/attest`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/staff/$ID/timesheet/reopen

Reopen an approved timesheet to correct it, with the reason. If it was already sent to payroll, the next payroll file carries the difference

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/staff/$ID/timesheet/reopen" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/staff/${id}/timesheet/reopen`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PATCH /v1/mkt/care/subsidy-authorizations/$ID

Fill in or correct an authorization (its units, rate and site make one that needs detail start paying), change its end date, or end it with a reason. Once a claim uses it, its rate, units and co-pay stay: end it and add a new one

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/subsidy-authorizations/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy-authorizations/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/agencies

The agencies that pay for children's care (state programs, counties, workforce boards), with the rules you set up from each one's provider agreement

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/agencies" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/agencies`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/agencies

Add an agency with its rules from your provider agreement: how it pays (full and part days, hours, by week, month or enrollment), paid absences, and whether a family may be billed the rate difference (off by default)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/agencies" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/agencies`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PATCH /v1/mkt/care/subsidy/agencies/$ID

Change an agency's rules (claims already prepared keep the rules they were prepared with), or archive it

```bash
curl -s -X PATCH "https://api.tendbrook.com/v1/mkt/care/subsidy/agencies/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/agencies/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/aging

What agencies still owe, by how long since the period ended: 0–30, 31–60, 61–90 and over 90 days (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/aging" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/aging`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/authorizations

Subsidy authorizations across children, with each child's name, newest first (up to 200 a page; next_cursor for more; billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/authorizations" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/authorizations`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/claims

Claims to agencies, newest period first (up to 100 a page; next_cursor for more): status, expected and received (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/claims" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims

Start (or recompute) a draft claim to an agency for a site and period: what the agency should pay for each child, from attendance and their authorization. Nothing is posted or sent

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/claims/$ID

A claim with each child's line: units, how they were counted, expected, received and the difference (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims/$ID/close

Close a claim once every line is paid or resolved; reopening it later needs a reason

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID/close" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}/close`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims/$ID/copays

Post each child's co-pay for the claim's period to their family's account (preview first: the count and total). Posting sends nothing; it shows on the family's next invoice

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID/copays" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}/copays`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims/$ID/prepare

Prepare a draft claim: its lines are frozen, and each child's expected amount is posted to the agency's account (preview first: the count and total). Refused while an authorization for this agency and site still needs its units and rate

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID/prepare" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}/prepare`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims/$ID/reopen

Reopen a prepared claim to recompute it, with the reason: its posted amounts are reversed. Refused once a deposit is matched to it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID/reopen" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}/reopen`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/claims/$ID/submitted

Mark a claim as submitted: you keyed it into the agency's or state's portal (or sent it) on this date. Nothing is sent from here

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/claims/$ID/submitted" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/claims/${id}/submitted`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/flags

What needs a look: lines paid short or over (deferred ones from their follow-up date), claims overdue, care over the approved units, authorizations ending within 30 days or still needing detail, with the children's names (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/flags" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/flags`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/lines/$ID/resolve

Resolve a line's difference with a note: waive it, wait for it (with a date to look again), bill the family (not a rate difference where the agency forbids it), bill the family for care over the approved units, record an overpayment returned to the agency, or note a resubmission. Billing a family sends nothing

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/lines/$ID/resolve" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/lines/${id}/resolve`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/payments

Record a deposit from an agency (its date, amount and check or EFT number). It's matched to children next; nothing is matched by itself

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/payments" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/payments`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/payments/$ID/allocate

Match a deposit to children's lines (amounts in cents; never more than the deposit holds). A line paid within your tolerance is matched; otherwise it's under or over until resolved

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/payments/$ID/allocate" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/payments/${id}/allocate`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/subsidy/payments/import

Read an agency's remittance file (CSV, with your column names) and suggest which child and period each row pays. With preview, nothing is recorded; otherwise the deposit is recorded and the suggestions wait for you to accept

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/subsidy/payments/import" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/payments/import`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/subsidy/settings

Subsidy settings: the difference that still counts as paid (rounding), and how many days after a period a claim with nothing received is overdue

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/subsidy/settings" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/settings`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/subsidy/summary

Subsidy by agency for a range of periods: expected, received, written off, billed to families and still owed. Totals by agency (billing access)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/subsidy/summary" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/subsidy/summary`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/support-grants

Support access you have given: who, why, until when, and whether it is still live (owners and admins; at most 50, newest first)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/support-grants" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/support-grants`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/support-grants

Let one of our support team see your families and site counts for a set time (1–72 hours), with a reason; never medical or custody notes or photos (owners, signed in)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/support-grants" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/support-grants`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/support-grants/$ID

End support access now (owners, signed in)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/support-grants/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/support-grants/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/care/support/thread

Your organization's conversation with our support team, oldest first, and whether support access is live (owners and admins)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/support/thread" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/support/thread`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/support/thread

Write to our support team (owners and admins; leave out children's details: if we need to see a family, give support access for a few hours)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/support/thread" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/support/thread`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/sync

Send what a staff device did while offline (check-ins and releases, in order): each is applied against what's true now, once; what can't be applied as it was goes to the site lead as a conflict

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sync" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sync`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/sync-conflicts/$ID/resolve

Accept an offline conflict (record the check-in or release as it happened, with your reason) or dismiss it (site leads and admins)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/sync-conflicts/$ID/resolve" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/sync-conflicts/${id}/resolve`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/care/tour-slots/$ID

Cancel a tour time (families booked on it are cancelled too; tell them yourself)

```bash
curl -s -X DELETE "https://api.tendbrook.com/v1/mkt/care/tour-slots/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/tour-slots/${id}`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/tours/$ID

Record how a tour went (attended or no-show), or cancel it

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/tours/$ID" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/tours/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/videos/$ID

Play a video of the day (staff of the site; each view is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/videos/$ID" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/videos/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/videos/$ID/complete

Finish a video of the day once every part is in: it's checked (a video, no sound, at most 15 seconds) and shown in the child's day

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/videos/$ID/complete" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/videos/${id}/complete`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### PUT /v1/mkt/care/videos/$ID/parts/$N

Send one part of a video of the day (base64, at most 256 KB each, in order or not)

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/videos/$ID/parts/$N" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/videos/${id}/parts/${n}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits

Check children in to a room (one family's, together): refused when the room is full or the staff on shift wouldn't keep the ratio. Returns a label for each child and one pickup tag, sharing a code shown once

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/check-out

Check a child out to the person collecting them: an authorized pickup with the tag's code, or a site lead's override with a reason. A blocked person is always refused

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/check-out" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/check-out`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/incidents

Record an incident (injury, illness, behavior) during a child's visit: what happened (kept sealed), first aid, who saw it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/incidents" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/incidents`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/logs

Log care for a child who's checked in: a diaper change, a nap (start; end it later), a meal (how much was eaten), a bottle (what and how much), an activity, the child's mood, a note, a photo of the day (activity photos on, the guardian's consent, only this child in it), or medication given (with the guardian's written authorization on file; name and dose kept sealed)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/logs" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/logs`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/move

Move a checked-in child to another room at the same site (refused when that room is full, outside the child's age, or short of staff for the ratio); the move is kept

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/move" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/move`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/visits/$ID/moves

Where a child was during a visit: the room they were checked in to, each move, and each change of where the parent was

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/visits/$ID/moves" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/moves`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/care/visits/$ID/parent-location

Note where to reach the parent during the visit (for the family's children here together); each change is kept

```bash
curl -s -X PUT "https://api.tendbrook.com/v1/mkt/care/visits/$ID/parent-location" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/parent-location`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/reprint

Print a new label and tag (a new code; the old tag stops working)

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/reprint" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/reprint`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/care/visits/$ID/signature

The signature given at a child's pickup, for a site lead or admin (each view is recorded)

```bash
curl -s "https://api.tendbrook.com/v1/mkt/care/visits/$ID/signature" \
  -H "Authorization: Bearer $EC_API_KEY"
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/signature`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/care/visits/$ID/videos

Start a video of the day of a checked-in child (videos on, the guardian's consent, only this child in it, no sound, at most 15 seconds and 4 MB); then send its parts and complete it

```bash
curl -s -X POST "https://api.tendbrook.com/v1/mkt/care/visits/$ID/videos" \
  -H "Authorization: Bearer $EC_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.tendbrook.com/v1/mkt/care/visits/${id}/videos`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.EC_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

Request and response schemas: [https://www.tendbrook.com/openapi.json](https://www.tendbrook.com/openapi.json). All resources: [API reference](https://www.tendbrook.com/docs/api).
