# Smileline Docs > Smileline is the CRM for dental practices: lead capture, calling, patient > records, booking and marketing, with a JSON HTTP API behind all of it. - [All guides and concepts as one file](/llms-full.txt) - [OpenAPI specification](/openapi.json) - Guides: How to use the Smileline CRM - [Welcome to Smileline](/guides): The CRM built for dental practices — capture leads, run your day, and keep every patient conversation in one place. - **Get started** - Getting started - [Sign in](/guides/getting-started/sign-in): Sign in to Smileline with your email and password or with Google or Apple, and reset your password when you forget it. - [Create your practice](/guides/getting-started/create-organization): Set up your practice organisation in Smileline and invite your team with the right roles. - [Setup guide](/guides/getting-started/setup-guide): The checklist at the foot of the left rail that walks a new practice through inviting the team, choosing a practice management path, completing locations, connecting leads, payments, phone numbers, channels and ads. - [Switching from another CRM](/guides/getting-started/switching-crm): Run Smileline alongside your old CRM, then import its history without duplicating the leads that already reached Smileline. - [Switching from Dentally](/guides/getting-started/switching-from-dentally): Bring a practice's whole Dentally history into Smileline from Dentally's full export — checked first, imported without contacting anyone, then taken live. - [Workspaces](/guides/getting-started/workspaces): Smileline has a CRM workspace and a clinical workspace. Learn which one your role opens, where you land after sign-in, how to get around, how to switch between them, and how to hide the one you don't use. - [Quick search](/guides/getting-started/quick-search): Jump to any patient, page or setting from anywhere in Smileline with one shortcut. - [Demo data](/guides/getting-started/demo-data): Seed your practice with realistic sample records, then remove an unchanged set or archive a modified one safely. - **Daily work** - Leads - [Overview](/guides/today/overview): The Leads page is your daily work queue — who is waiting on you, who to call next, and new leads the moment they arrive. - [Outcomes and undo](/guides/today/outcomes-and-undo): Record what happened on each queue item with the outcome wizard, and undo a just-recorded outcome. - [Team calling](/guides/today/team-calling): Split calling between openers and closers — one lead each, live hand-offs that connect by themselves, and promised call-backs when every closer is busy. - [Finance check](/guides/today/finance-check): Check during the call whether a patient can spread the cost of treatment with your practice's own lender. - Calls - [Call recording](/guides/calls/recording): Record calls for training and dispute resolution with consent, central retention controls and a full audit trail. - [Call AI](/guides/calls/call-ai): After each answered call, Smileline writes a summary, the outcome, the next step and a plan for the next call — plus coaching for whoever took it. - [WhatsApp calls](/guides/calls/whatsapp-calls): Let patients call your practice on WhatsApp, ask them for permission to call back, and call them from Leads with one click. - Desktop app - [Desktop app](/guides/desktop-app): Smileline Desk keeps the Leads queue, inbox, calendar, patients, the clinical diary, To do, patient records, lab, stock, staffing, payments and clinical reports, and optional practice calling together in a dedicated desktop app. - [Install and sign in](/guides/desktop-app/install): Download Smileline Desk for macOS or Windows, sign in once, and stay signed in. - [Calls on the desk](/guides/desktop-app/calls): Incoming screen pops and click-to-call for Smileline Voice practices. - [The call log](/guides/desktop-app/call-log): Every call in and out of the practice, with recordings, AI transcripts and summaries, without leaving the desk. - [Tray and availability](/guides/desktop-app/tray-and-availability): Hide the desk to the tray and keep ringing, open it at login, or switch to Do not disturb when you step away. - [New-lead window](/guides/desktop-app/new-lead-window): Make the desktop app put every new lead on screen until it's handled, with a reason logged when someone closes it early. - [Imaging](/guides/desktop-app/imaging): Set up the computer beside your imaging software to send new x-rays and photos to Smileline from a folder, and open your imaging program from a patient's record. - Smileline Uploader - [Smileline Uploader](/guides/uploader): A Windows app that sends the scans, x-rays, CBCT and photos your practice's software saves straight to each patient's record. - [Install and connect](/guides/uploader/install): Download Smileline Uploader, install it on a practice computer and connect that computer to your practice. - [Folders](/guides/uploader/folders): Choose the folders Smileline Uploader watches, say what each one holds, and sign in to a network folder. - [How the patient is found](/guides/uploader/finding-the-patient): How Smileline Uploader files each upload onto its patient by itself, what always stops it, and how to file by hand. - [History and upload pace](/guides/uploader/history): See every file a computer has sent and where it went, pause uploads, and how the daily upload pace works. - Mobile app - [Mobile app](/guides/mobile-app): The Smileline app for iPhone and Android puts the lead queue, the clinical diary, the inbox, your calls and the dashboard in your pocket, with push notifications for new leads and replies. - [Calls on your phone](/guides/mobile-app/calls): With Smileline Voice the mobile app calls leads over the practice line, takes calls and keeps the call log in your pocket. - [Widgets and app icon](/guides/mobile-app/widgets): Add Smileline widgets to your iPhone's home and lock screen to see your goal, leads, inbox, shift and day at a glance, and let the app icon dress up for occasions. - [The Shop on the phone](/guides/mobile-app/shop): Shop for dental supplies, check out, approve colleagues' baskets and follow your orders in the Smileline app for iPhone and Android, in the UK (except Northern Ireland) and the US. - [Browser extension](/guides/browser-extension): The Smileline Chrome extension puts a free on-page SEO report, structured data checks, Google and Bing result tools, a live tag checker and YouTube transcripts one click away — and, signed in, patient and lead search, texts and leads from any page, notes for your team, your website's heatmaps, social posts from videos and your practice dialer. - [Page notes](/guides/page-notes): Pin notes for your team to any web page, reply and resolve them, and share a page's open notes with someone outside Smileline by a view-only link. - Desk phones - [Desk phones](/guides/desk-phones): Use a physical SIP handset as a member's calling device or a shared reception phone, or move a whole number onto it as a desk phone line — and understand what each gives up. - [Yealink](/guides/desk-phones/yealink): Register a Yealink T3x, T4x or T5x series IP phone as a desk handset or on a desk phone line. - [Grandstream](/guides/desk-phones/grandstream): Register a Grandstream GRP26xx series IP phone as a desk handset or on a desk phone line. - [Poly](/guides/desk-phones/poly): Register a Poly VVX x50 or Edge E series IP phone as a desk handset or on a desk phone line. - [Fanvil](/guides/desk-phones/fanvil): Register a Fanvil X-series IP phone as a desk handset or on a desk phone line. - [Cisco](/guides/desk-phones/cisco): Register a Cisco 68xx or 88xx multiplatform (MPP) phone as a desk handset or on a desk phone line. - [Cordless (DECT)](/guides/desk-phones/dect): Register a Yealink W-series DECT base station so cordless handsets ring, as a desk handset or on a desk phone line. - [Analogue adapter (ATA)](/guides/desk-phones/ata): Keep an existing analogue phone by registering a Grandstream HT801 or HT802 adapter as a desk handset or on a desk phone line. - Patients - [List and filters](/guides/patients/list-and-filters): Search, filter, and sort the patients table to find exactly the records you need. - [Saved views](/guides/patients/saved-views): Save reusable patient list filters for yourself or the whole practice. - [CSV export](/guides/patients/csv-export): Download the patients you're currently looking at as a CSV file. - [Bulk actions](/guides/patients/bulk-actions): Select many patients at once to tag them, set their location, export them, or archive them. - [The patient record](/guides/patients/patient-detail): Everything about one patient — contact details, tags, treatment journeys, and their full activity history. - [Clinical chart](/guides/patients/clinical-chart): Chart treatment and existing work in one click, record findings, and plan, complete or void procedures on the patient's chart in the PMS workspace. - [Chart history](/guides/patients/chart-history): Everything on a patient's chart in one table — treatments, findings, clinical notes, perio exams and prescriptions — to filter, search and print as a PDF. - [Periodontal examinations](/guides/patients/perio): Six-pocket perio charts with graphs, a plaque and bleeding chart, BPE and PSR screening, BEWE and soft-tissue examinations on the clinical record — drafted, completed and amended with every earlier version kept. - [Orthodontic assessments](/guides/patients/orthodontic-assessments): Record a full orthodontic case assessment on the chart — IOTN and the FP17O outcome in the UK, with commissioner approval flagged automatically for NHS England patients aged 18 or over at referral. - [Treatment plans](/guides/patients/treatment-plans): Draft a plan from charted procedures, present it, record which treatments the patient accepts or declines, change it at any stage, and follow it through treatment to completion. - [Placed devices and lot recalls](/guides/patients/placed-devices): Record the implant or device a treatment placed, from the barcode on its box, correct it when it was wrong, and find every patient who received a recalled lot. - [Sterilisation log](/guides/patients/sterilisation): Record which passed autoclave cycle sterilised the instruments used on a patient, at the end of the visit, and see the patient's uses on their record. - [Clinical notes and medical history](/guides/patients/clinical-notes): Write, complete and sign clinical notes, and keep the patient's conditions, medications, allergies and alerts as an append-only history. - [Voice notes](/guides/patients/voice-notes): Record a dictation or an appointment on the patient's record and let Smileline write a draft note for you to check, edit, complete and sign. - [Patient forms and recalls](/guides/patients/forms-and-recalls): See where a patient's medical history stands, record their form answers at the desk and have a clinician review them, and work the record's Visits tab — one timeline of appointments, plan visits and recalls, with the summary and the waitlist beside it. - [Send a form by link or QR code](/guides/patients/form-links): Send a patient a form to fill in on their own phone, or show it as a QR code at reception, and see what they see and where their answers land. - [Patient portal](/guides/patients/patient-portal): Let patients and parents open their records online with a secure link and a date of birth, or with their own account, to confirm or change appointments, fill in forms, pay deposits and balances, download shared documents and sign treatment plans. - [Patient app](/guides/patients/patient-app): Your practice's own app in the App Store and Google Play, for UK, US and Irish practices — what it costs, how to request it and set up your store accounts, and everything patients can do in it. - [Account and payments](/guides/patients/ledger): The patient's ledger on the clinical record — charges, payments (cash, card or on a card reader), refunds, adjustments, reversals, invoices, credit notes and family accounts; the till and period close are on Payments. - [Payments](/guides/patients/payments): The practice's money in the clinical workspace — every payment taken in a range of days and the till, banking cash and cheques, the balances patients owe, the claims to chase and the deposit requests, with month end and associate pay for owners and managers. - [Insurance cover and estimates](/guides/patients/insurance): Record who covers a patient, in what order, what benefit has been used this year, and estimate the insurance portion of planned treatment. - [Insurance claims](/guides/patients/claims): Build a claim from completed treatment, send it to the clearinghouse, check eligibility, and record what the payer answers. - [NHS details](/guides/patients/nhs): Record a patient's NHS number, exemption or remission, and ethnicity so the FP17 cites them. - [Prescriptions](/guides/patients/prescriptions): Draft a prescription with the patient's alerts, allergies and medications in view, check it for drug interactions, issue and print it, and void one that must not be dispensed. - [Lab cases and referrals](/guides/patients/lab-and-referrals): Send lab work to a lab by email or to a connected lab and follow it through to fitting, and track referrals to or from other clinicians through to their outcome, on the record's Correspondence panel, the practice-wide Lab orders page or from a perio exam. - [Scans](/guides/patients/scans): File the scans your intraoral scanners send onto the right patient, look at them in 3D, and send them to a lab with an order. - [Share files by link](/guides/patients/share-files): Send a lab, or anyone, a private link to a patient's x-rays, photos, scans and documents that they can open without an account. - [Opening files](/guides/patients/file-viewer): What happens when you open a patient's file — PDFs, Word and Excel files, emails, DICOM x-rays, videos, archives, 3D files and the rest — and what to do when a preview isn't ready yet. - [SmileDesign](/guides/patients/smile-design): Design a patient's new smile on their own photo — with AI, or from the lab's wax-up — see it in HD and in 3D on their scan, export it for the lab and share the before and after with them. - [Plan implants in SmileGuide](/guides/patients/smileguide): Open a patient's CBCT and intraoral scans in SmileGuide, the implant planner, straight from their record, and save the plan to it. - [Letters and the waitlist](/guides/patients/letters-and-waitlist): See a patient's messages, letters and filed documents on the record's Correspondence panel, generate letters and treatment estimates from templates, upload documents, and keep patients who are waiting for an earlier or specific appointment on the waitlist. - [To do](/guides/patients/worklists): The work waiting for you in the clinical workspace, in a tray you open from any page — what is late, then every list with work waiting (online requests, recalls due, treatment to book, notes to sign, voice notes to write up, images to file, forms to review, lab work, referral replies, family links to confirm, money on closed accounts, membership months to review), plus your own tasks and the team's. - Journeys - [Boards and stages](/guides/journeys/boards-and-stages): Track every treatment enquiry through your pipeline on the Journeys board. - [Move, close, and reopen](/guides/journeys/move-close-reopen): Move journeys between stages, record that a patient is going ahead or not proceeding, and reopen closed ones. - Booking deposits - [Set up booking deposits](/guides/deposits/setup): Connect the practice's Stripe account and configure deposit amounts, link expiry, the no-show policy and cancellation refunds. - [Request and track deposits](/guides/deposits/requests): Send a deposit payment link mid-call, record cash payments, and handle refunds and no-shows. - Calendar - [Calendar](/guides/calendar/overview): The practice diary, the week's call-backs, and the month at a glance — three views behind one switch. - [Diary](/guides/calendar/diary): The practice's day, in the clinical workspace and in Calendar — a column per practitioner or room on an hour rail shaded by the rota, changing a practitioner's hours for one day from their column, flags on each card for what needs doing, a date picker that shows how busy each day is, booking by click or drag or from any Book button with Find a time — one clinician or several together — a visit panel with the visit, the patient's details, notes and appointments, booking and moving visits held in Dentally, answering online booking requests, a 3-day view, booking with one dentist — their week alone, their free time in green — Flow as the day's board, and Gaps — the week's free time and who could fill it — beside the waiting list. - [Kiosk check-in](/guides/calendar/kiosk-check-in): Pair a tablet at reception so patients check themselves in for today's appointment with their date of birth. - Rotas - [Rotas](/guides/rotas): The team rota, your own shifts and time off on one page — changes are live for the clinical diary and online booking the moment you save. - [Inventory](/guides/inventory): Keep count of the equipment and consumables in each store room, see what is running low, and know who took or restocked every item, on the web and on a store-room iPad. - Stock tasks - [Move stock between sites](/guides/stock-tasks/transfers): Move stock, its lots and its value from one location to another, with both locations' history showing the move. - [Stocktakes](/guides/stock-tasks/stocktakes): Count a whole location or one stock room item by item, then apply every count at once, with anything that moved meanwhile counted again. - [Pick lists](/guides/stock-tasks/pick-lists): Make lists of what to take off the shelves, print them, and take the stock when they are picked, or check off a day's treatment kits. - [Purchase orders](/guides/stock-tasks/purchase-orders): Order stock from your suppliers, email them the order as a PDF, and receive each delivery into stock with its lots and what it cost. - [Scanning, labels and stock on your phone](/guides/stock-tasks/scanning-and-labels): Scan pack barcodes and Smileline labels with the app's camera, print QR labels for items and rooms, and take, restock, count and pick stock from your phone. - Shop - [Shop](/guides/shop): Buy dental supplies for your practice inside Smileline, sold by Smileline and dispatched by approved suppliers, in the UK (except Northern Ireland) and the US. - [Buying](/guides/shop/buying): Find a product, choose its options and seller, then order it from the basket or with Buy now, paying with the practice's saved method, in the UK (except Northern Ireland) and the US. - [Approvals](/guides/shop/approvals): Send a basket for a buyer to approve, approve and pay a colleague's basket or the store room's requests, and choose who can buy, in the UK (except Northern Ireland) and the US. - [Your orders](/guides/shop/orders): Find an order, open its invoices, cancel what hasn't been dispatched, answer a delay, and keep your orders after the Shop closes, in the UK (except Northern Ireland) and the US. - [Deliveries, check-in and returns](/guides/shop/deliveries): Track a parcel, check it in so your stock is right, report a parcel that doesn't arrive, and return or claim for items, in the UK (except Northern Ireland) and the US. - [Quotes](/guides/shop/quotes): Ask a supplier to quote for equipment, accept the quote and pay its deposit, and pay the balance once it's installed, in the UK (except Northern Ireland) and the US. - [Payments, refunds and invoices](/guides/shop/payments): How Shop orders are paid in the UK (except Northern Ireland) and the US — payment methods, bank checks, clearing, refunds, invoices, credit notes and how VAT and sales tax are shown. - [Shop settings](/guides/shop/settings): Accept the shop terms and save the practice's payment method, choose who can buy, set each site's delivery details, and send your US licence, in the UK (except Northern Ireland) and the US. - [Search the Shop](/guides/shop/search): Find products by name, brand, code or barcode, filter by several categories and brands, price and delivery time, and see related products when your words don't match. - [Reviews and delivery ratings](/guides/shop/reviews): Review the products your practice has received, read what other practices say, and rate how each delivery went. - [Procedure kits](/guides/shop/kits): Tell the Shop what each treatment uses per case, so Needed soon can order it in time, while implant sizes stay for the dentist to choose on the plan. - [Implant sizes on the plan](/guides/shop/materials): Choose the implant system and size for each patient on the treatment plan, and see what was taken from stock when the treatment is completed. - [Auto-order](/guides/shop/auto-order): Let the Shop reorder chosen stock items for each site once a day, within a monthly budget you set, with larger orders waiting for a buyer to approve them. - Staffing - [Staffing](/guides/staffing): Hire permanent staff with job adverts and a board of people looking for work, keep a bank of temps you trust, and book temp dental nurses and hygienists employed by Smileline Staffing. - [Jobs](/guides/staffing/jobs): Advertise a job at one of your sites, share its link, and take applicants from first look to hired, with their CVs kept only as long as you need them. - [Candidates](/guides/staffing/candidates): Browse dental professionals near your site who are looking for work, and invite them to apply to one of your open jobs without ever seeing their contact details. - [Bank](/guides/staffing/bank): Keep a bank of the temp nurses and hygienists you like working with, invite them by email, and block a temp you don't want back. - [Cover](/guides/staffing/cover): Book temp dental nurses and hygienists employed by Smileline Staffing — set up the terms, equal treatment and payment, then post shifts, follow them, confirm their hours and pay the weekly invoice. - [Working as a temp](/guides/staffing/working-as-a-temp): Join Smileline Staffing as a temp dental nurse or hygienist, send your checks, accept your terms, then accept and manage your shifts and send your hours. - [Looking for work](/guides/staffing/looking-for-work): Create a free profile, in any dental role, so practices near you can find you and invite you to apply for their jobs. - Inbox - [Working with conversations](/guides/inbox/conversations): Read, answer and triage patient messages from every channel in one place. - [Channels](/guides/inbox/channels): How WhatsApp, SMS, email, Telegram, Messenger, Instagram, TikTok, comments, live-chat and patient app messages reach the Inbox, and the rules for each channel. - [Message templates](/guides/inbox/templates): Insert reusable message snippets in the composer, and manage the practice's template library. - [AI assist](/guides/inbox/ai-assist): Draft replies and summarise long conversations with AI; a suggested reply is only ever a draft you review. - [AI replies](/guides/inbox/ai-replies): Let the AI answer patients by itself on WhatsApp, SMS, Messenger, Instagram and email, and hand the chat to your team when a person is needed. - Team chat - [Team chat](/guides/team-chat): Message colleagues directly or in a group without leaving the page you are working on. - [AI assistant](/guides/ai-assistant): Ask about your practice from any page, get help with Smileline, and let the assistant prepare changes that run only when you confirm them. - [Academy](/guides/academy): Smileline's training videos and courses for dental teams, shared by every Smileline practice worldwide — watch, pick up where you left off, buy courses for your team, earn CPD certificates, comment, reply, report, run your practice's own channel and follow your team's progress. - **Grow** - Lead capture - [Website tracking](/guides/lead-capture/website-tracking): Install one snippet so Smileline finds your website's forms, captures their submissions and attributes every enquiry. - [Website forms](/guides/lead-capture/website-forms): Build forms in Smileline, confirm the forms detected on your website, and manage every enquiry endpoint from one list. - [Call tracking](/guides/lead-capture/call-tracking): Phone numbers that attribute every call — rotating numbers for your website, and static numbers for the adverts you print. - [Native lead ads](/guides/lead-capture/native-lead-ads): Connect Meta, Google Ads and TikTok lead forms to Smileline — every form on the Pages and accounts you switch on is captured and set up automatically. - [Intake review](/guides/lead-capture/intake-review): Correct and acknowledge capture warnings without losing a lead or silently changing CRM data. - [Review queue](/guides/lead-capture/review-queue): Try again, mark as handled, or delete inbound items that could not be processed — nothing sent to Smileline is ever silently lost. - [Attribution](/guides/lead-capture/attribution): How Smileline records where every lead came from, and where to see it. - **Advanced** - [Custom integrations](/guides/lead-capture/custom-integrations): Give your own form, backend or third-party tool a Smileline capture endpoint, with optional signed server-to-server delivery. - [Post leads from your own code](/guides/lead-capture/direct-posting): Point a website form or script at a capture endpoint URL so submissions become leads automatically. - Online booking - [Set up online booking](/guides/online-booking/setup): Let patients book real appointments themselves — from your website, your ads, or a link in any message. - [How bookings work](/guides/online-booking/bookings): Slot holds, deposits, confirmations and the manage links patients use to reschedule or cancel. - Referrals - [Set up the referral programme](/guides/referrals/setup): Configure rewards for both sides, the qualification rules and the terms that make the offer compliant, then switch the programme on. - [Enroll patients and capture referrals](/guides/referrals/sharing): Give patients their personal link, code and QR, and record the referrals that arrive online, by booking or verbally at reception. - [Approve and fulfil rewards](/guides/referrals/rewards): Work the approval queue on the Referrals page, mark rewards issued, and understand the referral lifecycle end to end. - Chat widget - [Set up the chat widget](/guides/chat-widget/setup): Add the Smileline messenger to your practice website with one line of code. - [Guided qualifier](/guides/chat-widget/scripted-flow): Configure the treatment picker, qualifying questions and contact capture the widget walks visitors through. - [AI assistant](/guides/chat-widget/ai-assistant): Let the widget answer dental and practice questions, qualify leads, and connect booking-ready visitors to your online funnel. - Automations - [Automations](/guides/automations): Flows that chase new leads and keep quiet ones warm, plus booking messages, missed-call texts and recall reminders. - [Flows](/guides/automations/sequences): Create a flow from a template, choose what starts it and who it is for, and build its messages, waits and tasks step by step. - [Booking messages](/guides/automations/reminders): Confirmations, move notices, reminders before and after the visit, and no-show recovery — anchored to the booking. - [Missed calls](/guides/automations/missed-calls): Send one text when a call to your Smileline number goes unanswered, worded for opening hours or for after hours. - [Recall reminders](/guides/automations/recalls): Remind patients when their check-up or hygiene visit falls due — from four weeks before to 18 months after — with a one-tap link to book it. - [Build automations with AI](/guides/automations/build-with-ai): Describe the flows you want and let the AI assistant draft every message, timing and template for you to check, refine and install. - Marketing - [Social workspace](/guides/marketing/social): Publish and schedule posts, collect post ideas, see how every account and post performs, send links by DM to people who comment, connect social accounts and run outbound campaigns in one marketing workspace. - [Social accounts](/guides/marketing/social-accounts): Connect the Facebook Pages, Instagram accounts, Google Business Profile locations, TikTok accounts, LinkedIn pages and YouTube channels that Social posts to, reconnect one that stops working, and remove the ones you don't use. - [Publish social posts](/guides/marketing/social-publishing): Write a post once, publish or schedule it to your connected accounts, plan it on the calendar, and follow each account until the post is live. - [Social ideas](/guides/marketing/social-ideas): Collect post ideas with photos and videos on a shared board, sort them into groups, generate new ones with AI, and turn them into posts. - [Social videos](/guides/marketing/social-videos): Turn a patient's testimonial clip into a finished social video, edited in your own Descript account and checked by AI, then approve it and post it from the composer. - [Social images](/guides/marketing/social-images): Turn photos or a few lines of text into social-ready images, from AI smile designs, headshots and artwork to branded before & afters, review cards and notices, then approve them and post them from the composer. - [Social insights](/guides/marketing/social-insights): See followers, views and engagement for every connected account, and the numbers of every post on it, including posts published directly on the platform. - [Auto-DM from comments](/guides/marketing/social-auto-dm): Reply automatically when someone comments a keyword on your Facebook or Instagram posts, send them your link by direct message, and see who opens it. - [Outbound campaigns](/guides/marketing/campaigns): Message a filtered patient segment once by SMS, email or WhatsApp, or everyone who messaged your Facebook Page or Instagram account in the last 24 hours, with consent checks, scheduling and delivery results. - [Marketing consent](/guides/marketing/consent): Record channel-specific consent evidence, see how people opt out of Instagram DM and Messenger campaigns, and understand how Smileline separates marketing from essential messages. - [Ads workspace](/guides/marketing/ads): Capture leads from ad platforms, feed results back to them, and manage campaigns — and understand what's included in Core versus the add-on. - [ChatGPT Ads](/guides/marketing/chatgpt-ads): Advertise inside ChatGPT with an API key, attribute the leads that arrive on your website, and feed bookings back to OpenAI. - [Conversion feedback](/guides/marketing/conversion-feedback): Report Lead, Booked and Going ahead back to Google, Meta, TikTok and ChatGPT automatically, so platform optimisation learns from real practice outcomes. - [Website analytics](/guides/marketing/website-analytics): See how many people visit your website, which pages they read, and which pages and channels bring leads and bookings, without naming any visitor. - [Heatmaps](/guides/marketing/heatmaps): See where visitors click and how far they scroll on each page of your website, drawn over a real recorded visit to the page. - [Session replays](/guides/marketing/session-replays): Watch anonymous recordings of real visits to your website, page by page, with everything typed into a form hidden. - [A/B page tests](/guides/marketing/ab-tests): Show two versions of a page at the same address, each to half of your visitors, and see which one books more patients. - [Ad campaigns](/guides/marketing/ads-campaigns): Build a Meta or Google Search campaign from a ready-made template in four steps, set it live deliberately, and manage campaigns imported from every connected ads platform. - [Campaign templates](/guides/marketing/campaign-templates): The ready-made campaigns you can build in four steps — where each one runs, what you provide, and the advertising rules it follows. For practices in the UK and the US. - [Ad images](/guides/marketing/creative-studio): Add approved images from Social → Images to your ads, with the consent paid ads need. For practices in the UK and the US. - [Websites](/guides/marketing/websites): Build, publish and look after practice websites and landing pages that Smileline hosts, with enquiry forms, tracking and ads already connected. - [Landing pages](/guides/marketing/landing-pages): Make one-goal pages for your ads, promote a page with a campaign, and see each page's visitors, enquiries, bookings and cost per booking. - [Forms and quizzes](/guides/marketing/site-forms-and-quizzes): Add enquiry forms, quizzes and a call me now form to a Smileline website; every enquiry arrives in Smileline with nothing to map. - [Website connections](/guides/marketing/site-connections): See what every page of a Smileline website is connected to — tracking, the cookie banner, call tracking, chat, online booking, instant AI callbacks and conversion tracking. - [Website domains](/guides/marketing/site-domains): Use your website's free address, connect your own domain with two DNS records, make it the main address and disconnect it again. - [Website search and blog](/guides/marketing/site-seo-and-blog): How Smileline websites appear in search — page titles and descriptions, share images, hidden pages, the sitemap, structured data, redirects, and articles from Articles. - [Import a website](/guides/marketing/site-import): Bring your existing website's text into a Smileline website, with redirects from its old addresses, then check and publish it. - [SEO & Ads](/guides/marketing/seo-and-ads): Open the SEO workspace, choose the right visibility tool, and understand access when the add-on is inactive. - [Use the SEO overview](/guides/marketing/seo-overview): Connect Google, then see the leads, clicks, calls and rating search brings you, your local map and top searches, what to fix next, your setup and this month's SEO usage, and change SEO settings. - [Track search visibility](/guides/marketing/search-visibility): See how people find you on Google with Search Console's Performance report beside the leads, bookings and go-aheads each page brings in, see which pages Google shows and why, how fast your site feels, its review stars and other extras, and who links to it, check any page with Google, see where you rank on the map and for every tracked search, and connect Google Search Console. - [Manage your Google profile](/guides/marketing/google-business-profile): Check your practice details against Google, approve the fixes, write posts, manage photos, connect Google and see how people find you. - [Reviews](/guides/marketing/reputation): Reply to Google reviews, request patient feedback, and route private feedback to your team. - [Check your website](/guides/marketing/website-seo): Check every page of your website, read its Health, AI search and Speed scores, work through what to fix and send each fix to your web developer. - [Website checks](/guides/marketing/website-checks): Every check the website check runs on your site, by area, with its severity and what it means. - [Monitor AI visibility](/guides/marketing/ai-visibility): Check whether AI assistants name or link to your practice, compare each one against the competitor it names most, find the questions you're missing from and read what the answers said. - [Monitor directory listings](/guides/marketing/listings): Track your practice's name, address and phone across nearly 1,900 directories, add your listing links and follow the add-or-claim link for each directory. - [Articles](/guides/marketing/content-studio): Pick a topic or an existing page to improve, plan it from the pages that rank on Google, write it with research and AI help, send it for clinical review, then publish the approved article to your Smileline website now or later, email or download it, and see how it does on Google. - [Ranking guide](/guides/marketing/ranking-guide): See what matters most to show up on Google and in AI answers, what Smileline has already checked for your practice, and how to do the rest. - Reports - [Reports overview](/guides/reports/overview): What each report shows and how to filter, compare and share them. - [Calls](/guides/reports/calls): Inbound calls on your numbers — answered against missed, ring time, which campaign and keyword the callers came from, who took them, and the missed calls nobody rang back. - [Call insights](/guides/reports/call-insights): How your team handles calls — how many booked, the objections callers raised and how well each was handled, and a card per salesperson — with a Monday email. - [Patient value and retention](/guides/reports/patient-value): How to read the cohort grid, what counts as a patient, and why these two reports won't match Revenue summary. - [Patient reports](/guides/reports/patients): New patients per month, age groups, birthdays and lapsed patients — from Smileline's records or Dentally's. - [Money reports](/guides/reports/money): Day sheet and takings, aged debt, income, patient accounts, payment allocations and their totals, invoice timeline, production and goals, collections, associate pay and its statements, chair utilisation, sundries and invoices — every figure read from the patient ledger. - [Clinical reports](/guides/reports/clinical): Radiograph audit (UK), perio coverage, treatment completed, lab turnaround, prescriptions issued, new patient visits and referrals — counted from the clinical record. - [Practice reports](/guides/reports/practice): Audit, report runs and user sessions — your practice's own activity log, background exports and sign-ins, from when you began using Smileline. - [Inventory reports](/guides/reports/inventory): Stock value, low stock, usage, every stock movement, room moves and expiring lots — at every site, with CSV and print. - **Partners** - Partner programme - [Partner programme](/guides/partner-programme): Bring practices to Smileline, set them up on the free plan, and earn a share of what they pay every month. - Sell on Smileline - [Sell on Smileline](/guides/sell-on-smileline): Apply to sell your dental products to practices in the UK (except Northern Ireland) and the US through the Smileline Shop, and get your supplier account ready to take orders. - [Offers and price files](/guides/sell-on-smileline/offers): Put your products on sale in the Smileline Shop for practices in the UK (except Northern Ireland) and the US — one offer at a time or from a CSV price list — and ask for products the catalogue doesn't have. - [Product Overviews](/guides/sell-on-smileline/overviews): Write the page practices read about a product you sell — banners, pictures, feature columns, specifications, comparisons and more — publish it straight away, or bring in a page you already have with Import HTML. - [Orders, returns and quotes](/guides/sell-on-smileline/orders): Dispatch Shop orders to practices in the UK (except Northern Ireland) and the US, set a new date when you're late, answer returns and claims, and quote for and install equipment. - [Statements and self-billing](/guides/sell-on-smileline/statements): How Smileline pays suppliers in the UK and the US each month for Shop orders delivered to practices in the UK (except Northern Ireland) and the US, with the self-billed invoices it raises for you. - **Configure** - Settings - [Vocabularies](/guides/settings/vocabularies): Manage the lookup lists that power dropdowns across Smileline. - [Locations & operatories](/guides/settings/locations-and-operatories): Set up your practice's sites and the treatment rooms inside them. - [Practitioners](/guides/settings/practitioners): Maintain the list of clinicians appointments are booked with. - [Clinical catalogue](/guides/settings/clinical-catalogue): Set up the procedure codes, fees, price lists, recall types, note templates, patient forms and medications the clinical workspace charts, charges and prescribes with. - [Clinical storage](/guides/settings/clinical-storage): How clinical documents are kept, verified and backed up, and how to replay a stalled copy. - [Card readers](/guides/settings/card-readers): Buy a Stripe Terminal reader, set it up and register it, see whether it is online, and understand how a card-present payment reaches the patient ledger. - [Insurance carriers, plans and benefits](/guides/settings/insurance): Set up the US carriers and plans the practice bills, and keep each plan's benefit design so estimates and claims cite the right figures. - [NHS contracts, targets and rates](/guides/settings/nhs): Record the practice's NHS England contracts, each contract year's UDA and UOA targets, the performers on each contract, and read the band rates in force. - [Accounting](/guides/settings/accounting): Connect Xero or QuickBooks Online, post one balanced journal per location per day, and send your stock value and supplier bills to the books. - [Sistema TS](/guides/settings/sistema-ts): Report paid Italian invoices to the Sistema Tessera Sanitaria for the patient's pre-filled tax return. - [Italian practices](/guides/settings/italy): What an Italian practice gets on day one — roles, VAT, the patient's codice fiscale, yearly invoice numbering, the stamp duty, Sistema TS and Italian defaults. - [Compliance](/guides/settings/compliance): Recurring checks, sterilisation cycles, incidents, policies and staff records in one place. - [Address book](/guides/settings/professional-contacts): Keep the labs, suppliers, referrers, specialists and GPs the practice works with, so lab cases, referrals and purchase orders can name them. - [Labs](/guides/settings/connected-labs): See every lab and how it takes orders, choose the usual lab for each kind of work, and connect labs that take orders online, follow their orders, pay their invoices and answer their invitations. - [Scanners](/guides/settings/scanners): Connect the practice's intraoral scanners so their scans arrive in Smileline and are filed onto the right patient. - [Letter templates](/guides/settings/letter-templates): Write the letters the practice sends, with merge tags for the patient and the practice, and keep every version. - [Plan templates](/guides/settings/treatment-templates): Save common combinations of procedures as shared or personal templates and add them to a treatment plan in one step. - [Prescription templates](/guides/settings/prescription-templates): Keep ready-made prescriptions of one or more medicines, tagged by what they're for, so a prescriber fills a new prescription in one pick. - [Assignment](/guides/settings/assignment): Share new leads out between your team automatically, and choose who gets new chats. - [Targets and streaks](/guides/settings/targets): Give the people who book and close a daily or monthly target, and let the staff app keep their streaks, leagues and badges. - [Channels](/guides/settings/channels): Connect WhatsApp, SMS, email, Telegram, Messenger, Instagram, TikTok and comment accounts to the shared inbox. - [Sending domains](/guides/settings/sending-domains): Send patient email from your own domain instead of the shared Smileline one. - [Connections](/guides/settings/connections): See every Google, Meta and vendor account Smileline is signed in to, whether each one is working, and what happens when one stops. - [PMS integrations](/guides/settings/integrations): Connect a practice management system, map its sites, review patient matches and bookings needing attention, and monitor automatic polling. - [API keys](/guides/settings/api-keys): Create a key for your own scripts and integrations, call the Smileline API with it, and revoke it when you're done. - [Zapier](/guides/settings/zapier): Connect Smileline to Zapier so enquiries, appointments and tasks can start work in the other tools your practice uses. - [AI agents](/guides/settings/ai-agents): Let Claude, ChatGPT, Cursor or another AI agent work in your practice, with sign-in handled for you. - [Voice and calling](/guides/settings/voice): Turn on Smileline Voice, provision the practice's calling, choose how many concurrent lines you need, and let each person enable calling on their own device. - [Phone numbers](/guides/settings/voice-numbers): The practice's whole number inventory — order UK or US numbers, complete UK verification where it applies, bring your existing numbers in, move a number between the phone system and call tracking, and pick the outbound caller ID. - [Emergency calling](/guides/settings/emergency-calling): How 999, 112 and 911 work from Smileline — register each number to the site where its phones are, tell each device where it is calling from, and know what the phone system cannot do in an outage. - [Call routing](/guides/settings/call-routing): See where each number's calls go, tracking numbers included, decide who rings when a number is called, what happens outside opening hours, and how a keypad menu sends callers to the right team. - [Voicemail](/guides/settings/voicemail): Hear what callers left when nobody could answer, read the transcript, and see which messages are still new. - [Live suggestions](/guides/settings/call-ai): The answers Call AI shows while a caller talks, where each one came from, and how to correct them. - [Call analysis](/guides/settings/call-analysis): The objections that stop callers booking, and your practice's best reply to each — shown on live calls and used to coach. - [AI receptionist](/guides/settings/ai-receptionist): Let the practice's AI voice agent answer calls in natural conversation — book appointments, capture new enquiries, transfer to the team or take a message, and cover the hours nobody is at the desk. - [AI outbound calling](/guides/settings/ai-outbound-calling): Let the AI voice agent ring new enquiries back — assignment rules, the per-lead hand-over, the calling window, attempt limits, and what happens when it gives up. - [Phone providers](/guides/settings/phone-providers): Keep the phone system your practice already uses — JustCall, Aircall or VoiceStack — and still get calls on the patient's timeline and callers recognised while the phone rings. - [Notifications](/guides/settings/notifications): The bell tells you what happened while you were looking somewhere else — and nags when a new lead still hasn't been called. - [Your language](/guides/settings/language): Choose the language the Smileline apps use for you — on the web, in Smileline Desk and in the mobile app. - [Light and dark mode](/guides/settings/appearance): Switch the Smileline web app and Smileline Desk to dark colours for your account, or keep the default light colours. - [Practice details](/guides/settings/practice): Set your practice identity, messaging defaults, letterhead, data retention, operational defaults, production goals, second-person till review, voice notes, the image check, the chart and imaging. - [Knowledge base](/guides/settings/knowledge-base): Teach Smileline's AI about your practice once — your website, documents and snippets — and every AI that talks to patients answers from it. - [Billing and subscription access](/guides/settings/billing): Manage the Core subscription and add-ons, and understand exactly what happens after a failed payment or cancellation. - [Import & export](/guides/settings/import-export): Move core practice data between Smileline accounts, import CRM CSVs, or export clearly labelled entity CSVs. - [Practice archive](/guides/settings/practice-archive): Take the complete record of the practice out as machine-readable files with an index of every part and original document, a manifest and a validation report. - [Security](/guides/settings/security): Sign people out after inactivity or a maximum session length, and choose when Smileline support can see your practice. - [Activity log](/guides/settings/activity-log): Review the append-only record of important practice changes, imports, exports and staff actions. - [Agreements](/guides/settings/agreements): See the legal agreements in place for your practice — terms, privacy, data processing and the ones specific to your country — with who accepted them and when. - API Reference: The Smileline HTTP API - [Overview](/reference): Base URLs, organization scoping, and the conventions shared by every Smileline API endpoint. - [Authentication](/reference/authentication): Authenticate with an API key or an OAuth connection over Bearer auth, or ride the browser session. Roles decide what you can write. - [Errors](/reference/errors): Every error uses one JSON envelope, with a machine-readable code where it helps. - [Pagination](/reference/pagination): Offset pagination for most lists, cursor pagination for conversation feeds. - [Rate limits](/reference/rate-limits): Token-bucket limits protect public intake, booking, referral, chat and AI surfaces, while campaigns have configurable delivery pacing. - [Webhooks](/reference/webhooks): Send signed CRM events to your systems and understand the provider callbacks Smileline receives. - Build an app - [Register an app](/reference/build-an-app): Create a developer account at developer.smileline.io, register an OAuth app, and understand the lifecycle from development to approval. - [Connect a practice with OAuth](/reference/build-an-app/oauth): The authorization-code flow with PKCE against Smileline's global authorise and token URLs, and what to keep from the token response. - [Scopes](/reference/build-an-app/scopes): The permission areas a developer app can request, what each covers, and which webhook events it admits. - [App webhooks](/reference/build-an-app/webhooks): One delivery URL and signing secret per app; how Smileline materialises a verified endpoint for every connected practice and what it sends. - [Test with real practices](/reference/build-an-app/testing): Apps are live in both regions from the moment they are created; what the unreviewed notice and the 25-practice cap mean while you build. - [Submit for approval](/reference/build-an-app/approval): What to have ready before you submit, what a reviewer looks at, and what changes when an app is approved, sent back or disabled. - [MCP server](/reference/mcp): Connect an AI agent to a practice over the Model Context Protocol, with OAuth discovery, dynamic registration and three generic tools. - **Endpoints** - Patients - Patients - [List patients](/reference/patients/patients/get): Paginated list. q is a typo-tolerant (trigram) search over name, email, phones, fiscal code and address (street, city, postal code). An all-digit q also matches the patient number exactly, and a date the date of birth exactly: YYYY-MM-DD, or day and month with a four-digit year, read month first for a US practice and day first elsewhere. `filters` is URL-encoded JSON matching the PatientFilters schema; keys are AND-ed, or OR-ed when it carries `"match": "any"` (the status still narrows every match). sort=relevance ranks by similarity to q. embed=tags attaches each row's tags; embed=clinic the clinic's columns (dentist and their diary colour, hygienist, price list, next visit, last visit and its type, whether there is any visit, recall, balance), each absent when the caller may not read it; clinicColumns (a comma list of those column keys) reads only the ones named, never one the caller may not read. Archived patients are excluded unless includeArchived=true or a status filter asks for archived. ids (a comma list of patient ids) narrows the list to those patients. - [Create a patient](/reference/patients/patients/post) - Bulk - Archive - [Archive many patients](/reference/patients/patients/bulk/archive/post): Sets archivedAt and status=archived on every listed patient still unarchived. Requires the patient delete permission. 409 ARCHIVE_REASON_REQUIRED (details.underCalledLeads, details.minAttempts) when the selection holds leads under the practice's minimum contact attempts since the last conversation (minAttemptsBeforeGivingUp in practice settings, default 9) and no reason was sent; nothing is archived. - Location - [Assign many patients to a location](/reference/patients/patients/bulk/location/post): Sets (or clears, with locationId=null) the location on every listed patient; ids outside the organization are ignored. Returns the number of patients touched. - Tags - [Add/remove tags on many patients](/reference/patients/patients/bulk/tags/post): Idempotent per patient-tag pair; ids outside the organization are ignored. Returns the number of patients touched. - Export - [Export patients as CSV](/reference/patients/patients/export/get): Same filtering as GET /patients (q, filters, includeArchived…). `columns` selects and orders the CSV columns; `ids` restricts to a selection. The clinic's visit, recall and balance columns need appointment:read, recall:read and ledger:read (403 without). Caps at 10000 rows because the CSV is built in memory — code EXPORT_TOO_LARGE; POST /transfer/exports with entity `patients` and this query (q, filters, sort, direction, columns, ids) as `patientQuery` runs the same export in the background with no row limit. - Id - [Erase a patient](/reference/patients/patients/id/delete): Owner only: the right-to-erasure request. In one short transaction the patient is restricted — hidden from every staff surface, contact details cleared, nothing new attachable, nothing sent — and an erasure request opens; the patient's CRM records (journeys, activities, conversations and messages, calls, voicemails, transcripts, tasks, consent and lead history) are then removed step by step, and stored files are cleaned up separately. `erasure` reports progress and what earlier copies may still hold the person. A patient with clinical or payment records (or an account, a consent or payer relationship, an insurance subscription or referral evidence) keeps those records under a restricted identity that only the owner can open, until a computed date (`erasure.status` is `kept`). Idempotent while the request runs. A refusal is 409 with the first reason's code (PATIENT_MERGED, PATIENT_LEGAL_HOLD, PATIENT_PAYS_FOR_OTHERS, PATIENT_CARRIES_PAYER_AUTHORITY, PATIENT_HAS_LIVE_WORK — including an active membership or payment plan — or PATIENT_HAS_FAMILY_RELATIONSHIP) and every reason in details.reasons. Use Archive to hide a record while keeping its history. - [Get a patient with tags](/reference/patients/patients/id/get): embed=timeline,journeys,touches folds the first timeline page, the patient's journeys and the capture-attribution touches into the response — a detail view's single data call. - [Update a patient](/reference/patients/patients/id/patch): 409 PATIENT_MERGED when the patient was merged into another record; the survivor's id rides on details.mergedIntoPatientId. 409 LEAD_SOURCE_FROM_ATTRIBUTION when `leadSourceId` would change a lead source Smileline set from the attribution the patient arrived with (`leadSourceLocked` on the patient's detail). 422 PATIENT_GP_INVALID when the GP is not this practice's kind-`gp` contact, or is archived and not already the patient's; 422 EMERGENCY_CONTACT_NAME_REQUIRED when the emergency contact would have a relationship or phone but no name; 422 PATIENT_CONTACT_REQUIRED when the change would leave a patient who had a mobile or an email with neither. - Archive - [Archive a patient](/reference/patients/patients/id/archive/post): Sets archivedAt and status=archived. Idempotent. 409 PATIENT_MERGED when the patient was merged into another record. 409 ARCHIVE_REASON_REQUIRED (details.minAttempts) when a lead under the practice's minimum contact attempts since the last conversation (minAttemptsBeforeGivingUp in practice settings, default 9) is archived without a reason; the reason is saved on the timeline. - Automations - [A patient's automations switch](/reference/patients/patients/id/automations/get): Whether the team stopped the patient's automations (when, and who), and the lead flows running for them now. Needs journey:read. - Resume - [Let a patient's automations run](/reference/patients/patients/id/automations/resume/post): Clears the stop: lead flows may start again on their next moment (long-term nurture on the quiet sweep's next look), and on flows a flow stopped part-way resumes after the last step it reached, never sending one twice. Stopped runs are not restarted here. Idempotent. 409 PATIENT_MERGED when the patient was merged into another record. Needs journey:update. - Stop - [Stop a patient's automations](/reference/patients/patients/id/automations/stop/post): Stops every lead flow running for the patient (reason `manual`) and keeps new ones from starting, resuming or sending — long-term nurture included — until POST /patients/:id/automations/resume. Booking messages, appointment reminders, recalls and missed-call texts still go. Idempotent: stopping again keeps the first stop's time and member. 409 PATIENT_MERGED when the patient was merged into another record. Needs journey:update. - Export - [Export everything held about one patient](/reference/patients/patients/id/export/get): The subject-access package as JSON: profile, calls, voicemails, transcripts, Call AI analyses (the patient tier), live transcript lines and live-assist events, the Shop materials chosen for the patient's treatments, the devices placed and the image details, and the clinical record (`clinicalRecord`): treatments, findings, notes, periodontal exams, prescriptions, lab cases, referrals, plans with their acceptances and the chart each completion left, recalls, forms and medical history, episodes, voice notes (consent, transcript, drafts and uses, with a link to the recording) and a manifest of documents and images — every entry with its correction history and `status`. Short-lived signed links reach the stored recordings and documents. The export and its clinical read are written to the audit log; the links are not. A patient erased or being erased answers 404. - Gp - [Register a new GP and make them the patient's](/reference/patients/patients/id/gp/post): Adds a kind-`gp` professional contact and links it to the patient in one transaction, under `patient:update`. A retry with the same `requestId` and body answers the recorded result and never touches the patient's GP again (a GP chosen since stays); the same id with another body is 409 ID_TAKEN. - Marketing preferences - [Get a patient's per-channel marketing preferences](/reference/patients/patients/id/marketing-preferences/get) - Channel - [Record marketing consent or an opt-out with evidence](/reference/patients/patients/id/marketing-preferences/channel/put): Writes the current projection and an append-only evidence event in one transaction. Soft opt-in must be recorded and is never inferred from patient status. - Merge - [Merge a duplicate into this patient](/reference/patients/patients/id/merge/post): Moves the source's CRM history (journeys, calls, messages, tasks, attribution, consent, tags) onto this patient and leaves the source as a read-only merged record pointing here. Cannot be undone. Folds each `combine` pair: the folded journey's sequences stop, its open tasks are cancelled and its pending ad conversions are skipped. 409 PATIENT_MERGE_BLOCKED with details.reasons (see PATIENT_MERGE_BLOCKERS) and details.retryable; 409 MERGE_PREVIEW_STALE when either record or a journey changed since the preview; 409 PATIENT_MERGED when either record was already merged elsewhere. Repeating a completed merge returns the same result. - Merge preview - [Preview merging a duplicate into this patient](/reference/patients/patients/id/merge-preview/get): The two records side by side, their open journeys, what blocks the merge (details in `blockers`) and the source's contact details the kept record cannot hold. 409 PATIENT_MERGED when either record was already merged. - New lead window closures - [Log why a new lead's desktop window was closed unhandled](/reference/patients/patients/id/new-lead-window-closures/post): activity:create. The reason (required) is saved as a titled note on the lead's timeline and task, which cannot be edited. 404 when the patient, journey or task is not this practice's, or the journey or task is not this patient's. - Notes - [Add a note to the patient timeline](/reference/patients/patients/id/notes/post) - Noteid - [Edit your own note on the patient timeline](/reference/patients/patients/id/notes/noteid/patch): Only the note's author can edit it, and only a note a team member typed (not a referral, inbox, automation, form or patient note). The previous text is kept in the audit log. 409 NOTE_CONFLICT when the note changed since `expectedEditedAt` (details.current holds it); 409 PATIENT_MERGED when the patient was merged into another record. - Pin - [Pin or unpin a patient on Today](/reference/patients/patients/id/pin/put): Pins the patient to the top of every teammate's Today queue (pinned: true) or unpins them (pinned: false). Idempotent: pinning an already-pinned patient keeps the original pinnedAt. 409 PATIENT_MERGED when the patient was merged into another record. - Referral - [Patient's referral-programme view](/reference/patients/patients/id/referral/get): The patient page panel: advocate enrollment (share link, code, status page), referrals they've made, rewards they hold, and who referred them. - Enroll - [Enroll a patient as a referral advocate](/reference/patients/patients/id/referral/enroll/post): Creates (or re-activates) the patient's advocate record with a share link, human-readable code and status page, and sends the welcome message on their preferred channel. 400 PROGRAM_DISABLED while the programme is off. - Sticky notes - [Add a sticky note to a patient](/reference/patients/patients/id/sticky-notes/post): Idempotent on the note id: the same id and body replays; the same id with another body is 409 STICKY_NOTE_ID_REUSED. Returns the patient's notes. 409 PATIENT_MERGED when the patient was merged into another record. - Dismiss - [Hide a patient's sticky notes for the signed-in member](/reference/patients/patients/id/sticky-notes/dismiss/post): Records the notes in view (`seen`) when the member hid the stack: it stops sliding in for them until another note exists. Needs only patient read access. - Noteid - [Delete a patient's sticky note](/reference/patients/patients/id/sticky-notes/noteid/delete): Refused with 409 STICKY_NOTE_CONFLICT when the note changed since `expectedUpdatedAt`; a note already gone returns the notes unchanged. Returns the patient's notes. - [Edit a patient's sticky note](/reference/patients/patients/id/sticky-notes/noteid/patch): Refused with 409 STICKY_NOTE_CONFLICT (the current note in details.current) when the note changed since `expectedUpdatedAt`. Returns the patient's notes. - Tags - [Add a tag to a patient](/reference/patients/patients/id/tags/post): Idempotent; returns the patient's current tags. 409 PATIENT_MERGED when the patient was merged into another record. - Tagid - [Remove a tag from a patient](/reference/patients/patients/id/tags/tagid/delete): Idempotent; returns the patient's current tags. 409 PATIENT_MERGED when the patient was merged into another record. - Timeline - [Patient activity timeline](/reference/patients/patients/id/timeline/get): Activities for the patient, newest first. For a signed-in member of a practice in a SmileDesign country, in its PMS workspace, who may read the patient's documents, the patient's SmileDesign events are among them as Changes (on no journey, from no import): a `pms_event` whose `properties.smileDesign` names the event (`created`, `duplicated`, `hd_ready`, `hd_accepted`, `video_ready`, `video_accepted`, `shared`) and the design (`designId`). They are read from the designs as they stand, never stored, and a page that shows one is audited as a clinical read. - Touches - Touchid - [One capture touch](/reference/patients/patients/id/touches/touchid/get): One of the patient's capture touches by id, in the same shape as the patient's embedded touches (website form or lead form, with its submitted answers previewed and its attribution) — for a touch older than the patient's newest 20. Requires patient:read. 404 for a touch that is not this patient's. - Answers - [Every answer a lead form submitted](/reference/patients/patients/id/touches/touchid/answers/get): The complete answers of one native lead-form touch (Meta, Google Ads or TikTok), read from the record the patient keeps: every question, unclipped, and the form, campaign, ad set and ad by name — never the provider's ids. Requires patient:read. 404 for any other touch, or one that is not this patient's. - Patientid - File shares - [The patient's shared-files links](/reference/patients/patients/patientid/file-shares/get): Newest first: live, expired and turned-off links alike. - [Share some of a patient's files by link](/reference/patients/patients/patientid/file-shares/post): Mints a long unguessable link that opens the files without signing in until it expires (1, 2 or 3 months) or is turned off. Every document must be this patient's own filed, unvoided document, and every patient it names must be visible. The link is written to the patient's History. - Id - Link - [A live shared-files link, to copy again](/reference/patients/patients/patientid/file-shares/id/link/get): 410 once the link has expired or been turned off; 409 LAB_LINK_OWNED for a lab order's link, which its case manages. - Turn off - [Turn off a shared-files link](/reference/patients/patients/patientid/file-shares/id/turn-off/post): The link stops opening at once, and so does every file link it already handed out. Turning off a link that is already off or expired answers it as it is. 409 LAB_LINK_OWNED for a lab order's link, which its case manages. - Saved views - Saved views - Entity - [List saved views for an entity](/reference/saved-views/saved-views/entity/get): The caller's own views plus org-shared views, one keyset page at a time: pass `nextCursor` back as `cursor` until it is null (an invalid cursor is 400 INVALID_CURSOR). - [Create a saved view for an entity](/reference/saved-views/saved-views/entity/post) - Id - [Delete a saved view](/reference/saved-views/saved-views/entity/id/delete) - [Update a saved view](/reference/saved-views/saved-views/entity/id/patch): Owners edit their own views; org admins/owners may also edit shared views. - Appointments - Appointments - [List appointments in a date range](/reference/appointments/appointments/get) - [Book an appointment](/reference/appointments/appointments/post): Uses requestId as the idempotency key. Practitioner or operatory collisions return 409 unless an owner or manager deliberately supplies an overbook reason. A treatment-plan visit, recall or waiting-list request named in the body is booked in the same command: 409 when it is already booked to a live appointment (VISIT_ALREADY_BOOKED, RECALL_ALREADY_BOOKED, WAITLIST_TRANSITION), and nothing is written. A site a practice management system covers books there instead (409 PMS_MANAGED_SITE). - Id - [Get an appointment](/reference/appointments/appointments/id/get) - [Update an appointment](/reference/appointments/appointments/id/patch): Requires the current version. Time or resource conflicts return 409 unless an owner or manager deliberately supplies an overbook reason. A visit a practice management system holds keeps its time, clinicians, room, site, type and treatment as the provider has them (409 PMS_MANAGED for a change to any of them; move it with POST /appointments/:id/pms-move); its label, note and lead still edit here. - Approve - [Approve a pending online booking](/reference/appointments/appointments/id/approve/post): Confirms an online booking request: pending → booked, the patient's booking confirmation and reminders schedule now, and the Today confirm task completes. Unpaid deposit holds can't be approved. Declining is a normal /cancel. - Booking message - [Send the booking message now](/reference/appointments/appointments/id/booking-message/post): Sends the visit's booking confirmation now, on every booking-confirmation rule switched on for it — the ones the automation would choose. When the automation already sent the visit's booking message or has it queued, nothing is sent and the answer is 409 BOOKING_MESSAGE_ALREADY_SENT with details { at, due }; resend: true sends another copy anyway. A patient without the channel's address, or a template that can't go, is listed in skipped. A visit that is past, cancelled, missed or attended is 400 APPOINTMENT_NOT_UPCOMING; no booking confirmation switched on is 400 NO_BOOKING_MESSAGE_ON. - Cancel - [Cancel an appointment](/reference/appointments/appointments/id/cancel/post): Cancels with a cancellation reason, or without one when `enteredInError` is true: a visit booked by mistake, which reports and worklists never count as a cancellation. Either way the patient gets the practice's cancellation message and a connected PMS is told. - Pms move - [Move a visit the practice management system holds](/reference/appointments/appointments/id/pms-move/post): Queues the move with the practice management system (Dentally and the others that take moves) and answers 202 with the operation; nothing changes in Smileline until the provider's own row says the move happened, when the sync applies it and the visit's attendance question follows. `practitionerIds`, when given, is the visit's whole clinician set; the room is always kept. Only a pending, booked or confirmed visit moves. 409: PMS_OPERATION_PENDING (a move is already on its way), VERSION_CONFLICT, VISIT_NOT_MOVABLE (not one the provider holds and can move now), VISIT_MOVE_UNSUPPORTED (a change the provider's move cannot make), PMS_BOOKING_NOT_YET_IN_PMS (the visit's own booking has not reached the provider yet), PMS_ROOM_CHANGE_UNSUPPORTED. Signed-in people only. - Status - [Progress an appointment's status](/reference/appointments/appointments/id/status/post): Stamps the matching timestamp column (confirmedAt, arrivedAt, seatedAt, fulfilledAt, noShowAt). Cancellation goes through /cancel. - Undo arrival - [Undo an appointment's arrival](/reference/appointments/appointments/id/undo-arrival/post): The one way back from arrived, before the patient is in the chair: restores confirmed (when the visit had been confirmed) or booked, clears arrivedAt and records the reason. A visit in any other status is 409 NOT_ARRIVED; a stale expectedVersion is 409 VERSION_CONFLICT. Not for appointments a practice management system manages (409 PMS_MANAGED). - Journeys - Journeys - [List journeys](/reference/journeys/journeys/get): Pass embed=patient to include a compact patient on each row. - [Create a journey](/reference/journeys/journeys/post): Writes the initial stage transition and timeline activity, and promotes the patient from enquiry to lead. - Id - [Get a journey](/reference/journeys/journeys/id/get): Pass embed=patient to include the same compact patient the list embeds, so a caller that needs both does not pay a second round trip. - [Update a journey](/reference/journeys/journeys/id/patch): Stage and status never change here — use move (into the won stage for going ahead), a not_proceeding outcome and reopen. `duplicateHintDismissed: true` is Keep both: the record stops warning that this General enquiry looks like a duplicate. - Ai handling - [Hand a lead to the AI or take it back](/reference/journeys/journeys/id/ai-handling/post): The per-lead toggle. Enabling clears a prior release and (re)queues the journey; the lifetime dial-attempt budget never resets. Optimistic concurrency via expectedVersion. - Combine - [Combine a duplicate journey into another](/reference/journeys/journeys/id/combine/post): Folds the path's journey (normally a General enquiry) into `intoJourneyId`, the same patient's open journey on the same board: the folded one is archived as combined, its automatic chasing (the Call now card, nurture, a queued AI call) stops, its other open tasks move to the kept journey and its pending ad conversions are skipped as merged. Both versions must be the ones shown; a booking, a deposit, an ad conversion being sent or an AI call ringing on either journey refuses it. 409 JOURNEY_COMBINE_REFUSED names why in `details.reason` (one of JOURNEY_COMBINE_REFUSALS) and changes nothing; 404 when either journey is not this practice's, they belong to different patients, or the patient was erased. Needs journey:update. - Junk - [Remove a journey's junk mark](/reference/journeys/journeys/id/junk/delete): Clears the junk flag and its reason, which also withdraws the lead from the partner's lead reports. Conversion events already suppressed while the journey was junk stay suppressed — suppression is the safe direction, and the ad platforms' upload windows may have passed. - [Mark a journey as junk](/reference/journeys/journeys/id/junk/post): A junk lead was never a real enquiry: ad-platform conversion feedback is suppressed for it, in addition to whatever the journey's own status says. Independent of losing — losing with a marksJunk reason stamps this automatically. The optional reason (else the label of the lost reason the journey closed with) is kept as junkReason and shown, with the lead's name, to the practice's partner agency in its lead reports. Marking an already-junk journey changes nothing: unmark it first to give a different reason. - Move - [Move a journey to another stage](/reference/journeys/journeys/id/move/post): Entering the pipeline's "won" stage records that the patient is going ahead: it also sets status=won and closedAt. 409 when the lead is locked by another user on the Today page (LOCKED); 503 when that lock could not be checked (LOCK_CHECK_UNAVAILABLE, nothing saved) or the save was interrupted (SAVE_INTERRUPTED) — retry the request. - Outcome - [Record a contact outcome for a journey with no open task](/reference/journeys/journeys/id/outcome/post): The Today outcome from the patient page, for a journey that has no open task: in one commit it opens a `lead_outcome` source task (never open outside this commit, never sent as a task.created webhook or Today row) and records the outcome on it exactly as POST /tasks/:id/outcome does, with the same receipt, permissions and refusals — so going_ahead here needs the journey at or past its consultation_attended stage (409 GOING_AHEAD_NEEDS_CONSULTATION). `expectedVersion` is the journey's version; `requestId`, one per attempt, makes a repeated send the same command. 409 OUTCOME_ALREADY_RECORDED when this requestId was already saved, JOURNEY_NOT_ACTIVE when the journey is closed or archived, VERSION_CONFLICT when it changed, JOURNEY_HAS_OPEN_TASK when it has an open task (record the outcome on that task), LOCKED when another user holds the lead on Today. Undo (POST /tasks/:id/outcome/undo on the receipt's task) cancels the source task instead of reopening it. - Reopen - [Reopen a closed journey](/reference/journeys/journeys/id/reopen/post) - Pipelines - Pipelines - [List pipelines with their stages](/reference/pipelines/pipelines/get) - [Create a pipeline](/reference/pipelines/pipelines/post): Creates the required entry and won stages. isDefault=true atomically moves the organization's default pointer. - Id - [Update a pipeline](/reference/pipelines/pipelines/id/patch) - Archive - [Archive a pipeline](/reference/pipelines/pipelines/id/archive/post): Refused for the default pipeline or while active journeys sit in the pipeline. - Restore - [Restore an archived pipeline](/reference/pipelines/pipelines/id/restore/post): Clears archivedAt only — does NOT restore isDefault. Idempotent. - Stages - [Add a stage to a pipeline](/reference/pipelines/pipelines/id/stages/post) - Reorder - [Reorder a pipeline's stages](/reference/pipelines/pipelines/id/stages/reorder/post): Sets position for each item in one transaction; an id outside the pipeline rolls the batch back. Returns all of the pipeline's stages (archived included). - Stageid - [Update a stage (rename, reorder, category, color)](/reference/pipelines/pipelines/id/stages/stageid/patch) - Archive - [Archive a stage](/reference/pipelines/pipelines/id/stages/stageid/archive/post): Refused (400) while active journeys sit in the stage. - Restore - [Restore an archived stage](/reference/pipelines/pipelines/id/stages/stageid/restore/post): Clears archivedAt only. Idempotent. - Reorder - [Reorder pipelines](/reference/pipelines/pipelines/reorder/post): Sets position for each item in one transaction; an unknown id rolls the batch back. Returns all pipelines (archived included) with their stages. - Tasks - Tasks - [List tasks](/reference/tasks/tasks/get): A dentist, hygienist or nurse sees only their own tasks: assigned to or created by them, on no lead journey, of kind `staff`, `compliance_check` or `worklist:`. The same scope applies to GET, PATCH and complete (a task outside it answers 404). `q` matches the task's title, or its patient as `GET /patients?q=` does. - [Create a task](/reference/tasks/tasks/post): Kinds `compliance_check` and `staff_record_expiry` are opened only by a due compliance check or an expiring staff record (400 TASK_KIND_RESERVED). A dentist, hygienist or nurse creates kind `staff` (the default for them) or `worklist:`, never on a journey (403 OWN_TASKS_ONLY). The task's `workspace` follows from it: `crm` on a journey; else `pms` for a staff or worklist task, or one assigned to a dentist, hygienist or nurse; else `crm`. A `crm` task assigned to a dentist, hygienist or nurse, who could never see it, answers 422 TASK_ASSIGNEE_CANNOT_SEE; one assigned to a suspended member answers 422 ASSIGNEE_SUSPENDED. - Id - [Get a task](/reference/tasks/tasks/id/get) - [Update a task](/reference/tasks/tasks/id/patch): 409 VERSION_CONFLICT on a stale expectedVersion; 409 COMPLIANCE_TASK_NEEDS_ENTRY when a compliance check's task would change status or kind (it closes by recording the check; assignee, due date, priority, title and note stay editable); 400 TASK_KIND_RESERVED when any other task would become compliance_check or staff_record_expiry, or a staff record's reminder would change kind. The check or staff record a task belongs to is never editable here. A dentist, hygienist or nurse gets 403 OWN_TASKS_ONLY when the edit would link a journey, give the task a kind they may not create, or leave the task no longer theirs. Linking a journey makes the task `crm` work; a reassignment or that move answers 422 TASK_ASSIGNEE_CANNOT_SEE when the assignee is a dentist, hygienist or nurse, who could never see a `crm` task. A new assignee must be a live member (422 ASSIGNEE_SUSPENDED); a task already with a suspended member keeps them until reassigned. Moving a `flexible` retry's `dueAt` by hand makes it a `kept` call-back (the time a person chose), which nothing automatic moves or closes. - Cancel - [Cancel an open task with a reason](/reference/tasks/tasks/id/cancel/post): Moves an open task to cancelled and keeps the reason in its history (`task_cancelled`). 409 TASK_NOT_OPEN when it is not open; 409 COMPLIANCE_TASK_NEEDS_ENTRY for a compliance check's task, which closes by recording the check (or disabling it); 409 TASK_KIND_RESERVED for an outcome record; 409 VERSION_CONFLICT on a stale expectedVersion. The same scope as PATCH applies (404 outside it). - Complete - [Complete a task](/reference/tasks/tasks/id/complete/post): Sets status=done, stamps completedAt/completedById and appends a timeline activity when the task has a patient. Idempotent. 409 when the lead is locked by another user on the Today page (LOCKED), or for a compliance check's task, which closes only by recording the check (COMPLIANCE_TASK_NEEDS_ENTRY); 503 when that lock could not be checked (LOCK_CHECK_UNAVAILABLE, nothing saved) or the save was interrupted (SAVE_INTERRUPTED) — retry the request. - Consultation visit - [The consultation a consultation check asks about](/reference/tasks/tasks/id/consultation-visit/get): For an open `consultation_check` task: the diary visit its booking stands for (the visit pinned on the check, else the one the booking named, else the patient's single visit that day) and how it can be moved — `check` (no visit), `diary` (Smileline's own diary), `pms` (the connected PMS moves it: Dentally, Open Dental) or `pms_check` (the PMS cannot be written to; the question moves and the sync brings the visit). `messages` names, per answer, the channels of the appointment messages switched on for this visit (settings, not a delivery promise; null when unknown). `pms.operation` is the latest provider move while the visit is not yet where it was asked to go. Reads only. 404 when the caller cannot read the task; 409 NOT_A_CONSULTATION_CHECK, TASK_NOT_OPEN, CONSULTATION_CHECK_SUPERSEDED, or PMS_OPERATION_PENDING while the PMS is still creating the visit. - History - [A task's history, newest first](/reference/tasks/tasks/id/history/get): One page at a time: pass `nextCursor` back as `cursor` until it is null. A task the caller cannot read answers 404 before any history is read; an entry about an erased patient is left out. An invalid cursor answers 400. - Next callback - [When a lead nobody reached would be called next](/reference/tasks/tasks/id/next-callback/get): The retry POST /tasks/:id/outcome would plan for a no_answer, message_sent or no_show recorded now: every try of a chain inside its three calling days of the task's location (else the journey's, else the automation site) — a new three once they hold no more tries — at the practice's best hours to reach people, its opening hours and closures, counting this try. `at` is its aim, `availableAt` when it may be called early and `reason` why it is aimed there; `lastTry` says this try makes the practice's tries since the last conversation and closes the lead as Unable to contact instead (then `at` is the moment of asking). Saving later re-plans from then. Reads nothing else and writes nothing. 404 when the caller cannot read the task. - Outcome - [Record a contact outcome for a task](/reference/tasks/tasks/id/outcome/post): Composite wizard commit, atomic: completes the task, stamps the journey's first-contact timestamps, moves the journey forward to the matching systemKey stage when the pipeline has one (booked targets consultation_booked), closes the journey as lost for outcome=not_proceeding (lostReasonId required after a conversation; a lead nobody reached sends none and closes with the practice's Unable to contact reason), wins it for outcome=going_ahead (below), optionally confirms the value (`potentialValueCents`, the estimate, with booked; `confirmedValueCents`, the agreed treatment value, with going_ahead), books the consultation into the own diary (`booking`, needs appointment:create; a site a PMS connection covers answers 409 PMS_MANAGED_SITE) or links an existing booked/confirmed appointment (`appointmentId`, needs appointment:update), creates a follow-up task (for a lead nobody reached — no_answer, message_sent, no_show — a `flexible` retry planned by the server: every try of the chain inside its three calling days — once they hold no more tries, the next starts three new ones — at most `callbacksPerDay` a day, at the practice's best hours within the location's opening hours and never on a closure — `dueAt` its aim, `availableAt` from when it may be called early, `retryReason` why — ignoring any `followUp.dueAt` sent unless `followUp.override` moves it there, which makes it `kept` — past two of the location's working days that needs a `note` (400 CALLBACK_NOTE_REQUIRED, nothing saved) and notifies the practice's owners and managers (lead.callback_deferred, kept if the outcome is undone); after a conversation, a `kept` call-back at the `dueAt` sent — or, with `followUp.forClosers` on callback_later (team calling), the closers' promised call-back: kind `closer_callback`, due at once, unassigned, carrying the outcome's note; the task's own workspace; a follow-up assigned to a dentist, hygienist or nurse for a `crm` task answers 422 TASK_ASSIGNEE_CANNOT_SEE, and one assigned to a suspended member 422 ASSIGNEE_SUSPENDED, before anything is saved) and appends a human-readable timeline activity. Booked without a conversation (contacted=false, outcome=booked, `appointmentId` required; Today's Record booking, for a visit the practice booked elsewhere such as its own system) links that visit as the contacted branch does (appointment:update; APPOINTMENT_NOT_LINKABLE and APPOINTMENT_OTHER_JOURNEY alike), moves the journey to consultation_booked and credits the recorder with the booking, but stamps no first-contact time, counts as no contact attempt nor as working the lead in any report, and moves none of the patient's chats; `booking`, a contact method, a `callLogId` or a `followUp` are refused (400). On a journey, any outcome also closes the lead's leftover automatic call-backs: its open `flexible` retries are cancelled (task.cancelled), while `kept` call-backs a person or Call AI timed stay open; undo reopens them. A no_answer may name the call it is about (`callLogId`, Next lead): it is honoured only once that call has ended — while it is still live it answers 409 CALL_STILL_ACTIVE with nothing saved, so try again once it ends — and only while that is the task's latest call and no person answered it, else CALL_WAS_ANSWERED. The last try closes the lead: a no_answer or message_sent that makes the practice's `minAttemptsBeforeGivingUp` unanswered tries since the last conversation (any contacted outcome starts the count again) on an active journey records as not_proceeding instead, closing the lead with the practice's Unable to contact reason and no follow-up (the CALL_WAS_ANSWERED check still asks first) — unless `followUp.override` times the next call by hand, which records the answer as sent and books that one more try at the `dueAt` sent. With `notLastTry` (Next lead, which never closes a lead in one tap) a save that would be that last try — a teammate may have logged a try since GET /tasks/:id/next-callback was read — is refused instead: 409 LAST_TRY with nothing saved, for the member to record it on the card (checked after CALL_STILL_ACTIVE and CALL_WAS_ANSWERED). Giving up by hand below that minimum (outcome=not_proceeding, contacted=false, on an active journey) needs a `note`, the written reason: without one it answers 409 GIVE_UP_REASON_REQUIRED (details.attempts, details.minAttempts) with nothing saved; with one the lead closes and the practice's owners and managers are notified (lead.closed_early). After a conversation the Unable to contact reason is never accepted (422 UNABLE_TO_CONTACT_NOT_PICKABLE), and the reason with slug `other` needs a `note` (422 OTHER_REASON_NOTE_REQUIRED). Going ahead is recorded once the consultation happened: on a `consultation_check` task (contacted=false; it also marks the visit its booking named in the own diary attended, so it needs appointment:update), or with the journey at or past its pipeline's `consultation_attended` stage (contacted=true after a call). It saves the agreed value, then moves the journey into the pipeline's won stage, so the journey.won webhook, won sequences, won conversion uploads and referral qualification follow; anywhere else it answers 409 GOING_AHEAD_NEEDS_CONSULTATION with nothing saved (a journey still before its consultation or already closed, a task with no journey, a pipeline with no consultation_attended stage off the check). On a `consultation_check` task two answers close the lead with the reason staff pick (`lostReasonId`, required; Unable to contact refused; no attempts minimum and no lead.closed_early): `declined` (they came and are not going ahead) marks the visit attended in the own diary and moves the journey to its consultation_attended stage first; `cancelled` (they cancelled and are not coming) cancels the visit in the own diary with `cancellationReasonId` (400 CANCELLATION_REASON_REQUIRED without one; never a deposit forfeit, and a paid deposit is refunded only by the practice's cancellation refund rule, Settings → Payments) and stops its messages. Both need appointment:update, are refused on any other task (409 ATTENDANCE_NEEDS_CHECK), never count as a contact attempt and are never undone. With outcome=attended, `stillThinking` says the answer was "Still thinking it over" (true: they came and have not decided) or only that they came (false); the timeline names it, and reads an attended answer sent without it by its reminder. Returns an undo receipt valid for 60 seconds; undo never cancels the booking. 403 OWN_TASKS_ONLY for a dentist, hygienist or nurse (as on undo). 409 when the task is not open (TASK_ALREADY_DONE), is a compliance check's (COMPLIANCE_TASK_NEEDS_ENTRY) or the lead is locked by another user (LOCKED); 422 when the site books by chair and no operatory was sent; 503 when the lock could not be checked (LOCK_CHECK_UNAVAILABLE, nothing saved) or the save was interrupted (SAVE_INTERRUPTED) — retry the request. - Undo - [Undo a just-recorded task outcome](/reference/tasks/tasks/id/outcome/undo/post): Corrects the composite outcome within 60 seconds: cancels the follow-up task, appends reverse transition/activity/correction events, restores the prior projection, reopens the leftover automatic call-backs the outcome closed (409 CONFLICT when one has changed since) and reopens the task (a managers' alert the outcome raised — lead.closed_early, lead.callback_deferred — stays sent) — or, for a `lead_outcome` source task (POST /journeys/:id/outcome), cancels it, so the journey is back to having no open task. Undoing going_ahead returns the journey to the stage it left, active, with its previous agreed value: the won sequences stop, won conversion uploads not yet sent are skipped and the referral it qualified is reversed (partners receive journey.updated). 409 CONFLICT when the value the outcome confirmed (booked's estimate, going_ahead's agreed value) has been changed since; 409 UNDO_NOT_AVAILABLE when the answer also marked a diary visit attended or missed (attended, no_show, or going_ahead on the consultation check): that visit's status is final, and a journey won that way is reopened instead (POST /journeys/:id/reopen); and always for the consultation check's declined and cancelled, whose lead is reopened instead. History is never deleted. Only the user who recorded the outcome can correct it. - Pms conflict - [The double booking a PMS conflict review is about](/reference/tasks/tasks/id/pms-conflict/get): For a `pms_appointment_conflict_review` task: the visit the practice system sent, the visits it clashed with (those it was filed against and any it still overlaps on the same practitioner or room), and whether it still clashes. Each visit names its time and timezone, practitioners, room, status, how it was booked and its practice system; its patient only with patient:read and while the patient is not erased. The task closes itself once the clash is gone. Reads only; needs task:read and appointment:read. 404 when the caller cannot read the task; 409 NOT_A_PMS_CONFLICT_REVIEW for any other task. - Reopen - [Reopen a completed task](/reference/tasks/tasks/id/reopen/post): Moves a task that was simply ticked done back to open: its completion is cleared on the task and kept in its history with the reason (`task_reopened`). Refused with 409 TASK_NOT_REOPENABLE for a task that is not done, one closed by a recorded outcome or a stage move (which keeps its own Undo), a lead's task, and a compliance check's, staff record's, outcome record's or attendance question's task; 409 VERSION_CONFLICT on a stale expectedVersion, so a repeat never reopens twice. The same scope as PATCH applies (404 outside it). - Reschedule consultation - [Move the consultation a consultation check asks about](/reference/tasks/tasks/id/reschedule-consultation/post): Moves the booked consultation and its attendance question together — never a new booking. `diary`: the visit moves in Smileline's diary (absent `endsAt` keeps its length; absent `practitionerId`/`operatoryId` keep its participants) and the check follows, with its booking's messages. `check` and `pms_check`: only the question moves (pinned to its visit, so the PMS sync later aligns it). `pms`: answers 202 with a queued provider move; the visit and the question move when the PMS confirms (poll GET /pms/appointment-operations/:id until `completed`). Appends one timeline entry; not a contact attempt, no outcome, no undo. Needs task:update and appointment:update. 409 VERSION_CONFLICT, TASK_NOT_OPEN, NOT_A_CONSULTATION_CHECK, CONSULTATION_CHECK_SUPERSEDED, VISIT_NOT_MOVABLE (the visit already happened or was cancelled), PMS_OPERATION_PENDING (a PMS create or move for this visit is still running), PMS_AUTHORITY_FROZEN, ZONE_RESERVED (resend with zoneOverride), APPOINTMENT_RESOURCE_CONFLICT (pick another time or send overbookReason), LOCKED; 400 when startsAt is not in the future. - Team - [Every open task of the clinic team](/reference/tasks/tasks/team/get): To do › Team tasks: every open task in the clinic's workspace (`workspace` `pms`, on no lead journey), assigned or not, soonest due first and undated last, one page at a time — pass `nextCursor` back as `cursor` until it is null. A task of a patient erased or being erased is left out. For a role that works every task; a dentist, hygienist or nurse answers 403 OWN_TASKS_ONLY. An invalid cursor answers 400. - Today - Today - [The Today work queue](/reference/today/today/get): The whole bucketed queue in one response, pre-sorted server-side against the practice's local day: uncontacted new leads and lead-form enquiries (callers first, then newest submission first), overdue tasks, website enquiry triage cards + today's tasks, and tomorrow's follow-ups. A flexible retry callable early (`task.availableAt` passed) is listed whatever its aim, and one past its window (`retryExpiresAt`) stays listed — never served as the next lead — until a person records its outcome: nothing closes it by itself, and a No answer saved on it is the last try. `buckets.reachedOut` lists, longest wait first, missed callers (one row per number, for a role that uses the dialer) and WhatsApp/SMS chats the interest check let through (for a role that reads conversations). A closer's promised call-backs (`closer_callback`) are listed only to closers and to managers — never to openers, nor to installed mobile builds. `truncated` flags a bucket that holds more rows than the response carries. Pass ?date=YYYY-MM-DD (today … today+41, practice-local) to preview a future day — those responses carry only that day's due tasks. Add ?through=YYYY-MM-DD (date … today+41) to preview every day from `date` through `through` at once, in due order. Every response includes the rolling 42-day `week` counts. - Diary - [The diary slice Today's slot picker draws](/reference/today/today/diary/get): One practice-local day (or up to seven) of appointments, working time, absences and closures — the /day-list shape without the lab-case flag — for a signed-in member with appointment:read. Today books consultations from it into the own diary or, for a site a PMS connection covers, through POST /pms/patients/:patientId/book. - Load - [How full each day is, for Today's slot picker](/reference/today/today/diary/load/get): Bookable and booked minutes per practitioner per practice-local day (up to 100 days) for a signed-in member with appointment:read. - Ws ticket - [Mint a short-lived voice-audience ticket for the Today socket](/reference/today/today/ws-ticket/post): Requires the dialer permission (and, over OAuth, the dialer scope). The ticket is single-purpose: offer it as the Sec-WebSocket-Protocol on GET /today/ws within 60 seconds. The resulting socket carries voice events only. - Calendar - Calendar - [Per-day business aggregates for a date range](/reference/calendar/calendar/get): One row per practice-local day, zero-filled: new leads (enquiries created — the dashboard's New leads), distinct patients contacted (outbound touches + outcome receipts), journeys won/lost with the deal value won, appointments taking place, and open tasks due. Pass from/to (both-or-neither, ≤45 days) — typically a Monday-aligned month grid; omitted = the practice's current month grid. - Appointments - [Appointments over a span of calendar days, page by page](/reference/calendar/calendar/appointments/get): Every appointment taking place in the inclusive practice-local range, any status, by start time — the rows GET /calendar/detail starts. 200 per page; pass `nextCursor` back as `cursor` until it is null. - Callbacks - [Open call-backs and follow-ups over a span of calendar days](/reference/calendar/calendar/callbacks/get): Every open follow-up and closer call-back due in the inclusive practice-local range (from ≤ to, ≤45 days), as Today lists them — closed leads and archived patients out, a closer's call-back only for closers and managers — by due time, as Today's task rows. 200 per page; pass `nextCursor` back as `cursor` until it is null. Requires task:read and a role that works every lead's tasks (403 OWN_TASKS_ONLY otherwise). - Detail - [Every row behind a span of calendar days](/reference/calendar/calendar/detail/get): The drill-down for an inclusive practice-local day range (from ≤ to, ≤45 days; a single day when from === to): the overview stats summed over the range, complete breakdown aggregates, plus the first page (200 rows) of each underlying section merged chronologically — new leads with their source, every outbound contact, all appointments (any status), journeys won/lost with values, and open tasks due. `nextCursors` continue the appointment and journey sections through GET /calendar/appointments and /calendar/journeys. Journey rows and won-by-treatment need journey:read and are empty without it. - Journeys - [Journeys won or lost over a span of calendar days, page by page](/reference/calendar/calendar/journeys/get): Every journey closed with the given status in the inclusive practice-local range, by closing time, with its deal value — the rows GET /calendar/detail starts. 200 per page; pass `nextCursor` back as `cursor` until it is null. Requires journey:read. - Leads - [The leads that came in over a span of calendar days](/reference/calendar/calendar/leads/get): Every enquiry (journey) created in the inclusive practice-local range — the calendar's and the dashboard's New leads, archived ones included — oldest first, with its patient, source, stage, owner, first contact and closing facts. 500 per page; pass `nextCursor` back as `cursor` until it is null. Requires journey:read. - Team - [What each teammate did over a span of calendar days](/reference/calendar/calendar/team/get): Per person over the inclusive practice-local range: every activity they are the actor of, counted by type and practice-local hour, and the distinct leads they worked (the dashboard leaderboard's Leads contacted). Teammates who can work leads and did nothing are listed after the rest. Requires report:read and patient:read. - Activity - [The team's activity over a span of calendar days](/reference/calendar/calendar/team/activity/get): Every activity a teammate is the actor of in the inclusive practice-local range, newest first, with its patient's name — one person's with `userId`, everyone's without. 50 per page; pass `nextCursor` back as `cursor` until it is null. Requires report:read and patient:read. - Inbox - Conversations - [List conversations](/reference/inbox/conversations/get): Sorted by lastMessageAt DESC with cursor pagination. Without a status filter, closed conversations are excluded; status=all includes every status. assignee accepts 'me', 'unassigned' or a member user id. q searches peer name/handle and the last-message preview. - [Start an outbound conversation](/reference/inbox/conversations/post): Finds or creates the contact's unified thread for the recipient and sends the first message through it — if the recipient (or the matched patient) already has a thread, the message lands there as a new endpoint and the existing conversation is returned. WhatsApp with no prior inbound requires a template message. - Attachments - [Stage an attachment before a thread exists](/reference/inbox/conversations/attachments/post): Same multipart/form-data shape as the per-conversation upload, for a first message to a contact who has no thread yet. The expiring, one-time upload id is accepted by POST /conversations and by any send from the same user. - Id - [Get a conversation](/reference/inbox/conversations/id/get): embed=messages includes the newest page of messages (ascending) with a cursor for older pages. - [Update a conversation](/reference/inbox/conversations/id/patch): Assign, close/reopen, snooze (status=snoozed + snoozedUntil), link a patient/journey, or mark unread. Linking a patient backfills the timeline; if the patient already has a thread, the two are merged and the survivor is returned (a conversation.merged event re-points open clients). - Ai - Suggest - [AI: suggest a reply](/reference/inbox/conversations/id/ai/suggest/post): Drafts a reply from the recent thread plus the linked patient's context. The draft is editable — nothing is sent. Rate limited per organization. - Summarize - [AI: summarize the conversation](/reference/inbox/conversations/id/ai/summarize/post): Short summary of the thread for handovers; can be saved as an internal note. Rate limited per organization. - Ai replies - [Get whether the AI is replying in a conversation](/reference/inbox/conversations/id/ai-replies/get) - Resume - [Let the AI reply in a conversation again](/reference/inbox/conversations/id/ai-replies/resume/post): Clears the stop. Only calls, team messages and spoken-to outcomes after this moment stop it again. When the patient's latest message is still unanswered, the AI answers it now. - Stop - [Stop the AI replying in a conversation](/reference/inbox/conversations/id/ai-replies/stop/post): Until someone presses Let AI reply. A reply already on its way is cancelled before it is sent. - Attachments - [Upload an attachment](/reference/inbox/conversations/id/attachments/post): multipart/form-data with a single `file` field (max 16 MiB). Returns an expiring, one-time upload id to include in a subsequent send. - Draft - [Delete my draft for a conversation](/reference/inbox/conversations/id/draft/delete): Deletes the draft only at exactly this version (a send deletes the text it sent, never what was typed since): a different live version answers 409 VERSION_CONFLICT with `details.current`. No draft is a no-op. Answers the version after the call. - [Get my draft for a conversation](/reference/inbox/conversations/id/draft/get): The caller's own unsent text for this conversation; nobody else's draft is ever readable. 404 DRAFT_NOT_FOUND when there is none, with `details.current` naming the version a first save must replace (`{0, 0}`, or a deleted draft's tombstone). Attachments are never kept in a draft. - [Save my draft for a conversation](/reference/inbox/conversations/id/draft/put): Compare-and-swap on `expected` ({generation, revision}): it must name the draft's current version, `{0, 0}` when none was ever saved. A stale version answers 409 VERSION_CONFLICT with `details.current`. The body holds at most 64 KiB and the subject 2 KiB (UTF-8). - Interest - Dismiss - [Take a chat off Today's Reached out](/reference/inbox/conversations/id/interest/dismiss/post): conversation:update, and the conversation must be one the caller may see. Dismisses the chat's interest check as of `messageId`, the message the Reached out row named: a newer message from the patient has re-armed it and answers 409 INTEREST_MESSAGE_CHANGED (refresh and decide again), so a stale screen never hides a newer message. Idempotent for the same message. 404 when there is no check for the chat. - Lead - [Create a lead from a conversation](/reference/inbox/conversations/id/lead/post): Creates a patient and a journey for the chosen treatment and links this unlinked conversation to both, in one step; the creator takes the chat when their role can hold chats. Phone and email are optional here: the conversation is the way to reach this person. Needs conversation:update, patient:create and journey:create. 402 LEAD_LIMIT_REACHED on a full free plan; 409 CONVERSATION_ALREADY_LINKED when the conversation is linked, CONTACT_PARTY_SUBJECT_CONFLICT when its contact already represents a patient — link that patient instead; and DUPLICATE_CONTACT when the email or mobile already belongs to a patient — link them instead. - Messages - [List older messages](/reference/inbox/conversations/id/messages/get): Keyset pagination walking backwards from `before`; items are ascending within the page. - [Send a message (or add an internal note)](/reference/inbox/conversations/id/messages/post): Sends through the endpoint named by endpointId (required unless type=note). subjectPatientId identifies which represented patient a message concerns, must belong to that contact, and is required when the contact represents more than one patient (409 CONTACT_PARTY_SUBJECT_REQUIRED). Returns the queued row synchronously for optimistic UI; delivery progresses via WebSocket message.updated events. Notes are never sent to the patient. Sends respect per-channel opt-outs (403 OPTED_OUT), the WhatsApp 24h window (400 WHATSAPP_WINDOW_CLOSED — retry with a template), the Messenger/Instagram 24h and TikTok 48h reply windows (400 REPLY_WINDOW_CLOSED; a person replying from the Smileline app or mobile app may answer on Messenger/Instagram up to 7 days after the last inbound once Meta approved the Human Agent feature — API-key and OAuth sends never get that extension), and the 1 MiB patient-bearing metadata ceiling (413 MESSAGE_CONTENT_METADATA_TOO_LARGE). - Messageid - [Get a single message](/reference/inbox/conversations/id/messages/messageid/get): Hydrates one message for a caller holding only its id — the same row the thread page returns, including the resolved email HTML body. The conversation is part of the lookup, not a check after it: a message id from another thread is indistinguishable from one that does not exist. - Attachments - Index - [Download an attachment](/reference/inbox/conversations/id/messages/messageid/attachments/index/get): Streams the server-owned object privately (no-store) after the org check. Active and unknown formats are forced to a safe download. A single `Range: bytes=` request answers 206 with Content-Range (416 past the end), so audio and video can seek. - Transcript - [Transcribe a voice recording again](/reference/inbox/conversations/id/messages/messageid/attachments/index/transcript/post): Starts a new transcript of a patient's voice recording whose transcript failed or could not be read, or of one received before transcripts existed, and answers the message with the attachment's transcript pending. 409 TRANSCRIPT_PENDING while one is being made, TRANSCRIPT_DONE once it has its text, TRANSCRIPT_UNAVAILABLE for anything but a patient's stored recording whose content is still there. - Comment - [Hide, unhide or delete a Facebook or Instagram comment](/reference/inbox/conversations/id/messages/messageid/comment/post): Runs the action on Meta for a comment on a facebook_comments or instagram_comments thread. A person's comment can be hidden, unhidden or deleted; the practice's own public reply can only be deleted (Meta never hides a Page's own comments), and a private reply cannot be changed (409 COMMENT_ACTION_UNAVAILABLE). A deleted comment keeps its text in Smileline, marked by `metadata.commentDeletedAt`; `metadata.commentDeleteRequestedAt` means Meta has not confirmed the delete yet (502 META_COMMENT_ACTION_UNCONFIRMED) and the delete can be sent again. A missing or expired connection answers 409 META_RECONNECT_REQUIRED, a permission Meta refuses 409 META_PERMISSION_MISSING, any other refusal 502 META_COMMENT_ACTION_FAILED. - Comment link - [Get a Facebook or Instagram comment's link on the platform](/reference/inbox/conversations/id/messages/messageid/comment-link/get): Asks Meta where a comment on a facebook_comments or instagram_comments thread is seen: on Facebook the comment's permalink (its post, scrolled to the comment); Instagram links no single comment, so the post's. A comment Meta has no link for (deleted there, or a private reply) answers 409 COMMENT_LINK_UNAVAILABLE, a missing or expired connection 409 META_RECONNECT_REQUIRED, and no answer from Meta 502 META_COMMENT_LINK_FAILED. - Reaction - [React to a patient's WhatsApp message](/reference/inbox/conversations/id/messages/messageid/reaction/post): Sends the practice's WhatsApp reaction on a patient's message, or removes it with an empty `emoji`. WhatsApp keeps one reaction per sender per message, so a new emoji replaces the old one. The reaction is no message of its own: it shows as `metadata.whatsappReaction` on the reacted message. Only inside the 24-hour window (409 WHATSAPP_WINDOW_CLOSED); a message that isn't a patient's WhatsApp message answers 409 REACTION_UNAVAILABLE, a disconnected number 409 CONNECTION_DISCONNECTED or WHATSAPP_RECONNECT_REQUIRED, a refusal from WhatsApp 502 WHATSAPP_REACTION_FAILED. - Retry - [Retry a failed message](/reference/inbox/conversations/id/messages/messageid/retry/post): Re-enqueues a conclusively failed outbound message, keeping its id. Provider-ambiguous delivery cannot be retried because the original may have been accepted. Content already removed by retention cannot be retried (409 MESSAGE_CONTENT_REDACTED). A Messenger/Instagram reply a person wrote in Smileline can only be retried by a person, never an API key or OAuth connection (403 HUMAN_RETRY_REQUIRED). - Read - [Mark a conversation read](/reference/inbox/conversations/id/read/post): Zeroes the org-wide unread counter. Idempotent. - Represented patients - [Add a patient represented by this contact](/reference/inbox/conversations/id/represented-patients/post): Explicitly records a family, guardian, guarantor or other relationship before the shared phone number or email can be used for that patient. - Whatsapp lead - [WhatsApp qualified-lead status](/reference/inbox/conversations/id/whatsapp-lead/get): Whether the conversation's latest click-to-WhatsApp ad referral can be reported to Meta as a qualified lead, and the report once made. - [Mark a WhatsApp ad conversation as a qualified lead](/reference/inbox/conversations/id/whatsapp-lead/post): A person (never an API key or OAuth connection) reports the conversation's latest click-to-WhatsApp referral to Meta as one QualifiedLead, sending only the WhatsApp Business Account id and Meta's click id. Repeating the call answers the same report. Not available to US practices (403 COUNTRY_UNAVAILABLE) or when the practice has not turned reporting on for that number (409 WHATSAPP_LEAD_UNAVAILABLE). - Inbox - Counts - [Inbox badge counts](/reference/inbox/inbox/counts/get): open/mine/unassigned/unread conversation counts plus a per-channel breakdown (closed excluded). - Templates - Templates - [List message templates](/reference/templates/templates/get): Archived templates are excluded unless includeArchived=true. whatsappSync=true adds the WhatsApp sync status Settings → Templates shows. - [Create a message template](/reference/templates/templates/post): channel NULL makes a channel-agnostic snippet. A WhatsApp template is submitted to Meta for approval automatically; its approved template name is derived and written by SmileLine when Meta approves it. - Id - [Get a message template](/reference/templates/templates/id/get) - [Update a message template](/reference/templates/templates/id/patch) - Archive - [Archive a message template](/reference/templates/templates/id/archive/post): Sets archivedAt. Idempotent. - Pause - [Pause a message template's automatic sends](/reference/templates/templates/id/pause/post): Sets pausedAt: every sequence step, booking reminder and review request that would send this template skips it, visibly, until it is resumed. Idempotent; never available to a Smileline support visit. - Restore - [Restore an archived message template](/reference/templates/templates/id/restore/post): Clears archivedAt only. Idempotent. - Resume - [Resume a paused message template](/reference/templates/templates/id/resume/post): Clears pausedAt. Idempotent. - Whatsapp - [Get a WhatsApp template's submissions](/reference/templates/templates/id/whatsapp/get): The organisation's template accounts and every version of this template in each of them, newest first. An edit goes live once every account has approved it. - Submit - [Resubmit a WhatsApp template to Meta](/reference/templates/templates/id/whatsapp/submit/post): In every account that must approve the template, re-arms a rejected, paused, disabled or parked version as a fresh draft for the next submission. A version Meta is still reviewing, or has approved, is left alone. - Whatsapp activity - [WhatsApp template activity](/reference/templates/templates/whatsapp-activity/get): What happened with the organisation's WhatsApp templates at Meta — submissions, verdicts, retries, account problems — newest first, 50 per page. Pass templateId for one template's history and the previous page's nextCursor as before for older events. - Capture - Capture - Token - [Public lead intake](/reference/capture/capture/token/post): Unauthenticated endpoint for website forms and webhooks. Public-token hooks accept application/json, application/x-www-form-urlencoded and multipart/form-data; URL query parameters are merged underneath the body. Signed hooks accept JSON only with no query string and require X-SmileLine-Delivery-Id, X-SmileLine-Timestamp and X-SmileLine-Signature: v1=, signing timestamp.deliveryId.rawBody with HMAC-SHA256. Timestamps have a five-minute skew allowance and use Unix seconds; deliveryId is the idempotency key and any _sl.event_id must be absent or identical. The hook's fieldMap routes incoming keys to patient fields; each entry is an exact key or a dot path into a nested payload (data.contact.email, answers.0.value), and an exact key always wins over a path. The hook's extraFields ([{key, label}]) promote further incoming keys onto the created journey's customFields as label → value. Attribution is captured automatically into a lead touch: attribution-named keys anywhere in the payload, nested objects included, with the shallowest occurrence winning (utm_*, gclid/gbraid/wbraid, fbclid, msclkid, ttclid, li_fat_id, twclid, epik, sc_click_id, rdt_cid and more, plus landing_url/referrer/user_agent and a forwarded visitor IP as client_ip/visitor_ip/user_ip/remote_ip/ip_address/ip, which beats the request's own IP on server-to-server posts) and/or a structured `_sl` envelope (event_id, visitor_id, landing_url, capture_url, referrer, url_params, cookies, client_hints, screen_width, screen_height, timezone, consent, ga) — envelope values win, and an invalid envelope field is dropped on its own. `_sl.consent` carries ad_storage, analytics_storage, ad_user_data and ad_personalization as booleans or Consent Mode's "granted"/"denied", plus `advertising` as a shorthand for the three ad flags. Conversions are shared with the ad platform the lead came from unless one of the ad flags (or `advertising`) is false; leave them out when the visitor made no choice. `_sl.event_id` is an idempotency key: re-posting the same event_id returns the original result without creating anything. Every bounded unmapped field is preserved verbatim on the touch's raw snapshot. Requests are limited to 64 KiB; the merged body/query snapshot allows at most 100 keys, 128-byte key names, 8 KiB string values, 20 items per array and five levels of nesting. Requires at least a valid email or phone after mapping. Answers 201 as soon as the request is stored (after the token, rate limit and — for signed hooks — the signature, query-string and content-type checks); the lead is created moments later. A stored request that cannot become a lead (an unreadable body, no email or phone, an event_id reused with different content) is recorded in the hook's delivery history and kept for review. Rate limited per hook; unknown, paused and archived tokens all answer 404. - Intake review issues - Intake review issues - [List intake issues that need staff review](/reference/intake-review-issues/intake-review-issues/get): Lists capture-time reference degradations without changing patient data. Staff correct the patient or hook through the existing editors, then acknowledge the issue separately. Reason totals use the selected status and ignore the optional reason filter. - Id - Resolve - [Acknowledge a corrected intake issue](/reference/intake-review-issues/intake-review-issues/id/resolve/post): Records an audited acknowledgement and optional bounded note. It never mutates the patient, journey, hook, or referenced lookup. - Deposit requests - Deposit requests - [List deposit requests](/reference/deposit-requests/deposit-requests/get): Newest first, one page at a time: pass `nextCursor` back as `cursor` until it is null. An invalid cursor answers 400. Each row names its patient (with their date of birth), its site (an archived one included) and any unresolved refund of an extra payment. `locationId` keeps one site's requests. - [Create a deposit request and send the payment link](/reference/deposit-requests/deposit-requests/post): Freezes the amount (explicit → treatment override → org default), mints the payment link (its secret after a `#`, hashed at rest) and sends it on every selected channel; with no channels nothing is sent, for a practice taking the payment by card. Per-channel failures are reported in the response, not thrown. One live deposit per lead (per patient for a lead-less request): a pending one answers 409 DEPOSIT_PENDING_EXISTS, a paid, refunding or held one — or one collected at the practice for a consultation still to come — 409 DEPOSIT_LIVE_EXISTS. The request records the site its payment will post at — the journey's, else the patient's, else the practice's first live site; a practice with no site answers 409 LOCATION_MISSING. - Held - [Deposits held](/reference/deposit-requests/deposit-requests/held/get): The booking-deposit money still on the ledger — each live deposit payment less its refunds and what it paid (a kept deposit) — summed over the requests the deposit list shows, with how many patients it is held for. The list's own `heldCents` add up to it. A deposit taken outside Smileline has no ledger payment and is not in it. `locationId` keeps one site's requests, as the list does. - Id - [Get a deposit request](/reference/deposit-requests/deposit-requests/id/get): As the patient record shows it: with its unexpected-payment refund state and its Dentally payment line, so a link to one request reaches its actions. - Cancel - [Cancel a pending deposit request](/reference/deposit-requests/deposit-requests/id/cancel/post): Voids the payment link; any open Checkout session is expired best-effort. A payment that still lands is auto-refunded. - Card payment - [Card form settings for a deposit](/reference/deposit-requests/deposit-requests/id/card-payment/get): The publishable key and connected account the card form tokenises on. 503 CARD_PAYMENTS_NOT_CONFIGURED when the platform has no publishable key in the secret key's mode. - [Pay a deposit with a card taken over the phone](/reference/deposit-requests/deposit-requests/id/card-payment/post): Charges the card on the practice's account as a mail/telephone order (MOTO); when Stripe has not enabled MOTO for the account, or the bank asks for it, the same payment falls back to the patient approving it (clientSecret). One card payment at a time per request; a declined card can be replaced on it. Without paymentMethodId, checks the payment in progress with Stripe. 402 CARD_DECLINED carries the bank's reason. - Cancel - [Stop a card payment in progress](/reference/deposit-requests/deposit-requests/id/card-payment/cancel/post): Cancels the card payment's PaymentIntent and frees the payment link once Stripe confirms nothing was taken. A payment Stripe already took is recorded instead. - Forfeit - [Forfeit a paid deposit (no-show)](/reference/deposit-requests/deposit-requests/id/forfeit/post): The practice keeps the money and the review flag clears. In the same transaction a "Deposit kept" charge goes on the patient's ledger, paid from the deposit — what is left of it after its refunds — so anything the deposit had paid (bills, payment-plan instalments) is owed again. 409 DEPOSIT_NOT_ON_LEDGER while the deposit's payment is not on the ledger yet (it waits in the Review queue). - Link - [Copy the payment link](/reference/deposit-requests/deposit-requests/id/link/post): The request's payment link, its secret after a `#`. A pending, unexpired request's link pays; a request made before hashed links gets a new link here, and its older link keeps working until the request expires. A paid request's same link opens its proof of payment (never a new link). Anything else, or a paid request with no saved link, answers 400 DEPOSIT_NOT_PENDING. - Mark external - [Mark the deposit as collected at the practice](/reference/deposit-requests/deposit-requests/id/mark-external/post): Cash/card taken in person. Terminal: attendance refunds must then be settled at the practice too. - Pms payment - Check now - [Check a waiting deposit payment with Dentally now](/reference/deposit-requests/deposit-requests/id/pms-payment/check-now/post): A deposit's Dentally payment waiting on its connection, the patient's chart, the kept amount or a system-of-record handover is checked again at the next run, about a minute, instead of at the end of its wait, at the `actionVersion` the card showed. Nothing else changes, its version included. 409 PMS_ACTION_CHANGED once the line moved, PMS_ACTION_BUSY while Smileline is working on it, PMS_PAYMENT_NOT_WAITING when the payment is not waiting on one of those. - Dismiss - [Dismiss a deposit's Dentally payment or note](/reference/deposit-requests/deposit-requests/id/pms-payment/dismiss/post): Takes a parked Dentally payment, removal, note or by-hand adjustment off the card once staff have dealt with it in Dentally, at the `actionVersion` the card showed. A payment that was sent stays owed a removal if the deposit is refunded later. - Retry - [Retry a deposit's Dentally payment or note](/reference/deposit-requests/deposit-requests/id/pms-payment/retry/post): Sends a parked payment (or removal, or the deposit's note) to Dentally again, at the `actionVersion` the card showed. One already sent is only looked for again, never posted twice. 409 PMS_ACTION_CHANGED once the line moved, PMS_ACTION_BUSY while Smileline is working on it, PMS_ACTION_INVALID when Retry is not offered, PMS_AUTHORITY_FROZEN during a system-of-record handover. - Refund - [Refund a paid deposit](/reference/deposit-requests/deposit-requests/id/refund/post): Enqueues a full refund on the practice's connected account. Also retries a failed refund. - Resend - [Re-send the payment link on the selected channels](/reference/deposit-requests/deposit-requests/id/resend/post): Pending requests only. Reuse clientRef when retrying the same command; a different channel set with that clientRef returns 409. - Unforfeit - [Undo a kept deposit](/reference/deposit-requests/deposit-requests/id/unforfeit/post): Puts a forfeited deposit back to paid, held for review so it can be refunded or kept again. Its "Deposit kept" charge is reversed and the deposit pays again, oldest first, what it can; instalments it had settled stay open for staff to allocate. 400 DEPOSIT_NOT_KEPT when the deposit is not kept. - Settings - Accounting - Settings - Accounting - [The accounting connection and its account mappings](/reference/settings/accounting/settings/accounting/get) - Accounts - [The provider's chart of accounts and tax rates](/reference/settings/accounting/settings/accounting/accounts/get) - Bills - [Supplier bills and where each stands](/reference/settings/accounting/settings/accounting/bills/get): Newest first, a page at a time. `status` narrows to one status; unresolved bills keep every captured provider answer until a person resolves or discards them. - Id - Discard - [Discard a bill](/reference/settings/accounting/settings/accounting/bills/id/discard/post): Nothing is sent and the bill's evidence stays as the record. A receipt from before `billsFrom` can be sent again with Send earlier receipts. 409 when it is posted, already settled or an attempt is in flight. - Evidence - [Every provider answer a bill's attempts and its supplier's lookups got](/reference/settings/accounting/settings/accounting/bills/id/evidence/get): Newest first, a page at a time: each answer's receipt, the version and attempt it answered, and its HTTP status. Read one answer's raw body with the evidence item route. - Receiptid - [One provider answer of a bill, exactly as it arrived](/reference/settings/accounting/settings/accounting/bills/id/evidence/receiptid/get): The raw body as stored before it was read: text, or base64 when it was not UTF-8. Null when the cell keeps only its digest. - Resolve - [Mark a bill handled by hand](/reference/settings/accounting/settings/accounting/bills/id/resolve/post): The bill is in the books another way (entered by hand, or found after an ambiguous answer); nothing more is sent. 409 when it is already posted, resolved or discarded, or while an attempt is in flight. - Retry - [Send a bill again after fixing what stopped it](/reference/settings/accounting/settings/accounting/bills/id/retry/post): A refused bill gets a new version built from the mappings and supplier as they are now; a supplier whose name matched several contacts is looked up again. 409 BILL_NOT_RETRYABLE otherwise. - Send earlier - [Send receipts from before bills were turned on](/reference/settings/accounting/settings/accounting/bills/send-earlier/post): Every purchase order receipt from `from` up to the day before `billsFrom` that has no bill becomes one. Idempotent: a receipt already billed is left alone. 409 BILLS_OFF without `billsFrom`. - Connection - Status - [Pause, resume or disconnect the accounting connection](/reference/settings/accounting/settings/accounting/connection/status/post): Disconnecting bumps the credential generation, so an in-flight delivery claimed under the old grant parks instead of posting. - Journals - [Journal revisions and their delivery attempts](/reference/settings/accounting/settings/accounting/journals/get): Every revision, a page at a time by cursor: newest day first, then generation, the id breaking a tie. `from`/`to` bound the journal day, both included. - Build - [Build the day's journal for a location](/reference/settings/accounting/settings/accounting/journals/build/post): Reads the day's live ledger entries at the location, maps them to accounts and records one balanced revision for the lane to post. A day already posted with the same figures is unchanged; changed figures post a reversal and a new generation. - Mappings - [Replace the account mappings](/reference/settings/accounting/settings/accounting/mappings/put): The whole set at once: revenue by procedure category, each payment method, each location's bank account, and the control accounts (deposits held, refunds, write-offs, patient liability, VAT). - Oauth - Start - [Start a Xero or QuickBooks connect](/reference/settings/accounting/settings/accounting/oauth/start/post): Mints a single-use signed handshake and returns the provider's authorize URL. The callback stores the grant and marks the connection active; a reconnect bumps the credential generation. - Posting - [Turn stock postings and supplier bills on or off](/reference/settings/accounting/settings/accounting/posting/put): Stock postings need the inventory asset and change in inventory accounts mapped, and supplier bills the purchases account — plus a reclaimable purchase tax code when `reclaimTax` is on; not reclaiming, bills post gross with no tax (409 MAPPINGS_MISSING names the kinds). `reclaimTax` values receipts saved from now on net of tax; earlier receipts keep the mode they were saved with. - Stock postings - [The live connection's stock postings](/reference/settings/accounting/settings/accounting/stock-postings/get): Newest first, a page at a time, with the stock value Smileline holds now for the connection's legal entity, whether the opening answer is still owed, and the sites of other legal entities (not posted). - Baseline - [Say how much stock the books already hold](/reference/settings/accounting/settings/accounting/stock-postings/baseline/put): The opening answer the first stock posting moves from, once per connection. 409 BASELINE_ANSWERED when it was given; MAPPINGS_MISSING without the inventory asset account. - Id - Cancel - [Give up a refused stock posting](/reference/settings/accounting/settings/accounting/stock-postings/id/cancel/post): The anchor stays where it was and the next daily posting covers the whole change. 409 POSTING_NOT_REFUSED unless its latest attempt was refused; POSTING_UNCERTAIN when a send may have booked it, unless `notInBooks`. - Confirm - [Mark a stock posting as in the books](/reference/settings/accounting/settings/accounting/stock-postings/id/confirm/post): For a posting a send may have booked without an answer that says so: a person checked the books and it is there, so it is acknowledged and the next posting moves from it. 409 POSTING_NOT_UNCERTAIN otherwise, or while an attempt is in flight. - Retry - [Send a refused stock posting again](/reference/settings/accounting/settings/accounting/stock-postings/id/retry/post): The same journal under its own key, claimed by the lane as the next attempt. 409 POSTING_NOT_REFUSED unless its latest attempt was refused. - Ai replies - Settings - Ai replies - [Get the AI replies settings](/reference/settings/ai-replies/settings/ai-replies/get): Whether and when the AI answers patients by itself on WhatsApp, SMS, Messenger, Instagram and email. Defaults (off) for a practice that never saved them. Replies need the AI add-on. - [Update the AI replies settings](/reference/settings/ai-replies/settings/ai-replies/put): Whole-write. Practice guidance is shared with patients through the replies, like the knowledge base. Turning replies on needs the AI add-on (403 AI_NOT_ENABLED). - Try - [Try an AI reply](/reference/settings/ai-replies/settings/ai-replies/try/post): Writes the reply a patient's message would get, with the practice's live context and the saved settings. Nothing is sent, saved or acted on. Needs the AI add-on; counts against the practice's AI rate limit. - Ai voice - Settings - Ai voice - [AI voice agent overview](/reference/settings/ai-voice/settings/ai-voice/get): The org's agent (null until provisioned), assignment rules, resolved calling window and entitlement state. - [Update the AI voice agent](/reference/settings/ai-voice/settings/ai-voice/patch): Turning the booking tool on requires an enabled booking page, a live location and a deposit-free online-bookable appointment type; otherwise 409 AI_BOOKING_PREREQUISITES lists what is missing. An enabled Transfer to a human must ring one of this practice's ring groups (422 VOICE_RING_GROUP_MISSING otherwise). - [Provision the AI voice agent](/reference/settings/ai-voice/settings/ai-voice/post): Idempotent singleton provision with default config. Requires the AI voice entitlement. - Dnc imports - [Import a Do-Not-Call list for outbound AI screening](/reference/settings/ai-voice/settings/ai-voice/dnc-imports/post): US practices upload their downloaded National Do-Not-Call registry list (one number per line, or the first field of each CSV line). The raw upload is kept before it is parsed; lines that do not read as a number in the practice's country are counted and named in Review rather than dropped. Numbers on the list are never dialled by the AI. - Queue - [AI outbound queue](/reference/settings/ai-voice/settings/ai-voice/queue/get): Journeys currently AI-handled with their attempt/pacing state, newest next-attempt first. - Rules - [Create an AI assignment rule](/reference/settings/ai-voice/settings/ai-voice/rules/post): Journeys matching an enabled rule are marked AI-handled and queued for outbound calling. Bounded per org. - Id - [Update an AI assignment rule](/reference/settings/ai-voice/settings/ai-voice/rules/id/patch) - Archive - [Archive an AI assignment rule](/reference/settings/ai-voice/settings/ai-voice/rules/id/archive/post): Archived rules stop matching new journeys; already-queued journeys keep their marker. - Test - [Text-mode agent test bench](/reference/settings/ai-voice/settings/ai-voice/test/post): Runs the composed persona + tools through the chat model in text mode. Live test calls ride the ordinary call path on stage. - Appointment labels - Settings - Appointment labels - [List appointment labels](/reference/settings/appointment-labels/settings/appointment-labels/get) - [Create a appointment label](/reference/settings/appointment-labels/settings/appointment-labels/post) - Id - [Update a appointment label](/reference/settings/appointment-labels/settings/appointment-labels/id/patch) - Archive - [Archive a appointment label](/reference/settings/appointment-labels/settings/appointment-labels/id/archive/post) - Restore - [Restore an archived appointment label](/reference/settings/appointment-labels/settings/appointment-labels/id/restore/post) - Reorder - [Reorder appointment labels](/reference/settings/appointment-labels/settings/appointment-labels/reorder/post) - Appointment types - Settings - Appointment types - [List appointment types](/reference/settings/appointment-types/settings/appointment-types/get) - [Create a appointment type](/reference/settings/appointment-types/settings/appointment-types/post) - Id - [Update a appointment type](/reference/settings/appointment-types/settings/appointment-types/id/patch) - Archive - [Archive a appointment type](/reference/settings/appointment-types/settings/appointment-types/id/archive/post) - Restore - [Restore an archived appointment type](/reference/settings/appointment-types/settings/appointment-types/id/restore/post) - Reorder - [Reorder appointment types](/reference/settings/appointment-types/settings/appointment-types/reorder/post) - Billing entities - Settings - Billing entities - [The practice's legal entities](/reference/settings/billing-entities/settings/billing-entities/get): Every legal entity of the practice, the primary first. A practice always has its primary entity: one the API before legal entities created is filled in from the practice's details on first read. - Id - [Edit a legal entity](/reference/settings/billing-entities/settings/billing-entities/id/patch): Changes only the fields sent. The US billing identity (NPI, EIN, taxonomy, state) is a US practice's only, the company number a UK practice's and the codice fiscale an Italian practice's: a value for another country is refused with 422 BILLING_ENTITY_FIELD_COUNTRY (clearing one is always allowed), and a state that is not a US state with 422 BILLING_ENTITY_SUBDIVISION. Another practice's entity is 404. - Call tracking - Settings - Call tracking - [Get call-tracking pools and numbers](/reference/settings/call-tracking/settings/call-tracking/get): Pools, their rotating numbers, verification state and the transcription switch. Call tracking is part of the core plan; it bills per held number plus metered minutes/transcription. - [Update call-tracking settings](/reference/settings/call-tracking/settings/call-tracking/patch): Flip the transcription switch and/or set the GA4 destination. `ga4: null` disconnects GA4; a `ga4` object without `apiSecret` keeps the stored secret. Any GA4 save re-sends call events that had exhausted their delivery attempts. - Pools - [Create a tracking pool](/reference/settings/call-tracking/settings/call-tracking/pools/post): An active pool must name a live treatment — a call from an unknown number is guaranteed to become a patient + journey + Today task — and every pool needs a live location. Where the pool's calls go is set on Call routing (PUT /voice/routing/pools/:poolId). - Id - [Update a tracking pool](/reference/settings/call-tracking/settings/call-tracking/pools/id/patch): Same body and rules as creating a pool. Where the pool's calls go is set on Call routing (PUT /voice/routing/pools/:poolId). - Cancellation reasons - Settings - Cancellation reasons - [List cancellation reasons](/reference/settings/cancellation-reasons/settings/cancellation-reasons/get) - [Create a cancellation reason](/reference/settings/cancellation-reasons/settings/cancellation-reasons/post) - Id - [Update a cancellation reason](/reference/settings/cancellation-reasons/settings/cancellation-reasons/id/patch) - Archive - [Archive a cancellation reason](/reference/settings/cancellation-reasons/settings/cancellation-reasons/id/archive/post) - Restore - [Restore an archived cancellation reason](/reference/settings/cancellation-reasons/settings/cancellation-reasons/id/restore/post) - Reorder - [Reorder cancellation reasons](/reference/settings/cancellation-reasons/settings/cancellation-reasons/reorder/post) - Capture hooks - Settings - Capture hooks - [List capture hooks](/reference/settings/capture-hooks/settings/capture-hooks/get): Archived hooks are excluded unless includeArchived=true. The secret is never exposed. - [Create a capture hook](/reference/settings/capture-hooks/settings/capture-hooks/post): Mints the endpoint token server-side. defaultTreatmentId is optional; without a matching submitted treatment or a default, new contacts arrive as enquiries. authMode=signed returns a signingSecret exactly once; it is never returned by later reads. - Id - [Get a capture hook](/reference/settings/capture-hooks/settings/capture-hooks/id/get) - [Update a capture hook](/reference/settings/capture-hooks/settings/capture-hooks/id/patch): Set active=false to pause intake without archiving. - Archive - [Archive a capture hook](/reference/settings/capture-hooks/settings/capture-hooks/id/archive/post): Sets archivedAt; the public endpoint answers 404. Idempotent. - Deliveries - [List deliveries a capture hook received](/reference/settings/capture-hooks/settings/capture-hooks/id/deliveries/get): Newest first, keyset-paginated. Merges accepted deliveries (from the attribution touch), replayed duplicates, and rejected deliveries aggregated by failure shape with an occurrence count. Requests refused before the hook resolved — an unknown or paused token, or a rate limit — are never recorded and cannot appear here. - Kind - Deliveryid - [Get one delivery's payload](/reference/settings/capture-hooks/settings/capture-hooks/id/deliveries/kind/deliveryid/get): Returns the stored payload so a field mapping can be built from a real submission, plus the attribution intake made of it — the stored touch columns for an accepted delivery, the same extraction re-run over the body for a rejected one. Rejected bodies older than 13 months are redacted in place; the delivery itself is retained. - Regenerate token - [Regenerate the public token](/reference/settings/capture-hooks/settings/capture-hooks/id/regenerate-token/post): Mints a fresh token; the previous endpoint URL stops working immediately. - Restore - [Restore an archived capture hook](/reference/settings/capture-hooks/settings/capture-hooks/id/restore/post): Clears archivedAt only — a previously paused hook stays paused. Idempotent. - Signing - Disable - [Disable signed capture delivery](/reference/settings/capture-hooks/settings/capture-hooks/id/signing/disable/post): Revokes both signing secrets immediately and returns the hook to public-token browser form mode. - Enable - [Enable signed capture delivery](/reference/settings/capture-hooks/settings/capture-hooks/id/signing/enable/post): Switches a public hook to signed JSON delivery and returns the fresh signingSecret exactly once. - Revoke previous - [Revoke the previous capture signing secret](/reference/settings/capture-hooks/settings/capture-hooks/id/signing/revoke-previous/post): Ends the rotation overlap immediately. Idempotent. - Rotate - [Rotate a capture signing secret](/reference/settings/capture-hooks/settings/capture-hooks/id/signing/rotate/post): Returns the new signingSecret exactly once. The previous secret remains valid for 24 hours unless explicitly revoked. - Channels - Settings - Channels - [List channel connections](/reference/settings/channels/settings/channels/get): Archived connections are excluded unless includeArchived=true. Credentials are never exposed. - [Connect a channel](/reference/settings/channels/settings/channels/post): Creates a connection with a server-minted routing token. Credentials are encrypted at rest and write-only. - Id - [Get a channel connection](/reference/settings/channels/settings/channels/id/get) - [Update a channel connection](/reference/settings/channels/settings/channels/id/patch): Set status=disconnected to pause sends/receives without archiving. Passing credentials replaces the stored set. - Archive - [Archive a channel connection](/reference/settings/channels/settings/channels/id/archive/post): Sets archivedAt; inbound webhooks answer 200-and-drop, sends are rejected. Conversation history is kept. Idempotent. - Lead reporting - [WhatsApp qualified-lead reporting](/reference/settings/channels/settings/channels/id/lead-reporting/get): Whether this WhatsApp number reports qualified leads from click-to-WhatsApp ads to Meta. - [Turn WhatsApp qualified-lead reporting on or off](/reference/settings/channels/settings/channels/id/lead-reporting/put): A person turns reporting on for one WhatsApp number, confirming the practice's lawful basis; Smileline checks the connection's Meta grant and sets up the account's dataset. Turning it off always wins. Not available to US practices. - Marketing upgrade - [WhatsApp Marketing Messages API upgrade](/reference/settings/channels/settings/channels/id/marketing-upgrade/get): Whether this WhatsApp number's account accepted Meta's Marketing Messages API terms, read live from Meta. Meta stops marketing templates on the Cloud API on 13 October 2027; until a number upgrades, Meta sends its marketing templates through the Cloud API. - Test - [Test a channel connection](/reference/settings/channels/settings/channels/id/test/post): Pings the provider with the stored credentials and reports reachability. - Whatsapp - Calling - [Set up, retry or turn off WhatsApp calls](/reference/settings/channels/settings/channels/id/whatsapp/calling/post): WhatsApp calls through Telnyx on one WhatsApp number. The connection's `externalMeta.calling` is pending, enabled, failed, needs_review or off, with `externalMeta.callingError` saying why. GB and US practices only (403 COUNTRY_UNAVAILABLE); 409 WHATSAPP_CALLS_NOT_SET_UP on a messages-only number, WHATSAPP_CALLS_BUSY while another setup run holds it; 502 WHATSAPP_CALLS_OFF_FAILED when Telnyx kept calling on. - Resume - [Resume WhatsApp setup with the saved grant](/reference/settings/channels/settings/channels/id/whatsapp/resume/post) - Mailbox - Oauth - Start - [Start a Gmail/Outlook mailbox connect](/reference/settings/channels/settings/channels/mailbox/oauth/start/post): Mints a single-use PKCE handshake and returns the provider's authorize URL. The callback creates the email-channel connection and starts the forward-only sync. - Meta - Oauth - Start - [Start the Messenger/Instagram/comments connect](/reference/settings/channels/settings/channels/meta/oauth/start/post): Mints a single-use OAuth handshake and returns Meta's Login for Business URL. The callback stores the grant awaiting the user's pick (metaStatus=choose); nothing is connected until they pick Pages. - Page choices - [List the Facebook Pages a Messenger/Instagram connect can pick](/reference/settings/channels/settings/channels/meta/page-choices/get): One page of the session user's own grant awaiting a pick. 404 when nothing awaits. - Page selection - [Connect the picked Facebook Pages](/reference/settings/channels/settings/channels/meta/page-selection/post): Records the pick once (fenced on the grant's id and generation) and connects the picked Pages; `pending` = accepted, the rest is finished in the background. - Setup - [Get guided channel setup availability](/reference/settings/channels/settings/channels/setup/get) - Sms - Documents - [Upload a document for SMS registration](/reference/settings/channels/settings/channels/sms/documents/post): Upload one document up to 10 MiB. The returned document belongs to this practice and can be reused in its registration. - Numbers - Id - [Release a standalone SMS number and end its rental](/reference/settings/channels/settings/channels/sms/numbers/id/delete) - Activate - [Connect an eligible number to the approved SMS registration](/reference/settings/channels/settings/channels/sms/numbers/id/activate/post) - Check - [Check whether an owned number can send and receive SMS](/reference/settings/channels/settings/channels/sms/numbers/id/check/post) - Purchase - [Accept an SMS number rental and begin the durable order](/reference/settings/channels/settings/channels/sms/numbers/purchase/post) - Search - [Find available UK mobile or US local SMS numbers](/reference/settings/channels/settings/channels/sms/numbers/search/get) - Registrations - [Save a practice's SMS registration details](/reference/settings/channels/settings/channels/sms/registrations/put) - From verification - [File the UK mobile registration from the approved UK verification](/reference/settings/channels/settings/channels/sms/registrations/from-verification/post): A verified UK practice skips the mobile form: the evidence approved for UK calling verification is filed as the GB mobile registration and submitted to the carrier. Idempotent — an existing mobile registration is returned. 409 SMS_VERIFICATION_REQUIRED when the practice is not verified or the approval does not cover every mobile requirement. - Id - Documents - Requirementid - [Download a document on the UK carrier review](/reference/settings/channels/settings/channels/sms/registrations/id/documents/requirementid/get): Streams the file behind one document row of this registration's review. The document is found from that review, never from a caller-supplied provider id. - Number quote - [Review rental for an SMS number without the Voice add-on](/reference/settings/channels/settings/channels/sms/registrations/id/number-quote/post) - Otp - [Verify the mobile owner for a US sole proprietor brand](/reference/settings/channels/settings/channels/sms/registrations/id/otp/post) - Resend - [Request another registration code for a sole proprietor](/reference/settings/channels/settings/channels/sms/registrations/id/otp/resend/post) - Quote - [Review SMS registration charges before submitting](/reference/settings/channels/settings/channels/sms/registrations/id/quote/post) - Refresh - [Refresh SMS carrier review or resume interrupted setup](/reference/settings/channels/settings/channels/sms/registrations/id/refresh/post) - Stop renewal - [Stop renewing a US SMS campaign](/reference/settings/channels/settings/channels/sms/registrations/id/stop-renewal/post): The campaign expires at the carrier's current period end. Existing charges remain due. Number rental is separate. - Submit - [Accept a saved quote and submit SMS registration](/reference/settings/channels/settings/channels/sms/registrations/id/submit/post) - Setup - [Get guided SMS setup and number readiness](/reference/settings/channels/settings/channels/sms/setup/get) - Uk requirements - [Get the UK's mobile-number registration requirements](/reference/settings/channels/settings/channels/sms/uk-requirements/get) - Telnyx sms - [Enable texting from a Voice number](/reference/settings/channels/settings/channels/telnyx-sms/post): Assigns the practice's Voice number to the platform messaging profile and creates (or returns) the sms/telnyx connection that sends from it and routes its replies to the inbox. Idempotent per number. US numbers also need 10DLC registration before carriers deliver. - Tiktok - Oauth - Start - [Start the TikTok Business Messaging connect](/reference/settings/channels/settings/channels/tiktok/oauth/start/post): Mints a single-use OAuth handshake and returns TikTok's authorize URL. The callback creates the TikTok channel connection for the granted Business Account. - Whatsapp - Embedded signup - [Complete WhatsApp Embedded Signup](/reference/settings/channels/settings/channels/whatsapp/embedded-signup/post): Exchanges the popup's single-use code and saves the grant as a pending connection at once, then validates it, works out the account and number (posted hints only once the grant confirms them), and walks the onboarding (subscribe, verify, register, activate). Re-posting cannot resume — the code works once; after a failure the error names the saved connection (`details.connectionId`) and Continue setup (`POST /settings/channels/:id/whatsapp/resume`) resumes from its saved grant. - Chat assignment - Settings - Chat assignment - [Who gets new chats](/reference/settings/chat-assignment/settings/chat-assignment/get): The practice's per-channel rules; channel null is "Everything else". A new message keeps its chat with the current assignee, then the owner of the patient's newest open journey, then the rule for its channel, then "Everything else", then the practice owner — whoever first can hold chats. - [Set who gets new chats](/reference/settings/chat-assignment/settings/chat-assignment/put): Replaces the practice's rules (an empty list clears them). Every assignee must be a live owner, manager, front desk or telesales member (400 INVALID_ASSIGNEE). Needs settings:update. - Chat widget - Settings - Chat widget - [Get the chat widget and its knowledge base](/reference/settings/chat-widget/settings/chat-widget/get): Returns the org's widget (null until provisioned) plus every knowledge-base source with ingestion status. - [Update widget config](/reference/settings/chat-widget/settings/chat-widget/patch): Config is replaced whole. Changes propagate to embedded widgets within ~a minute (the public config is edge-cached). - [Provision the chat widget](/reference/settings/chat-widget/settings/chat-widget/post): Idempotently creates the org's webchat channel connection (whose routing token is the public embed key), a hidden capture hook for the scripted flow, and the widget row with default config. - Kb - Document - [Upload a document knowledge source](/reference/settings/chat-widget/settings/chat-widget/kb/document/post): multipart/form-data with a single `file` field (pdf, txt, md or html, max 10 MB). Extraction and embedding run asynchronously. - Id - [Update a snippet source](/reference/settings/chat-widget/settings/chat-widget/kb/id/patch): Snippets only; re-embeds on save. - Archive - [Archive a knowledge source](/reference/settings/chat-widget/settings/chat-widget/kb/id/archive/post): Removes its chunks from retrieval immediately. Idempotent. - Recrawl - [Re-ingest a knowledge source](/reference/settings/chat-widget/settings/chat-widget/kb/id/recrawl/post): Websites re-crawl; documents and snippets re-extract and re-embed. - Snippet - [Add a text snippet knowledge source](/reference/settings/chat-widget/settings/chat-widget/kb/snippet/post): Free-text knowledge (opening hours, price list, policies) — the fastest way to teach the assistant. - Website - [Add a website knowledge source](/reference/settings/chat-widget/settings/chat-widget/kb/website/post): Queues a same-host crawl from the start URL (up to 500 pages). Re-crawls run weekly and on demand. - Test - [Test the AI assistant](/reference/settings/chat-widget/settings/chat-widget/test/post): Runs the widget's AI answering pipeline (knowledge retrieval included) without persisting anything. Requires the AI assistant add-on. - Clinical - Settings - Clinical - Adjustment types - [List adjustment types](/reference/settings/clinical/settings/clinical/adjustment-types/get) - [Create a adjustment type](/reference/settings/clinical/settings/clinical/adjustment-types/post) - Id - [Update a adjustment type](/reference/settings/clinical/settings/clinical/adjustment-types/id/patch) - Archive - [Archive a adjustment type](/reference/settings/clinical/settings/clinical/adjustment-types/id/archive/post) - Restore - [Restore an archived adjustment type](/reference/settings/clinical/settings/clinical/adjustment-types/id/restore/post) - Reorder - [Reorder adjustment types](/reference/settings/clinical/settings/clinical/adjustment-types/reorder/post) - Alert list - [The practice's changes to the alert list](/reference/settings/clinical/settings/clinical/alert-list/get): Live rows only; the client merges them over Smileline's list (core effectiveAlertList). medicalHistory:record or clinicalCatalog:read, so whoever raises alerts reads the practice's defaults. - [Add the practice's own alert-list entry](/reference/settings/clinical/settings/clinical/alert-list/post): clinicalCatalog:manage. Name, short name, kind, group and severity are required (400). - Id - Archive - [Back to Smileline's wording, or remove an own entry](/reference/settings/clinical/settings/clinical/alert-list/id/archive/post): Archives one live row (clinicalCatalog:manage): an override's entry reads as Smileline's again, an own entry leaves the list. 404 for a row that is unknown or already archived. - Key - [Change a Smileline alert-list entry for the practice](/reference/settings/clinical/settings/clinical/alert-list/key/put): Replaces the practice's override of one Smileline entry whole (clinicalCatalog:manage); a field left out inherits Smileline's. 404 ALERT_LIST_KEY_UNKNOWN for a key Smileline's list does not have. - Own - Id - [Change the practice's own alert-list entry](/reference/settings/clinical/settings/clinical/alert-list/own/id/put): Replaces one live own entry whole (clinicalCatalog:manage); the same fields as adding it. 404 for a row that is unknown, archived or an override of Smileline's. - Reset - [Reset to Smileline's alert list](/reference/settings/clinical/settings/clinical/alert-list/reset/post): Archives every live row of the practice (clinicalCatalog:manage): every entry reads as Smileline's and own entries leave the list. Resetting an unchanged list archives none. - Code entitlements - [The practice's coding-standard licence entitlements](/reference/settings/clinical/settings/clinical/code-entitlements/get) - Code standards - [Search the coding standards the practice may see](/reference/settings/clinical/settings/clinical/code-standards/get): SNOMED rows for every practice; CDT rows only while the practice holds an unrevoked licence entitlement for the edition (04 §5). - Defaults - [What restoring the clinical defaults would add](/reference/settings/clinical/settings/clinical/defaults/get): The country's default pack — codes with chart icons and indicative fees, findings, recall types, fee schedule and price lists, appointment types, rooms, treatment / note / letter / form templates — compared with what the practice has. Identity is the code, the form key or the name; the practice's own rows are never touched. - [Restore the clinical defaults](/reference/settings/clinical/settings/clinical/defaults/post): Adds every default the practice is missing (or only the sections named), in dependency order. Installing twice adds nothing. GB practices in England also get the NHS price list and band items, priced from the frozen NHS evidence only. - Document categories - [List document categories](/reference/settings/clinical/settings/clinical/document-categories/get) - [Create a document category](/reference/settings/clinical/settings/clinical/document-categories/post) - Id - [Update a document category](/reference/settings/clinical/settings/clinical/document-categories/id/patch) - Archive - [Archive a document category](/reference/settings/clinical/settings/clinical/document-categories/id/archive/post) - Restore - [Restore an archived document category](/reference/settings/clinical/settings/clinical/document-categories/id/restore/post) - Reorder - [Reorder document categories](/reference/settings/clinical/settings/clinical/document-categories/reorder/post) - Fee schedules - [List fee schedules](/reference/settings/clinical/settings/clinical/fee-schedules/get) - [Create a fee schedule](/reference/settings/clinical/settings/clinical/fee-schedules/post) - Id - [Update a fee schedule](/reference/settings/clinical/settings/clinical/fee-schedules/id/patch) - Archive - [Archive a fee schedule](/reference/settings/clinical/settings/clinical/fee-schedules/id/archive/post) - Items - [List the fee revisions of a schedule](/reference/settings/clinical/settings/clinical/fee-schedules/id/items/get) - [Add a fee revision to a schedule](/reference/settings/clinical/settings/clinical/fee-schedules/id/items/post): Fee revisions are immutable: a change is a new row from its effective date; a mistake is retired and may then be set again for its own date. A revision with a site is that site's price, which replaces the practice-wide one there (scope before tier). - Itemid - Retire - [Retire a fee revision](/reference/settings/clinical/settings/clinical/fee-schedules/id/items/itemid/retire/post) - Restore - [Restore an archived fee schedule](/reference/settings/clinical/settings/clinical/fee-schedules/id/restore/post) - Form templates - [List patient form templates (current versions, archived on request)](/reference/settings/clinical/settings/clinical/form-templates/get) - [Create a patient form template (version 1)](/reference/settings/clinical/settings/clinical/form-templates/post) - Id - Archive - [Archive a form template version](/reference/settings/clinical/settings/clinical/form-templates/id/archive/post) - Versions - [Publish a new version of a form template](/reference/settings/clinical/settings/clinical/form-templates/id/versions/post): Templates are sealed once used: a change is a new version row and the previous version is archived in the same transaction. Submissions keep citing the version they answered. - Medications - [List medications](/reference/settings/clinical/settings/clinical/medications/get) - [Create a medication](/reference/settings/clinical/settings/clinical/medications/post) - Id - [Update a medication](/reference/settings/clinical/settings/clinical/medications/id/patch) - Archive - [Archive a medication](/reference/settings/clinical/settings/clinical/medications/id/archive/post) - Restore - [Restore an archived medication](/reference/settings/clinical/settings/clinical/medications/id/restore/post) - Reorder - [Reorder medications](/reference/settings/clinical/settings/clinical/medications/reorder/post) - Note templates - [List note templates](/reference/settings/clinical/settings/clinical/note-templates/get) - [Create a note template](/reference/settings/clinical/settings/clinical/note-templates/post) - Id - [Update a note template](/reference/settings/clinical/settings/clinical/note-templates/id/patch) - Archive - [Archive a note template](/reference/settings/clinical/settings/clinical/note-templates/id/archive/post) - Restore - [Restore an archived note template](/reference/settings/clinical/settings/clinical/note-templates/id/restore/post) - Reorder - [Reorder note templates](/reference/settings/clinical/settings/clinical/note-templates/reorder/post) - Payment methods - [List payment methods](/reference/settings/clinical/settings/clinical/payment-methods/get) - [Create a payment method](/reference/settings/clinical/settings/clinical/payment-methods/post) - Id - [Update a payment method](/reference/settings/clinical/settings/clinical/payment-methods/id/patch) - Archive - [Archive a payment method](/reference/settings/clinical/settings/clinical/payment-methods/id/archive/post) - Restore - [Restore an archived payment method](/reference/settings/clinical/settings/clinical/payment-methods/id/restore/post) - Reorder - [Reorder payment methods](/reference/settings/clinical/settings/clinical/payment-methods/reorder/post) - Prescription templates - [List prescription templates](/reference/settings/clinical/settings/clinical/prescription-templates/get) - [Create a prescription template](/reference/settings/clinical/settings/clinical/prescription-templates/post) - Id - [Update a prescription template](/reference/settings/clinical/settings/clinical/prescription-templates/id/patch) - Archive - [Archive a prescription template](/reference/settings/clinical/settings/clinical/prescription-templates/id/archive/post) - Items - [Replace a prescription template's items](/reference/settings/clinical/settings/clinical/prescription-templates/id/items/put): Replaces the items whole, in the order sent (clinicalCatalog:manage). An archived template is 409 TEMPLATE_ARCHIVED; a drug code the practice cannot see is 400 STANDARD_INVALID; refills outside a US practice are 422 REFILLS_NOT_APPLICABLE. - Restore - [Restore an archived prescription template](/reference/settings/clinical/settings/clinical/prescription-templates/id/restore/post) - Price lists - [List price lists](/reference/settings/clinical/settings/clinical/price-lists/get) - [Create a price list](/reference/settings/clinical/settings/clinical/price-lists/post) - Id - [Update a price list](/reference/settings/clinical/settings/clinical/price-lists/id/patch) - Archive - [Archive a price list](/reference/settings/clinical/settings/clinical/price-lists/id/archive/post) - Items - [List a price list's overrides](/reference/settings/clinical/settings/clinical/price-lists/id/items/get) - Procedurecodeid - [Remove a price list's override for one code](/reference/settings/clinical/settings/clinical/price-lists/id/items/procedurecodeid/delete): The list inherits both the schedule's fee and the code's tax treatment again. Only the pair the editor showed is removed: otherwise 409 PRICE_OVERRIDE_STALE with `details.current`. - [Set a price list's override for one code](/reference/settings/clinical/settings/clinical/price-lists/id/items/procedurecodeid/put): Sets the fee and the tax treatment together (null inherits). `expected` is the pair the editor showed, or null for none: a first override is inserted only if there is still none, and a change applies only to that pair. Otherwise 409 PRICE_OVERRIDE_STALE with `details.current`, the pair now (null: none). - Restore - [Restore an archived price list](/reference/settings/clinical/settings/clinical/price-lists/id/restore/post) - Reorder - [Reorder price lists](/reference/settings/clinical/settings/clinical/price-lists/reorder/post) - Price preview - [Check what a treatment would be priced at](/reference/settings/clinical/settings/clinical/price-preview/get): Runs the same pricing charting uses, read-only: the revision that won (site before tier, then the latest date), the list's override, the fee and the tax treatment with its rate at the site. A treatment that cannot be priced answers `refused` with the reason charting would give. - Procedure categories - [List procedure categories](/reference/settings/clinical/settings/clinical/procedure-categories/get) - [Create a procedure category](/reference/settings/clinical/settings/clinical/procedure-categories/post) - Id - [Update a procedure category](/reference/settings/clinical/settings/clinical/procedure-categories/id/patch) - Archive - [Archive a procedure category](/reference/settings/clinical/settings/clinical/procedure-categories/id/archive/post) - Restore - [Restore an archived procedure category](/reference/settings/clinical/settings/clinical/procedure-categories/id/restore/post) - Reorder - [Reorder procedure categories](/reference/settings/clinical/settings/clinical/procedure-categories/reorder/post) - Procedure codes - [List procedure codes](/reference/settings/clinical/settings/clinical/procedure-codes/get) - [Create a procedure code](/reference/settings/clinical/settings/clinical/procedure-codes/post) - Id - [Update a procedure code](/reference/settings/clinical/settings/clinical/procedure-codes/id/patch) - Archive - [Archive a procedure code](/reference/settings/clinical/settings/clinical/procedure-codes/id/archive/post) - Restore - [Restore an archived procedure code](/reference/settings/clinical/settings/clinical/procedure-codes/id/restore/post) - Reorder - [Reorder procedure codes](/reference/settings/clinical/settings/clinical/procedure-codes/reorder/post) - Recall types - [List recall types](/reference/settings/clinical/settings/clinical/recall-types/get) - [Create a recall type](/reference/settings/clinical/settings/clinical/recall-types/post) - Id - [Update a recall type](/reference/settings/clinical/settings/clinical/recall-types/id/patch) - Archive - [Archive a recall type](/reference/settings/clinical/settings/clinical/recall-types/id/archive/post) - Restore - [Restore an archived recall type](/reference/settings/clinical/settings/clinical/recall-types/id/restore/post) - Reorder - [Reorder recall types](/reference/settings/clinical/settings/clinical/recall-types/reorder/post) - Clinical storage - Settings - Clinical storage - Deletions - [Clinical document deletions that are not complete](/reference/settings/clinical-storage/settings/clinical-storage/deletions/get): Every deletion row of the practice whose backup copy is still present: requested, in progress, waiting for the backup account's thirty-day window, or parked. Nothing is deleted before its retention date, and a completed row is not listed. - Id - Replay - [Replay one parked deletion](/reference/settings/clinical-storage/settings/clinical-storage/deletions/id/replay/post): Re-arms a parked deletion with a fresh attempt budget. The executor revalidates before touching anything, so a row whose legal hold still stands is skipped again. Anything not parked is refused. - Veto - [Veto one deletion](/reference/settings/clinical-storage/settings/clinical-storage/deletions/id/veto/post): Parks the row on the primary side: it leaves the backup manifest at once and is never resumed automatically. A primary object already removed stays removed; the backup copy is retained. Replay re-arms the row. - Keys - [The cell's clinical master-key versions](/reference/settings/clinical-storage/settings/clinical-storage/keys/get): Every master-key version of the practice's cell with its state — active, retiring while documents are rewritten under the new key, or retired once nothing is encrypted under it (07 §7). Read-only: activation is an operator action. - Prescription cleanup - [Unused prescription PDF cleanup needing review](/reference/settings/clinical-storage/settings/clinical-storage/prescription-cleanup/get) - Id - Replay - [Replay a parked unused PDF deletion](/reference/settings/clinical-storage/settings/clinical-storage/prescription-cleanup/id/replay/post) - Restore items - [Restored objects waiting for an owner](/reference/settings/clinical-storage/settings/clinical-storage/restore-items/get): Every backup object a restore brought back that the database could not file by itself — its owner row is missing, its document is deleted, or its metadata is incomplete. Each is attached to a record or discarded from here; the generic review-queue actions refuse them. - Id - Attach - [Attach one restored object to a record](/reference/settings/clinical-storage/settings/clinical-storage/restore-items/id/attach/post): Reads the object back under the practice's key, writes its document, copy and copy-work rows and the child link of the chosen owner (a patient document for a patient; the document row only for an account, a staff record or a user), reopens its key version if it had been retired, and resolves the review item. Refused when the owner does not exist or the object's document already exists. - Discard - [Discard one restored object](/reference/settings/clinical-storage/settings/clinical-storage/restore-items/id/discard/post): Never an immediate delete: the object is filed as an organisation document of kind restore_orphan, so retention, the signed manifest, the backup account's thirty-day delay and both vetoes apply before anything is removed. The review item is marked discarded with the reason. - Rotations - [Parked key rotations](/reference/settings/clinical-storage/settings/clinical-storage/rotations/get): Every document key rotation of the practice that spent its attempt budget, with the last error. Rotations still in progress need nobody and are not listed. - Id - Replay - [Replay one parked key rotation](/reference/settings/clinical-storage/settings/clinical-storage/rotations/id/replay/post): Re-arms a parked rotation with a fresh attempt budget; it resumes from the step it was parked in. Anything not parked is refused. - Work - [Clinical storage work that is not complete](/reference/settings/clinical-storage/settings/clinical-storage/work/get): Every backup-copy work row that is still open, reserved, parked, or waiting for its primary verification — the review list of 07 §7. Completed rows are not listed. - Id - Replay - [Replay one storage work row](/reference/settings/clinical-storage/settings/clinical-storage/work/id/replay/post): An unverified primary is read back and sealed; a parked backup copy re-arms its attempt budget and reopens for the copier. Anything else is refused. - Compliance - Settings - Compliance - Checks - [Recurring and ad-hoc checks with their latest entry](/reference/settings/compliance/settings/compliance/checks/get) - [Define a check](/reference/settings/compliance/settings/compliance/checks/post) - Id - [Edit or deactivate a check](/reference/settings/compliance/settings/compliance/checks/id/patch): `fields` replaces the list whole, but entries keep each reading under its field's key: every saved field stays, with its kind and unit unchanged, while its label and `required` may change and new fields may be added. A relabelled field changes only later entries: each entry keeps the fields it was recorded under (`fields` on the entry). Anything else — a saved field left out or redefined, or a stored definition that does not parse — is refused with 409 CHECK_FIELDS_LOCKED and nothing changes; two fields with one key are refused with 400. - Entries - [A check's entries, newest first](/reference/settings/compliance/settings/compliance/checks/id/entries/get): One page at a time: pass `nextCursor` back as `cursor` until it is null. An invalid cursor answers 400. - [Record a completed check](/reference/settings/compliance/settings/compliance/checks/id/entries/post): Append-only. The entry keeps the check's fields (key, label, kind, unit) as they stand now, so a later relabel never changes what its readings meant. Completing the task a due check opened closes it; an autoclave or spore check may cite the sterilisation cycle it verified. - Incidents - [Incidents, open first](/reference/settings/compliance/settings/compliance/incidents/get): Open incidents first, then newest occurrence first. One page at a time: pass `nextCursor` back as `cursor` until it is null. `from` and `to` are practice-local days, both included. An invalid cursor answers 400. - [Report an incident](/reference/settings/compliance/settings/compliance/incidents/post) - Id - [Investigate or close an incident](/reference/settings/compliance/settings/compliance/incidents/id/patch): reported → investigating → closed, or straight to closed; a closed incident is immutable (409 INCIDENT_TRANSITION). - Policies - [Policies: every version, drafts first](/reference/settings/compliance/settings/compliance/policies/get) - [Draft a policy version](/reference/settings/compliance/settings/compliance/policies/post): A new key starts at version 1; an existing key drafts the next version, which supersedes the live one when published. - Id - [Edit a draft, or set a published version's review date](/reference/settings/compliance/settings/compliance/policies/id/patch) - Acknowledge - [Acknowledge the published version as the signed-in member](/reference/settings/compliance/settings/compliance/policies/id/acknowledge/post) - Archive - [Archive a published version, or delete a draft](/reference/settings/compliance/settings/compliance/policies/id/archive/post) - Publish - [Publish a draft; the previous live version is archived](/reference/settings/compliance/settings/compliance/policies/id/publish/post) - Staff records - [Staff records with their expiry dates](/reference/settings/compliance/settings/compliance/staff-records/get) - [Add a staff record](/reference/settings/compliance/settings/compliance/staff-records/post) - Id - [Update or archive a staff record](/reference/settings/compliance/settings/compliance/staff-records/id/patch) - Sterilisation cycles - [Sterilisation cycles with their uses, newest first](/reference/settings/compliance/settings/compliance/sterilisation-cycles/get): One page at a time: pass `nextCursor` back as `cursor` until it is null. `running` keeps cycles with no outcome yet. An invalid cursor answers 400. - [Start a sterilisation cycle](/reference/settings/compliance/settings/compliance/sterilisation-cycles/post) - Id - Complete - [Complete a cycle with its outcome, sealed once](/reference/settings/compliance/settings/compliance/sterilisation-cycles/id/complete/post) - Uses - [Record instruments from a passed cycle used on a patient](/reference/settings/compliance/settings/compliance/sterilisation-cycles/id/uses/post): 201 with the cycle when recorded; 200 when this `requestId` was already recorded with the same body; 409 ID_TAKEN when it was recorded with another one. A different `requestId` is a new use, even for the same patient. 409 CYCLE_NOT_PASSED unless the cycle passed. - Useid - Corrections - [Correct an instrument use, or mark it entered in error](/reference/settings/compliance/settings/compliance/sterilisation-cycles/id/uses/useid/corrections/post): Adds a row that corrects the use and keeps it, with the reason, in the cycle's history; the corrected use stops counting. A replacement's omitted `appointmentId`, `procedureId` or `instrumentSet` keeps the corrected use's value and null clears it; a kept appointment or procedure that is not the new patient's answers 409 CYCLE_USE_REFUSED. Only an active use is corrected, once (409 USE_ALREADY_CORRECTED otherwise). The same `requestId` rules as recording apply, and a repeat is answered before the use is checked. - Connections - Settings - Connections - [List every external provider connection](/reference/settings/connections/settings/connections/get): One health board over the ad, SEO, reputation, inbox, social, PMS, dialer and intraoral scanner grants. Read-only: each row deep-links to the page that owns its connect and disconnect flow. Credentials, tokens and account identifiers beyond a display name are never exposed. - Contact methods - Settings - Contact methods - [List contact methods](/reference/settings/contact-methods/settings/contact-methods/get) - [Create a contact method](/reference/settings/contact-methods/settings/contact-methods/post) - Id - [Update a contact method](/reference/settings/contact-methods/settings/contact-methods/id/patch) - Archive - [Archive a contact method](/reference/settings/contact-methods/settings/contact-methods/id/archive/post) - Restore - [Restore an archived contact method](/reference/settings/contact-methods/settings/contact-methods/id/restore/post) - Reorder - [Reorder contact methods](/reference/settings/contact-methods/settings/contact-methods/reorder/post) - Demo data - Settings - Demo data - [Remove demo data](/reference/settings/demo-data/settings/demo-data/delete): Deletes an unchanged sample set. If ordinary activity history was added to the sample graph, archives the linked sample records and disables its integrations instead so immutable evidence is preserved. Answers 404 when no demo data is present. - [Demo data status](/reference/settings/demo-data/settings/demo-data/get): Whether the organization currently holds seeded demo data, with per-entity counts. - [Seed demo data](/reference/settings/demo-data/settings/demo-data/post): Fills the organization with realistic marked sample data — patients in every status, journeys in every pipeline stage, appointments past and future, tasks and timeline activity. Answers 409 when demo data is already present. - Clinical - [Add clinical demo data (one step)](/reference/settings/demo-data/settings/demo-data/clinical/post): Runs the next step of the v4 clinical top-up on a seeded v3 organization — charts, treatment plans, three months of diaries, notes, ledger, recalls, perio exams, forms and images — and records it, so a repeated call resumes where the last one stopped. Answers 404 outside the stage cell or for a member who is not a platform admin, 409 when nothing is seeded or the top-up is already complete. - Email domains - Settings - Email domains - [List sending domains](/reference/settings/email-domains/settings/email-domains/get): Includes archived domains whose removal has not finished at the provider, so a stuck teardown stays visible. - [Connect a sending domain](/reference/settings/email-domains/settings/email-domains/post): Creates the domain at the email provider and returns it with the DNS records to publish. Verification is asynchronous — poll the domain until it reports verified. - Id - [Get one sending domain](/reference/settings/email-domains/settings/email-domains/id/get) - Archive - [Stop using a sending domain](/reference/settings/email-domains/settings/email-domains/id/archive/post): Sends fall back to the shared platform domain immediately. The domain is handed back to the provider in the background. - Cloudflare apply - [Publish the records with a Cloudflare API token](/reference/settings/email-domains/settings/email-domains/id/cloudflare-apply/post): Uses the token for this one setup — a zone lookup, a read of each name, one batch write and a read-back — and then discards it. It is never stored, logged or returned. Only empty names are written to: anything already published is left alone and reported. - Dns host - [Find out where this domain's DNS is managed](/reference/settings/email-domains/settings/email-domains/id/dns-host/get): Reads public DNS to name the provider and say which automatic routes are open. Proves nothing about whether the records are published — only a verify does that. - Domain connect url - [Get the one-click link to the practice's DNS provider](/reference/settings/email-domains/settings/email-domains/id/domain-connect-url/post): Returns a signed, single-purpose link the practice follows to approve our records at their own DNS host. The link carries the DKIM key and can be replayed by anyone with a session there, so it is minted behind a write permission and never cached. - Retry teardown - [Retry removing a sending domain](/reference/settings/email-domains/settings/email-domains/id/retry-teardown/post) - Verify - [Check a sending domain again](/reference/settings/email-domains/settings/email-domains/id/verify/post): Asks the provider to re-read DNS. Use after publishing or correcting the records; a domain that gave up waiting is re-armed by the same call. - Insurance - Settings - Insurance - Billing - [Read the practice's claims billing identity](/reference/settings/insurance/settings/insurance/billing/get) - [Set the practice's claims billing identity](/reference/settings/insurance/settings/insurance/billing/put): Writes the NPI, EIN and taxonomy of one legal entity — the named one, else the practice's primary — which every claim and eligibility check it bills names as the billing provider. Another practice's entity is 404. - Carriers - [List insurance carriers](/reference/settings/insurance/settings/insurance/carriers/get) - [Create a insurance carrier](/reference/settings/insurance/settings/insurance/carriers/post) - Id - [Update a insurance carrier](/reference/settings/insurance/settings/insurance/carriers/id/patch) - Archive - [Archive a insurance carrier](/reference/settings/insurance/settings/insurance/carriers/id/archive/post) - Restore - [Restore an archived insurance carrier](/reference/settings/insurance/settings/insurance/carriers/id/restore/post) - Reorder - [Reorder insurance carriers](/reference/settings/insurance/settings/insurance/carriers/reorder/post) - Plans - [List insurance plans](/reference/settings/insurance/settings/insurance/plans/get) - [Create a insurance plan](/reference/settings/insurance/settings/insurance/plans/post) - Id - [Update a insurance plan](/reference/settings/insurance/settings/insurance/plans/id/patch) - Archive - [Archive a insurance plan](/reference/settings/insurance/settings/insurance/plans/id/archive/post) - Fee schedules - [A plan's allowed fees by legal entity](/reference/settings/insurance/settings/insurance/plans/id/fee-schedules/get): The legal entities whose contract with the plan differs from the plan's own: each entity's allowed-fee schedule, network participation, or both. An entity without a row uses the plan's. - [Set a plan's allowed fees for legal entities](/reference/settings/insurance/settings/insurance/plans/id/fee-schedules/put): Sets each named entity's own terms for the plan: an allowed-fee schedule, a network, or both. An item naming neither clears the entity's terms, which then follow the plan's; entities not named are left as they are. Each entity appears once (400 otherwise); an archived fee schedule is refused (400); another practice's plan, entity or schedule is 404. Answers the plan's full set. - Restore - [Restore an archived insurance plan](/reference/settings/insurance/settings/insurance/plans/id/restore/post) - Revisions - [List a plan's benefit revisions](/reference/settings/insurance/settings/insurance/plans/id/revisions/get): Every effective-dated benefit design of the plan with its ranges, exceptions and copays, newest first; retired revisions stay listed because estimates cite them. - [Add a benefit revision to a plan](/reference/settings/insurance/settings/insurance/plans/id/revisions/post): A benefit design is written once with every range, exception and copay anchored in one CDT edition. Live revisions of a plan never overlap (409 REVISION_OVERLAP); a correction is a new revision that retires the mistaken one. An unknown CDT code answers 422 CODE_UNKNOWN. - Reorder - [Reorder insurance plans](/reference/settings/insurance/settings/insurance/plans/reorder/post) - Revisions - Id - Retire - [Retire a benefit revision](/reference/settings/insurance/settings/insurance/revisions/id/retire/post): Seals retired_at; the revision leaves the estimate path but stays readable because stamped estimates cite it. - Lead assignment - Settings - Lead assignment - [Who gets new leads](/reference/settings/lead-assignment/settings/lead-assignment/get): The practice's lead assignment rules. A new lead with no owner given goes to the people of the first rule that matches it — its location, then its treatment, then its first-touch channel, then "Everything else" (all three null) — who take turns. With no matching rule it stays unowned until someone records its first outcome. A lead added by a person in the app is theirs, and a lead-ad form's owner is kept. - [Set who gets new leads](/reference/settings/lead-assignment/settings/lead-assignment/put): Replaces the practice's rules (an empty list clears them); people who stay in a rule keep their place in its turns. A newly added person must be a live owner, manager, front desk or telesales member (400 INVALID_ASSIGNEE), and a newly named location or treatment must be active (400); a rule already saved is kept as it is. Needs settings:update. - Lead sources - Settings - Lead sources - [List lead sources](/reference/settings/lead-sources/settings/lead-sources/get) - [Create a lead source](/reference/settings/lead-sources/settings/lead-sources/post) - Id - [Update a lead source](/reference/settings/lead-sources/settings/lead-sources/id/patch) - Archive - [Archive a lead source](/reference/settings/lead-sources/settings/lead-sources/id/archive/post) - Restore - [Restore an archived lead source](/reference/settings/lead-sources/settings/lead-sources/id/restore/post) - Reorder - [Reorder lead sources](/reference/settings/lead-sources/settings/lead-sources/reorder/post) - Letter templates - Settings - Letter templates - [List Letter templates](/reference/settings/letter-templates/settings/letter-templates/get) - [Create a letter template](/reference/settings/letter-templates/settings/letter-templates/post) - Id - [Update a letter template](/reference/settings/letter-templates/settings/letter-templates/id/patch) - Archive - [Archive a letter template](/reference/settings/letter-templates/settings/letter-templates/id/archive/post) - Restore - [Restore an archived letter template](/reference/settings/letter-templates/settings/letter-templates/id/restore/post) - Locations - Settings - Locations - [List locations](/reference/settings/locations/settings/locations/get) - [Create a location](/reference/settings/locations/settings/locations/post) - Id - [Update a location](/reference/settings/locations/settings/locations/id/patch) - Archive - [Archive a location](/reference/settings/locations/settings/locations/id/archive/post) - Restore - [Restore an archived location](/reference/settings/locations/settings/locations/id/restore/post) - Reorder - [Reorder locations](/reference/settings/locations/settings/locations/reorder/post) - Lost reasons - Settings - Lost reasons - [List lost reasons](/reference/settings/lost-reasons/settings/lost-reasons/get) - [Create a lost reason](/reference/settings/lost-reasons/settings/lost-reasons/post) - Id - [Update a lost reason](/reference/settings/lost-reasons/settings/lost-reasons/id/patch) - Archive - [Archive a lost reason](/reference/settings/lost-reasons/settings/lost-reasons/id/archive/post) - Restore - [Restore an archived lost reason](/reference/settings/lost-reasons/settings/lost-reasons/id/restore/post) - Reorder - [Reorder lost reasons](/reference/settings/lost-reasons/settings/lost-reasons/reorder/post) - Nhs - Settings - Nhs - Contracts - [List NHS contracts](/reference/settings/nhs/settings/nhs/contracts/get) - [Create a NHS contract](/reference/settings/nhs/settings/nhs/contracts/post) - Id - [Update a NHS contract](/reference/settings/nhs/settings/nhs/contracts/id/patch) - Activity - [UDA delivered, expected and forecast for a contract year](/reference/settings/nhs/settings/nhs/contracts/id/activity/get): Awarded activity from completed claims, expected activity from claims still in flight, and a run-rate forecast against the year's target, by month and by performer. Defaults to the year covering today (404 YEAR_MISSING when none is set). - Archive - [Archive a NHS contract](/reference/settings/nhs/settings/nhs/contracts/id/archive/post) - Detail - [Read a contract's years, performer targets and premises](/reference/settings/nhs/settings/nhs/contracts/id/detail/get): Every premises the contract has had, the oldest first: each a site, its NHS location number and the dates it applied (a course is claimed from the one in force on its acceptance date). - Performers - [Add a performer's target on a contract](/reference/settings/nhs/settings/nhs/contracts/id/performers/post): One open target per performer and contract (409 PERFORMER_OPEN); end the open one first to change it. The performer number is the practitioner's NHS performer registration, recorded (or corrected) first; the FP17 carries the practitioner's number in force when it is queued. - Restore - [Restore an archived NHS contract](/reference/settings/nhs/settings/nhs/contracts/id/restore/post) - Schedules - [List a contract's imported pay schedules](/reference/settings/nhs/settings/nhs/contracts/id/schedules/get) - [Import a pay schedule and settle its claims](/reference/settings/nhs/settings/nhs/contracts/id/schedules/post): The file is captured raw before it is parsed. Each line is matched to the contract's submitted claim by NHSBSA reference and recorded as that claim's completed event with the awarded activity; a line with no match, or naming a claim that is not waiting, parks with a review task. The same file imports once (duplicate: true on a re-upload); an unreadable file parks for review (422 SCHEDULE_UNREADABLE). - Years - [Set a contract year's targets and values](/reference/settings/nhs/settings/nhs/contracts/id/years/put): Creates or replaces the year that starts on the given date. Years of one contract never overlap (409 YEAR_OVERLAP). - Performers - Id - End - [End a performer's target](/reference/settings/nhs/settings/nhs/performers/id/end/post) - Rules - [Read the NHS rates and vocabularies in force](/reference/settings/nhs/settings/nhs/rules/get): Every band rate and dataset rule of a nation in force on a day, with the frozen evidence each came from. Values absent from every frozen excerpt are null and the course that needs them is refused. - Online booking - Settings - Online booking - [Get the online booking page](/reference/settings/online-booking/settings/online-booking/get): Returns the org's booking page (provisioned on first read) — public token, enable switch and page config. - [Update the online booking page](/reference/settings/online-booking/settings/online-booking/patch): Config is replaced whole. Changes propagate to embedded pages within ~a minute (the public config is edge-cached). - Regenerate token - [Regenerate the public booking token](/reference/settings/online-booking/settings/online-booking/regenerate-token/post): Invalidates the current hosted link and embed snippet immediately; update the practice website after rotating. - Operatories - Settings - Operatories - [List operatories](/reference/settings/operatories/settings/operatories/get) - [Create a operatory](/reference/settings/operatories/settings/operatories/post) - Id - [Update a operatory](/reference/settings/operatories/settings/operatories/id/patch) - Archive - [Archive a operatory](/reference/settings/operatories/settings/operatories/id/archive/post) - Restore - [Restore an archived operatory](/reference/settings/operatories/settings/operatories/id/restore/post) - Reorder - [Reorder operatories](/reference/settings/operatories/settings/operatories/reorder/post) - Patient finance - Settings - Patient finance - [Remove the practice's finance lender](/reference/settings/patient-finance/settings/patient-finance/delete) - [The practice's finance lender](/reference/settings/patient-finance/settings/patient-finance/get) - [Choose, or change, the practice's finance lender](/reference/settings/patient-finance/settings/patient-finance/put): One lender per practice. The lender must serve the practice's country, and connected mode needs a lender Smileline talks to directly. - Payments - Settings - Payments - [Get Stripe Connect status and deposit configuration](/reference/settings/payments/settings/payments/get): Answers defaults for organizations that never configured payments. Connect state mirrors Stripe webhooks and may lag a few seconds. - [Update the deposit configuration](/reference/settings/payments/settings/payments/patch): Partial update; creates the payments row on first save. Connect state fields are read-only (webhook-mirrored). - Connect - [Authorize a Stripe Connect account](/reference/settings/payments/settings/payments/connect/post): Creates a single-use OAuth state and returns Stripe's authorization URL. A different account remains pending until it is explicitly confirmed. - Cancel - [Cancel a pending Stripe account switch](/reference/settings/payments/settings/payments/connect/cancel/post): Deauthorizes only the pending account and preserves the currently active account. - Confirm - [Confirm a pending Stripe account switch](/reference/settings/payments/settings/payments/connect/confirm/post): Re-verifies the pending account and atomically makes it active. Existing deposits and refunds retain their frozen account identity. - Pms - Settings - Pms - Adoptions - [Start a system-of-record adoption](/reference/settings/pms/settings/pms/adoptions/post): Opens the adoption (started); one open adoption per practice. Freezing, the owner's fresh approval, draining, reconciling and completing follow as separate steps, each recorded. - Id - Abort - [Abort the adoption](/reference/settings/pms/settings/pms/adoptions/id/abort/post): Any non-terminal adoption may be aborted; nothing already flipped is undone. - Advance - [Move the adoption to its next state](/reference/settings/pms/settings/pms/adoptions/id/advance/post): started → frozen → drained → reconciled, in order; draining needs the owner's approval first. - Approve - [Approve the adoption (owner, freshly re-authenticated)](/reference/settings/pms/settings/pms/adoptions/id/approve/post): The owner's approval, with a fresh re-authentication, before the adoption drains. - Complete - [Complete the adoption](/reference/settings/pms/settings/pms/adoptions/id/complete/post): Flips the system of record, installs the new authority generation so stale provider work parks, and refreshes every member's session. - Appointment corrections - [List pending PMS appointment corrections](/reference/settings/pms/settings/pms/appointment-corrections/get): Lists bounded, cursor-paginated provider facts that would rewrite a terminal or backwards appointment state. - Id - Resolve - [Resolve a PMS appointment correction](/reference/settings/pms/settings/pms/appointment-corrections/id/resolve/post): Appointment editors can accept the provider projection or keep SmileLine's local fact. Acceptance preserves external-effect evidence and opens an urgent manual follow-up task. - Connections - [List PMS connections](/reference/settings/pms/settings/pms/connections/get): All non-deleted connections including pending requests. Provider-managed poll timing is diagnostic; credentials, lease tokens and sync cursors are never exposed. - [Connect (or request) a PMS](/reference/settings/pms/settings/pms/connections/post): One connection per provider covers the whole account. Created in pending_vendor_activation: Dentally (personal access token), Dentally NexGen, CareStack and Open Dental activate through the credentials endpoint; every other connectable provider records an integration request. 409 PMS_EXPORT_IMPORTED for Dentally or Dentally NexGen once a Switch from Dentally import has written the practice's records. - Id - [Get a PMS connection](/reference/settings/pms/settings/pms/connections/id/get) - Booking issues - [List bookings needing attention](/reference/settings/pms/settings/pms/connections/id/booking-issues/get): Bookings and moves Smileline parked for a person on this connection (newest first), then the confirmations and cancellations it couldn't send, each with its visit, patient, a plain reason code and the actions safe now. `patientId` lists that patient's only (Today and the patient page fix a parked booking there: save the patient's missing details with PATCH /patients/:id, then retry — the resend reads the record afresh). Cursor-paginated; a patient under erasure is never listed. - Issueid - Resolve - [Resolve a booking needing attention](/reference/settings/pms/settings/pms/connections/id/booking-issues/issueid/resolve/post): A booking: retry, keep_local (complete it in Smileline only; never sent) or cancel — the last two only while the PMS cannot hold it (409 PMS_MAY_ALREADY_HAVE_IT). A move: retry (only while the visit still stands where the move found it and no newer move is live), dismiss (the visit stays as it is) or cancel (the booking is cancelled the normal way and the PMS cancel queued). A change not sent: retry or dismiss. `expectedGeneration` is the row's as listed; a row that changed since answers 409. - Credentials - [Activate a PMS connection with its credentials](/reference/settings/pms/settings/pms/connections/id/credentials/post): Providers that take practice-supplied keys: CareStack (the practice's CareStack address on the US or UK domain and its account key, plus either the account id for the documented header sign-in or the practice's own vendor key, client id and client secret for the UK token sign-in), Open Dental (customer key, optional eConnector workstation), Dentally (a personal access token; refused with 422 PMS_CONNECTION_SCOPES_MISSING when it lacks a required permission) and Dentally NexGen (client id, client secret and practice id; 422 PMS_CONNECTION_PRACTICE_REFUSED when the credentials cannot reach that practice). Proves the credentials against the practice's own site list, seeds the site map from it and moves the connection to connecting, which starts the historical import; Open Dental and Dentally also register their live-update webhooks. CareStack and Dentally rotation is allowed only onto the same account; a different account is a disconnect. An organization may operate one PMS at a time, so activation is refused while another provider is live. A new Dentally or Dentally NexGen activation is refused with 409 PMS_EXPORT_IMPORTED once a Switch from Dentally import has written the practice's records; replacing the token of a running Dentally connection is not. - Disconnect - [Disconnect a PMS connection](/reference/settings/pms/settings/pms/connections/id/disconnect/post): Also cancels a pending integration request. Synced data and links are kept. Idempotent. - Nexgen reasons - [List a Dentally NexGen practice's booking and cancellation reasons](/reference/settings/pms/settings/pms/connections/id/nexgen-reasons/get): Read live from Dentally: every active appointment reason (what Smileline books as) and every active cancellation reason of type cancelled (what it cancels as), with the connection's current choices. Dentally NexGen connections only (409 PMS_PROVIDER_MISMATCH otherwise). - [Choose a Dentally NexGen practice's booking and cancellation reasons](/reference/settings/pms/settings/pms/connections/id/nexgen-reasons/patch): Each id is checked against a fresh read of the practice's active reasons (422 PMS_REASON_UNKNOWN otherwise). Saved only if the connection is still the one that read came from (409 VERSION_CONFLICT after a reconnect or rotation); choosing the booking reason restarts bookings parked waiting for it. - Pause - [Pause a PMS connection](/reference/settings/pms/settings/pms/connections/id/pause/post): Sync stops (webhooks are staged but not processed). - Practitioners - [List provider clinicians nobody has named yet](/reference/settings/pms/settings/pms/connections/id/practitioners/get): A provider that publishes no directory names its clinicians only by id inside appointments, so the sync engine holds an inactive placeholder for each. Their appointments still import and still block that column of the diary, but an inactive practitioner is in no booking roster. Name and activate them under Settings -> Practitioners to make them bookable. - Receipts - [List a connection's webhook receipts](/reference/settings/pms/settings/pms/connections/id/receipts/get): Every signed webhook delivery the connection received, newest first, with its ingress state. A receipt's raw body is captured before it is parsed, so a completed receipt can be replayed on demand while the capture is inside retention. - Receiptid - Replay - [Replay a completed webhook receipt from its captured body](/reference/settings/pms/settings/pms/connections/id/receipts/receiptid/replay/post): Re-parses the captured body through the provider adapter and re-stages its events (rows that still exist are untouched), then re-arms the receipt's processing. Parked and rejected receipts are replayed from the review queue instead. - Resume - [Resume a paused PMS connection](/reference/settings/pms/settings/pms/connections/id/resume/post) - Sites - Siteid - [Map a PMS site to a location](/reference/settings/pms/settings/pms/connections/id/sites/siteid/patch): Points a provider site at a location (null unmaps) or parks it (enabled=false). Mapping releases inbound records held for that site. - Sync - [Sync a PMS connection now](/reference/settings/pms/settings/pms/connections/id/sync/post): Starts the connection's next sync now instead of at its next scheduled time, paced by the same provider allowance. A sync already under way carries on. - Matches - [List patient match candidates](/reference/settings/pms/settings/pms/matches/get): Probabilistic PMS↔CRM patient matches awaiting review (55–89 score band). - Id - Accept - [Accept a match candidate](/reference/settings/pms/settings/pms/matches/id/accept/post): Links the CRM patient to the PMS record and retires competing suggestions. Held sync rows re-process. - Reject - [Reject a match candidate](/reference/settings/pms/settings/pms/matches/id/reject/post): When no suggestion remains for the PMS record it becomes a new CRM patient. - System of record - [The clinical system of record](/reference/settings/pms/settings/pms/system-of-record/get): Which system holds the clinical record — Smileline or the connected PMS — and the adoption in progress, if one is. - Practice - Settings - Practice - [Get the practice identity/brand settings](/reference/settings/practice/settings/practice/get): Answers defaults for organizations that never saved settings. legalCountry and accountingCurrency are non-null values derived from the immutable organization country. Retention defaults to Forever for message content, activity detail and patient detail in audit history, and 90 days for recordings. Shorter windows apply progressively to existing rows and immediately to new rows. - [Update the practice identity/brand settings](/reference/settings/practice/settings/practice/patch): Partial update; creates the settings row on first save. Country and currency are derived organization facts and cannot be patched here. Omitted retention fields are unchanged and null means Forever. An omitted replyHoldEnabled is unchanged. Shortening creates bounded progressive restamp work; extending a window never increases an already-materialized expiry or restores redacted data. minAttemptsBeforeGivingUp fits the retry window's three calling days: at most 3 × callbacksPerDay (the one sent, else the saved one), above it 400 TRIES_OVER_LIMIT (details.limit) with nothing saved; a saved value that a lower callbacksPerDay leaves above it reads as that limit. - Admin - Profile - [Read the non-patient practice business profile](/reference/settings/practice/settings/practice/admin/profile/get): Owners and managers only. Name, country, timezone, brand colour and public website origin; no patient data, fiscal identifiers, credentials or media links. Read-only, with settings.read for connected apps. - Setup - [Read non-patient practice configuration status](/reference/settings/practice/settings/practice/admin/setup/get): Owners and managers only. Team and pending invitation counts, and whether active locations, practitioners, rooms and practitioner rota hours exist. No patient activity, invitation contents, payment setup or provider credentials are read. Read-only, with settings.read for connected apps. - Letterhead preview - [Preview the letterhead on a sample letter](/reference/settings/practice/settings/practice/letterhead-preview/get): A letter to a fictional patient under the practice's letterhead and first site, as HTML for a sandboxed frame; nothing is rendered or stored. For members who can change settings. - Setup guide - [Get the practice's setup guide](/reference/settings/practice/settings/practice/setup-guide/get): The new-practice checklist: which tasks are done (derived from the practice's stored data, never marked by hand), which optional tasks were skipped, the practice-management path chosen, and whether the guide was hidden. Owners and managers only; a connection needs only read access. - [Update the practice's setup guide answers](/reference/settings/practice/settings/practice/setup-guide/patch): Partial update of the stored answers only: the practice-management path, the skipped optional tasks and the hidden timestamp. Task completion cannot be patched because it is derived from the practice's data. - Setup status - [Get the practice's setup status](/reference/settings/practice/settings/practice/setup-status/get): The setup guide, the owner's invitation and whether the owner has joined, the team's size, the website checklist, ad connections and conversion setup, sending domains and the agreements still to accept, in one read. Each part matches its own endpoint, and reading changes nothing: unlike GET /settings/website/tracking/status it never creates the website tracking settings. It answers whenever the setup guide does: while a practice has no plan yet, it still returns the owner, team, website, ads and sending-domain parts, though their own endpoints answer 402 until it has one. owner.joined is true once the practice has an owner who is not on its agency's team (any owner when no agency holds it). Owners and managers only; a connection needs the read scope (a developer app's area scopes do not cover it). Agreements are accepted in the app, never through the API. - Practice archive - Settings - Practice archive - [Archive requests, newest first](/reference/settings/practice-archive/settings/practice-archive/get) - [Request a complete archive of the practice's records](/reference/settings/practice-archive/settings/practice-archive/post): Every table of the practice is written as JSON Lines parts to the practice's clinical bucket in bounded steps, then a manifest and a validation report close the archive. One archive is produced at a time (409 EXPORT_IN_PROGRESS); earlier completed archives stay downloadable. - Id - Acknowledge - [Acknowledge a completed archive as the closure record](/reference/settings/practice-archive/settings/practice-archive/id/acknowledge/post): Only an archive whose validation report is complete and that was requested and completed in the same `closing` lifecycle generation is acknowledged (409 EXPORT_NOT_CONSISTENT otherwise); an archive produced while the practice was active stays a downloadable snapshot. - Cancel - [Cancel an archive being produced](/reference/settings/practice-archive/settings/practice-archive/id/cancel/post): A requested or running archive is marked superseded (409 EXPORT_NOT_ACTIVE otherwise), so a new one can be requested; a step in flight stops at its next write. - Documents - Documentid - Link - [A one-minute download link for one part, one index part, the manifest, or one original document the archive lists](/reference/settings/practice-archive/settings/practice-archive/id/documents/documentid/link/get) - Run - [Run one bounded step of a requested archive](/reference/settings/practice-archive/settings/practice-archive/id/run/post): The server produces every requested archive in the background, one step a minute until nothing is due; the practice's page calls this while it is open to go faster. Each call writes a few parts under a short lease and returns the archive as it stands. A step whose lease another caller holds returns the archive unchanged; a failed step stamps `cursor.failedAt` and is retried when its lease lapses. - Practitioners - Settings - Practitioners - [List practitioners](/reference/settings/practitioners/settings/practitioners/get) - [Create a practitioner](/reference/settings/practitioners/settings/practitioners/post) - Id - [Update a practitioner](/reference/settings/practitioners/settings/practitioners/id/patch) - Archive - [Archive a practitioner](/reference/settings/practitioners/settings/practitioners/id/archive/post) - Registration - [A clinician's legal name and registration](/reference/settings/practitioners/settings/practitioners/id/registration/get) - [Set a clinician's legal name and registration](/reference/settings/practitioners/settings/practitioners/id/registration/put): Sets the given name, family name, suffix and — in the US — the specialty (NUCC taxonomy) and NPI that claims are built from (null clears one; a null NPI closes the live registration). Records one credential revision for the change, none when nothing changed. A specialty or NPI outside the US is refused with 422 REGISTRATION_FIELD_COUNTRY. Needs practitioner:update. - Restore - [Restore an archived practitioner](/reference/settings/practitioners/settings/practitioners/id/restore/post) - User link - [Link or unlink the member behind a practitioner](/reference/settings/practitioners/settings/practitioners/id/user-link/post): Sets which signed-in member acts as this practitioner (null unlinks). Needs member:update and a browser session; 404 when the practitioner or the member is not in the practice, 409 when the member already acts as another practitioner. - Website photos - [Find practitioners' photos on the practice website's team page](/reference/settings/practitioners/settings/practitioners/website-photos/post): Reads the team page through the safe egress fetcher and pairs its photos with the practice's active practitioners. `unreadable` means part of the AI's answer could not be read (the pairs it could read are still returned); `none` means it read the whole page and matched no one. Nothing fetched is stored. 422 when the page cannot be opened or is not HTML; 503 when website fetching or the AI is unavailable. Needs practitioner:update. - Crop - [Download one website photo and crop it around the face](/reference/settings/practitioners/settings/practitioners/website-photos/crop/post): Downloads the photo through the safe egress fetcher (following redirects to other public hosts) and returns it as a 512 px square JPEG data URL centred on the face. Nothing is stored. 422 when the photo cannot be downloaded or read; 503 when cropping is unavailable. Needs practitioner:update. - Production goals - Settings - Production goals - [List production goals](/reference/settings/production-goals/settings/production-goals/get): Every production goal row (practice, site and clinician scopes), newest month first, one keyset page at a time: pass `nextCursor` back as `cursor` until it is null (an invalid cursor is 400 INVALID_CURSOR). - [Set a production goal](/reference/settings/production-goals/settings/production-goals/put): Sets the goal of one scope (the practice, a site or a clinician) from one month on. A month with no goal for the scope is created (`expectedUpdatedAt: null`); a month that has one is edited (`expectedUpdatedAt` its version). Anything else — an edit since, or a goal someone else just set — is 409 PRODUCTION_GOAL_STALE with the current goal in `details.current`. Needs settings:update; audited. - Id - [Remove a production goal](/reference/settings/production-goals/settings/production-goals/id/delete): Removes one month's goal row, naming the version the editor showed (409 PRODUCTION_GOAL_STALE when it changed since). The scope's earlier goal then applies again from that month. Needs settings:update; audited. - Professional contacts - Settings - Professional contacts - [List Professional contacts](/reference/settings/professional-contacts/settings/professional-contacts/get) - [Create a professional contact](/reference/settings/professional-contacts/settings/professional-contacts/post) - Id - [Update a professional contact](/reference/settings/professional-contacts/settings/professional-contacts/id/patch) - Archive - [Archive a professional contact](/reference/settings/professional-contacts/settings/professional-contacts/id/archive/post) - Restore - [Restore an archived professional contact](/reference/settings/professional-contacts/settings/professional-contacts/id/restore/post) - Referral program - Settings - Referral program - [Get the referral programme](/reference/settings/referral-program/settings/referral-program/get): Returns the org's referral programme configuration (provisioned lazily with defaults on first read). - [Update the referral programme](/reference/settings/referral-program/settings/referral-program/put): Upserts the programme config. Enabling requires non-empty terms & conditions (400 TERMS_REQUIRED) — significant conditions must be published with the offer. Reward config is frozen into rewards at qualification, so edits never rewrite already-minted rewards. - Regenerate token - [Regenerate the programme's public token](/reference/settings/referral-program/settings/referral-program/regenerate-token/post): Invalidates the current generic landing link (poster QR codes must be re-printed). Advocate share links are unaffected. - Security - Settings - Security - [The practice's session rules and Smileline support access](/reference/settings/security/settings/security/get) - Session rules - [Change the session rules](/reference/settings/security/settings/security/session-rules/patch): Owners and managers (organization:update). Both rules are off (null) until set. They cover people's own sessions on the web, desktop and phone apps; API keys, connections and Smileline support visits are not covered. - Support grants - [Let Smileline support see this practice](/reference/settings/security/settings/security/support-grants/post): Look only: anyone with organization:update. Look and change settings: owners and managers only. A new grant ends any live one and its visits. - Id - Revoke - [End Smileline support access now](/reference/settings/security/settings/security/support-grants/id/revoke/post) - Sistema ts - Settings - Sistema ts - [Disconnect Sistema TS](/reference/settings/sistema-ts/settings/sistema-ts/delete) - [The Sistema TS connection](/reference/settings/sistema-ts/settings/sistema-ts/get) - [Connect, or replace the credentials of, Sistema TS](/reference/settings/sistema-ts/settings/sistema-ts/put): The username, password and pincode are encrypted at rest and never returned; replacing them starts a new credential generation, so a document claimed under the old one parks and replays. - Run - [Build the submissions the practice owes right now](/reference/settings/sistema-ts/settings/sistema-ts/run/post): The same pass the nightly producer makes: every paid Italian invoice Sistema TS has not acquired becomes a submission the delivery lane carries within the minute. - Submissions - [Documents reported to Sistema TS, newest first](/reference/settings/sistema-ts/settings/sistema-ts/submissions/get): Every document event, a page at a time by cursor (newest first, the id breaking a microsecond tie). `createdFrom`/`createdTo` are the practice's days, both included; `state` is the latest attempt's (`queued` when none has run). - Id - [One reported document with every attempt and its chain](/reference/settings/sistema-ts/settings/sistema-ts/submissions/id/get) - Stock fields - Settings - Stock fields - [List item fields](/reference/settings/stock-fields/settings/stock-fields/get) - [Create a item field](/reference/settings/stock-fields/settings/stock-fields/post) - Id - [Update a item field](/reference/settings/stock-fields/settings/stock-fields/id/patch) - Archive - [Archive a item field](/reference/settings/stock-fields/settings/stock-fields/id/archive/post) - Restore - [Restore an archived item field](/reference/settings/stock-fields/settings/stock-fields/id/restore/post) - Reorder - [Reorder item fields](/reference/settings/stock-fields/settings/stock-fields/reorder/post) - Stock rooms - Settings - Stock rooms - [List stock rooms](/reference/settings/stock-rooms/settings/stock-rooms/get) - [Create a stock room](/reference/settings/stock-rooms/settings/stock-rooms/post) - Id - [Update a stock room](/reference/settings/stock-rooms/settings/stock-rooms/id/patch) - Archive - [Archive a stock room](/reference/settings/stock-rooms/settings/stock-rooms/id/archive/post) - Restore - [Restore an archived stock room](/reference/settings/stock-rooms/settings/stock-rooms/id/restore/post) - Reorder - [Reorder stock rooms](/reference/settings/stock-rooms/settings/stock-rooms/reorder/post) - Stock tags - Settings - Stock tags - [List stock tags](/reference/settings/stock-tags/settings/stock-tags/get) - [Create a stock tag](/reference/settings/stock-tags/settings/stock-tags/post) - Id - [Update a stock tag](/reference/settings/stock-tags/settings/stock-tags/id/patch) - Archive - [Archive a stock tag](/reference/settings/stock-tags/settings/stock-tags/id/archive/post) - Restore - [Restore an archived stock tag](/reference/settings/stock-tags/settings/stock-tags/id/restore/post) - Reorder - [Reorder stock tags](/reference/settings/stock-tags/settings/stock-tags/reorder/post) - Tags - Settings - Tags - [List tags](/reference/settings/tags/settings/tags/get) - [Create a tag](/reference/settings/tags/settings/tags/post) - Id - [Update a tag](/reference/settings/tags/settings/tags/id/patch) - Archive - [Archive a tag](/reference/settings/tags/settings/tags/id/archive/post) - Restore - [Restore an archived tag](/reference/settings/tags/settings/tags/id/restore/post) - Reorder - [Reorder tags](/reference/settings/tags/settings/tags/reorder/post) - Team - Settings - Team - [The Team page in one read](/reference/settings/team/settings/team/get): Members with their account, invitations with email delivery state, member locations and the locations to assign — everything the Team page renders. Readable by every member; the mutations stay on the better-auth organization routes. - Member locations - [Which locations each member works at](/reference/settings/team/settings/team/member-locations/get): One row per (member, location) assignment; members without a location are absent. Readable by every member, like the team list. - Members - Userid - Avatar - [Remove a colleague's profile photo](/reference/settings/team/settings/team/members/userid/avatar/delete): Gated like setting it (setMemberAvatar), with the same 403, 404 and 409 answers. The person's generated avatar shows again. Audited. - [Set a colleague's profile photo](/reference/settings/team/settings/team/members/userid/avatar/post): member:update, from a signed-in person at a browser (never an API key, OAuth connection or the assistant). multipart/form-data with one `file` field: a JPEG, PNG, WebP or GIF of at most 5 MB. Only an owner sets an owner's photo. Your own photo is set at /user/avatar (409 SELF_AVATAR here). 409 MEMBER_IN_OTHER_ORGANIZATION when the person also belongs to another organisation — only they change their photo; 409 ARTIFACT_CONFLICT when it changed meanwhile. 404 for a user who is not a member of the practice. Audited. - Calling role - [Set a member's team-calling role](/reference/settings/team/settings/team/members/userid/calling-role/put): member:update. Opener, closer or none (null). Only a member whose role may place calls (dialer:use) can hold one (409 CALLING_ROLE_UNAVAILABLE); a role change clears it. Setting one turns off the member's new-lead window. Audited. Idempotent. 404 for a user who is not a member of the practice. - Extension - [Set a member's keypad extension](/reference/settings/team/settings/team/members/userid/extension/put): member:update. Three digits (100–999), unique per practice; null assigns the lowest free extension, an empty string clears it. 409 EXTENSION_TAKEN when another member already has it. - Goals - [Set a member's targets](/reference/settings/team/settings/team/members/userid/goals/put): member:update. A daily booking goal and, for a treatment coordinator, monthly closes and accepted value; null switches one off, and every one is off by default. Applies from today (practice-local): earlier days keep the target they were judged by. Audited. Idempotent. 404 for a user who is not a member of the practice. - Location - [Set the locations a member works at](/reference/settings/team/settings/team/members/userid/location/put): Replaces the set of sites a member works at (an empty list clears it) — what a "location's staff" ring group rings. Gated like a role change. 404 for a user who is not a member of the practice or a location the practice does not own; 409 for an archived location, or MEMBER_SITE_HAS_ROTA for a site where they still have a rota (take them off that site's rota first). - New lead window - [Turn a member's desktop new-lead window on or off](/reference/settings/team/settings/team/members/userid/new-lead-window/put): member:update (owners and managers), with no exception for a member's own. Only a member whose role works every task and adds notes (activity:create), and who holds no team-calling role, can have it on (409 NEW_LEAD_WINDOW_UNAVAILABLE); a calling role or a role change that ends that turns it off. Audited. Idempotent. 404 for a user who is not a member of the practice. - Suspension - [Suspend or restore a member's access to the practice](/reference/settings/team/settings/team/members/userid/suspension/put): Gated like removing a member (owners and managers; only an owner may suspend an owner). Suspending yourself is refused. Idempotent: a member already in the requested state answers 200 without a change. 403 when the caller may not act on this member; 404 for a user who is not a member of the practice; 409 SELF_SUSPENSION. - Workspace - [Set the workspace a member lands in](/reference/settings/team/settings/team/members/userid/workspace/put): A member sets their own default workspace, and whether the other workspace is hidden from them, freely; setting another member's needs member:update. Hiding is a display preference: settings and API access stay on the role. An omitted hideOtherWorkspace is left unchanged. 404 for a user who is not a member of the practice; 409 when the workspace is not visible to that member (role or practice access). - Website photos - [Find team members' photos on the practice website's team page](/reference/settings/team/settings/team/website-photos/post): member:update, in a practice. Reads the team page through the safe egress fetcher and pairs its photos with the members whose photo the caller may set (not themselves, nobody who also belongs to another organisation, and owners only for an owner). `unreadable` means part of the AI's answer could not be read (the pairs it could read are still returned); `none` means it read the whole page and matched no one. Nothing fetched is stored; each photo is cropped with /settings/practitioners/website-photos/crop. 422 when the page cannot be opened or is not HTML; 503 when website fetching or the AI is unavailable. - Treatment templates - Settings - Treatment templates - [List Treatment templates](/reference/settings/treatment-templates/settings/treatment-templates/get) - [Create a treatment template](/reference/settings/treatment-templates/settings/treatment-templates/post) - Id - [Update a treatment template](/reference/settings/treatment-templates/settings/treatment-templates/id/patch) - Archive - [Archive a treatment template](/reference/settings/treatment-templates/settings/treatment-templates/id/archive/post) - Items - [A treatment template's items](/reference/settings/treatment-templates/settings/treatment-templates/id/items/get) - [Replace a treatment template's items](/reference/settings/treatment-templates/settings/treatment-templates/id/items/put): Every item names an act code of the catalogue (409 CODE_KIND); the same code appears once per visit. - Restore - [Restore an archived treatment template](/reference/settings/treatment-templates/settings/treatment-templates/id/restore/post) - Treatments - Settings - Treatments - [List treatments](/reference/settings/treatments/settings/treatments/get) - [Create a treatment](/reference/settings/treatments/settings/treatments/post) - Id - [Update a treatment](/reference/settings/treatments/settings/treatments/id/patch) - Archive - [Archive a treatment](/reference/settings/treatments/settings/treatments/id/archive/post) - Restore - [Restore an archived treatment](/reference/settings/treatments/settings/treatments/id/restore/post) - Reorder - [Reorder treatments](/reference/settings/treatments/settings/treatments/reorder/post) - Usual labs - Settings - Usual labs - [The usual lab for each kind of work](/reference/settings/usual-labs/settings/usual-labs/get) - [Set the usual lab for each kind of work](/reference/settings/usual-labs/settings/usual-labs/put): Every id must be one of the practice's lab contacts (409 CONTACT_KIND); the practice's settings must exist (409 PRACTICE_SETTINGS_MISSING). - Webhook endpoints - Settings - Webhook endpoints - [List outbound webhook endpoints](/reference/settings/webhook-endpoints/settings/webhook-endpoints/get) - [Create an outbound webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/post): Returns the HMAC signing secret once. The endpoint stays disabled until a test delivery succeeds. - Id - [Archive an outbound webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/delete) - [Get an outbound webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/get) - [Update an outbound webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/patch): Changing the URL clears verification and disables delivery. - Deliveries - [List webhook deliveries](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/deliveries/get) - Deliveryid - [Get a webhook delivery](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/deliveries/deliveryid/get) - Replay - [Replay a webhook delivery](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/deliveries/deliveryid/replay/post) - Enable - [Enable a verified webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/enable/post) - Pause - [Pause a webhook endpoint](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/pause/post) - Secret - Revoke previous - [Revoke the previous webhook signing secret](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/secret/revoke-previous/post) - Rotate - [Rotate a webhook signing secret](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/secret/rotate/post): The previous secret remains valid for 24 hours unless revoked. - Test - [Queue a test webhook delivery](/reference/settings/webhook-endpoints/settings/webhook-endpoints/id/test/post) - Subscriptions - [Create or resume a machine-managed webhook subscription](/reference/settings/webhook-endpoints/settings/webhook-endpoints/subscriptions/post): Creates the endpoint, delivers a signed verification probe with an X-Hook-Secret challenge, and enables it when the receiver returns a 2xx response echoing that challenge. Idempotent on subscriptionKey: an existing live subscription is returned with its current signing secret (200) rather than replaced. - Website - Settings - Website - Forms - [List website forms](/reference/settings/website/settings/website/forms/get): All three transports: CRM-built, auto-discovered and custom integrations. Archived forms are excluded unless includeArchived=true. - [Create a website form](/reference/settings/website/settings/website/forms/post): crm builds a hosted/embeddable form from a builder document; custom mints a raw capture endpoint (today's capture-hook fields). Both mint the invisible owning capture hook; authMode=signed returns a signingSecret exactly once. - Id - [Get a website form](/reference/settings/website/settings/website/forms/id/get): Embeds the owning capture hook, so the form page needs no second read. - [Update a website form](/reference/settings/website/settings/website/forms/id/patch): Form fields and the owning hook's fields through one surface. Set status=paused to stop intake without archiving. - Archive - [Archive a website form](/reference/settings/website/settings/website/forms/id/archive/post): Sets archivedAt on the form and its capture hook; the public endpoints answer 404. Permanently discards every submission still waiting for the form's field mapping, in the same transaction. Idempotent — a repeated call sweeps anything a previous one left. - Confirm mapping - [Confirm a pending form's field mapping](/reference/settings/website/settings/website/forms/id/confirm-mapping/post): For a form in `pending` (discovered, or a custom endpoint awaiting its first submission): writes the hook's fieldMap and defaults, activates the form, and replays every submission parked for it through the ingress vault. - Propose mapping - [Propose a field mapping](/reference/settings/website/settings/website/forms/id/propose-mapping/post): For a form in `pending`: synchronous AI proposal over the discovered field inventory (or, for a custom endpoint, the fields of its newest submission) and the latest stored delivery, falling back to the pure heuristic. Nothing is written until the mapping is confirmed. - Restore - [Restore an archived website form](/reference/settings/website/settings/website/forms/id/restore/post): Clears archivedAt only — a previously paused form stays paused. Submissions the archive discarded are not restored; a form still awaiting its mapping returns to the review queue and groups its next submissions again. Idempotent. - Sample - [Get a form's newest submission payload](/reference/settings/website/settings/website/forms/id/sample/get): The newest accepted delivery's payload, else the newest parked pending submission. Null until something arrives. Cheap enough to poll while a custom endpoint listens for its first submission. - Tracking - [Get website tracking setup](/reference/settings/website/settings/website/tracking/get): Lazily mints the tracking row and its public site key on first read. - [Update website tracking settings](/reference/settings/website/settings/website/tracking/patch) - Detect cms - [Detect the website's CMS](/reference/settings/website/settings/website/tracking/detect-cms/post): Fetches the configured site URL server-side and records the detected builder. Fail-closed: an unreachable or unrecognized site records `unknown`, never an error. - Insights - [Switch heatmaps and session recordings on or off](/reference/settings/website/settings/website/tracking/insights/patch): Stored in the tracking config (`config.insights`; absent = on). Off stops new uploads within the hour (capability lifetime) and makes the tracking script stop recording on its next config read. - Regenerate key - [Regenerate the public site key](/reference/settings/website/settings/website/tracking/regenerate-key/post): Mints a fresh key; snippets carrying the previous key stop resolving immediately. - Send instructions - [Email install instructions to a developer](/reference/settings/website/settings/website/tracking/send-instructions/post): Throttled to one send per hour per organization. - Server key - [Create or rotate the Astro integration's server key](/reference/settings/website/settings/website/tracking/server-key/post): Mints a fresh server key and returns it once; only its hash is stored. The previous key stops being trusted within two minutes (cache window). With a valid key the API trusts the visitor facts the integration forwards from the practice's own domain. - Status - [Get the derived setup checklist](/reference/settings/website/settings/website/tracking/status/get) - Bootstrap - Bootstrap - [All rarely-changing org lookups in one call](/reference/bootstrap/bootstrap/get): Non-archived lookups, members, pipelines with stages and the caller's saved patient and conversation views. savedViews are scoped to the caller (own + shared), so responses must never be cached across users. - Reports - Reports - Report - [One report's KPIs, chart series and breakdown tables](/reference/reports/reports/report/get): Computes a named report over the org's CRM data as a generic block envelope (KPI tiles with previous-period comparison, zero-filled chart series, breakdown tables with server-emitted display labels). `filters` is url-encoded JSON validated against the report filter model; the date window defaults to the last 30 practice-local days — cohort reports default wider — and non-applicable filter keys are ignored. `grain` buckets timeseries by day/week/month; cohort reports pin it to month and ignore the parameter. Series of kind `matrix` are cohort grids whose cells are omitted where the period is not observable yet, rather than zero-filled. - Rows - [One page of a report's row table](/reference/reports/reports/report/rows/get): A report's rows — those naming patients, and long lists such as stock movements — one keyset page at a time (the report envelope carries aggregates only): pass `nextCursor` back as `cursor` until it is null; an invalid cursor is 400 INVALID_CURSOR. `table` names one of the report's row tables (404 for a report or table with none); `filters` is the report's own filter JSON. A table that says `searchable` narrows to rows matching `q` (ignored by any other), one with `chips` to the rows of the one named by `chip` (400 INVALID_REPORT_ROWS_CHIP for a key it has none of), and one that has them answers its first page with `totals` over every row kept. Needs report:read, plus patient:read for a table that names patients (403 PATIENT_READ_REQUIRED) and inventory:read for an inventory report — a token's scopes cap the role. Call insights' `objectionCalls` (what callers said when they raised an objection, and the reply; `filters.callObjection` and `filters.staffUserId` pick a grid cell) is also open with dialer:use, and serves every call's only to dialer:manage — anyone else reads the calls they handled. A restricted or erased patient is named "Erased patient" and never linked. A clinical report's page is audited as one clinical read per patient it names, in the transaction that serves it. - Report subscriptions - Report subscriptions - [List scheduled report email subscriptions](/reference/report-subscriptions/report-subscriptions/get) - [Create a scheduled report email subscription](/reference/report-subscriptions/report-subscriptions/post) - Id - [Delete a scheduled report email subscription](/reference/report-subscriptions/report-subscriptions/id/delete) - [Get a scheduled report email subscription](/reference/report-subscriptions/report-subscriptions/id/get) - [Update a scheduled report email subscription](/reference/report-subscriptions/report-subscriptions/id/patch) - Deliveries - [List the email deliveries of a scheduled report](/reference/report-subscriptions/report-subscriptions/id/deliveries/get): Every delivery attempt row, newest first, including the ones that failed after their attempts ran out. Parked deliveries stay listed until a human acts on them. - Deliveryid - [Inspect one email delivery of a scheduled report](/reference/report-subscriptions/report-subscriptions/id/deliveries/deliveryid/get) - Replay - [Replay a failed email delivery of a scheduled report](/reference/report-subscriptions/report-subscriptions/id/deliveries/deliveryid/replay/post): Queues a new delivery row at the next generation for the same occurrence; the failed row stays on record unchanged. Only a failed delivery, or one still queued after its recovery window closed, can be replayed. - Test - [Queue a test report email](/reference/report-subscriptions/report-subscriptions/id/test/post) - Campaigns - Campaigns - [List outbound marketing campaigns](/reference/campaigns/campaigns/get) - [Create a campaign draft](/reference/campaigns/campaigns/post) - Id - [Delete a campaign draft](/reference/campaigns/campaigns/id/delete): Only draft campaigns can be deleted. - [Get a campaign](/reference/campaigns/campaigns/id/get) - [Update a campaign draft](/reference/campaigns/campaigns/id/patch): Only draft campaigns can be edited. - Cancel - [Cancel a campaign](/reference/campaigns/campaigns/id/cancel/post) - Duplicate - [Duplicate a campaign as a draft](/reference/campaigns/campaigns/id/duplicate/post) - Launch - [Send or schedule a campaign](/reference/campaigns/campaigns/id/launch/post): Freezes the draft's selector and content. Dispatch pauses instead of silently exceeding the confirmed recipient ceiling. - Pause - [Pause a campaign](/reference/campaigns/campaigns/id/pause/post) - Recipients - [List campaign recipients and exclusions](/reference/campaigns/campaigns/id/recipients/get) - Resume - [Resume a paused campaign](/reference/campaigns/campaigns/id/resume/post) - Test - [Send a campaign test message](/reference/campaigns/campaigns/id/test/post) - Preview - [Preview campaign eligibility](/reference/campaigns/campaigns/preview/post): The preview is an estimate. Segment membership is materialized and eligibility rechecked when dispatch begins.