# atmOS Health API (API-Zugänge) > Die HTTP-API von atmOS Health für eigene Werkzeuge einer Praxis. Anmeldung mit einem API-Zugang der Praxis: `Authorization: Bearer ath_…`. Server: https://app.atmos-health.de - [Anleitung](https://atmos-health.de/llms.mdx/docs/entwickler/api/content.md): API-Zugang, erste Anfrage, Fehler, Freigaben, Sicherheit - [Referenz](https://atmos-health.de/llms.mdx/docs/entwickler/referenz/content.md): jede Route mit Recht, Parametern und Feldern - [OpenAPI](https://atmos-health.de/docs/api/openapi.json): die maschinenlesbare Beschreibung genau dieser Routen ## Patienten - `GET /v1/patients` (search_patients): Find patients in the practice system by name or birthdate (TT.MM.JJJJ) - `GET /v1/patients/by-phone` (find_patient_by_phone): Find the one patient with this phone number - `GET /v1/patients/{ref}` (get_patient): Get a patient's record: demographics, insurance and card read - `GET /v1/patients/{ref}/medications` (get_medication_plan): Get a patient's medication plan and what can be ordered today - `GET /v1/patients/{ref}/history` (patient_history): Read or search a patient's case file, newest first: the messages, calls, documents, forms and internal notes of all their tickets, interleaved with the Kartei entries the practice wrote in the PVS (kind casefile: text group, text, author) - `GET /v1/patients/{ref}/appointments` (get_appointments): Get a patient's booked appointments and the earliest free slots, optionally for one visit reason; without one, what each calendar takes next ## Vorgänge - `POST /v1/tickets/{id}/replies` (reply_ticket): Reply to a ticket's patient on its channel (email, SMS, chat, portal) or another of theirs - `GET /v1/tickets` (list_tickets): List or search tickets in the caller's locations, newest first - `GET /v1/tickets/{id}` (get_ticket): Read a ticket by its id (not its number: list_tickets q=T-2039 finds that) with its full activity (events, oldest first), its subtasks and the caller's mention - `POST /v1/tickets` (create_ticket): Create a ticket by hand: a call taken, someone at the counter or an internal to-do, with its status, priority, category, team and assignee - `PATCH /v1/tickets/{id}` (update_ticket): Change a ticket's title, summary, status, priority, category, location, team, assignee or unread marker - `POST /v1/tickets/{id}/comments` (add_comment): Add an internal comment to a ticket, optionally mentioning members ## Aktionen in der Praxissoftware - `GET /v1/actions` (list_actions): List the practice-system actions with the JSON Schema of each one's input, for POST /actions/{name}/runs - `POST /v1/actions/{name}/runs` (propose_action_run): Propose a practice-system action for a ticket's patient (book_appointment in a built-in calendar also for a ticket without one, booking its contact): order_medication, order_freetext_medication, order_referral, book_appointment, cancel_appointment, write_casefile (the ticket's summary into the patient record) or file_document (one of the ticket's attachments into the patient record, where the practice system imports from a folder); each input's schema is in GET /actions - `GET /v1/actions/{name}/options` (get_action_options): List the choices for an action's input: orderable medications, visit reasons and free slots, upcoming appointments, or record text groups - `GET /v1/medication-orders/ways` (order_ways): How the practice's software takes medication orders: by itself, by the agent on a practice computer, or by hand ## Termine - `GET /v1/calendar` (get_calendar): The practice's calendars visible to the caller for the practice days from to until (at most 6 weeks): where appointments live (source), each calendar with its location, appointment types, opening times, breaks and the holidays and closures of its location; with a practice system as the source also its appointments, read live - `GET /v1/calendar/slots` (get_slots): The next free appointments of a type, without a patient: in the calendars named (or at a location, or all the caller sees) that take it, from a practice day on; a built-in calendar's slot honours its hours, breaks, windows, absences, capacity, buffers and the type's needs, and names the room or device each need takes - `GET /v1/calendar/appointments` (get_calendar_appointments): What calendars hold on the practice days from to until (at most 6 weeks): each appointment, the part of one a room or device holds for it, and blocked time (absences, maintenance), earliest first, with its patient_ref or who comes, in the calendars named (or at a location, or all the caller sees) - `POST /v1/appointments` (create_appointment): Book an appointment, with the further calendars its type needs, or block time (kind block: an absence such as vacation, one row over all its days) in a built-in calendar - `PATCH /v1/appointments/{id}` (update_appointment): Move, resize or change a built-in appointment; 409 appointments_no_overlap when the time is booked or blocked - `POST /v1/appointments/{id}/cancel` (cancel_appointment): Cancel a built-in appointment or blocked time; chain=true cancels the rest of its Terminkette too and stops its run