# API reference

Base URL `https://app.pozyskajpacjenta.pl/api/v1`.

## Content

The clinic's site as data: a page with its site, the site alone, the privacy policy and every published path.

- [Get a page and its site](https://pozyskajpacjenta.pl/docs/reference/content/get-content): `GET /api/v1/content`
- [Get the site](https://pozyskajpacjenta.pl/docs/reference/content/get-site): `GET /api/v1/site`
- [Get the privacy policy](https://pozyskajpacjenta.pl/docs/reference/content/get-privacy): `GET /api/v1/privacy`
- [List published pages](https://pozyskajpacjenta.pl/docs/reference/content/list-pages): `GET /api/v1/pages`

## Entities

Treatments, team members, case studies and posts, each with a list and a detail endpoint.

- [List treatments](https://pozyskajpacjenta.pl/docs/reference/entities/list-services): `GET /api/v1/services`
- [Get a treatment](https://pozyskajpacjenta.pl/docs/reference/entities/get-service): `GET /api/v1/services/{slug}`
- [List team members](https://pozyskajpacjenta.pl/docs/reference/entities/list-doctors): `GET /api/v1/doctors`
- [Get a team member](https://pozyskajpacjenta.pl/docs/reference/entities/get-doctor): `GET /api/v1/doctors/{slug}`
- [List case studies](https://pozyskajpacjenta.pl/docs/reference/entities/list-case-studies): `GET /api/v1/case-studies`
- [Get a case study](https://pozyskajpacjenta.pl/docs/reference/entities/get-case-study): `GET /api/v1/case-studies/{slug}`
- [List posts](https://pozyskajpacjenta.pl/docs/reference/entities/list-posts): `GET /api/v1/posts`
- [Get a post](https://pozyskajpacjenta.pl/docs/reference/entities/get-post): `GET /api/v1/posts/{slug}`

## Booking

Bookable services and specialists, free slots, booking an appointment and the clinic's appointment list.

- [Get the booking catalog](https://pozyskajpacjenta.pl/docs/reference/booking/get-booking-catalog): `GET /api/v1/booking/catalog`
- [List free slots](https://pozyskajpacjenta.pl/docs/reference/booking/get-slots): `GET /api/v1/booking/slots`
- [List appointments](https://pozyskajpacjenta.pl/docs/reference/booking/list-appointments): `GET /api/v1/booking/appointments`
- [Book an appointment](https://pozyskajpacjenta.pl/docs/reference/booking/create-appointment): `POST /api/v1/booking/appointments`

## Leads

Patient enquiries from your own forms, stored in the clinic's CRM with the same e-mail to reception as an enquiry from the clinic's site.

- [Create a lead](https://pozyskajpacjenta.pl/docs/reference/leads/create-lead): `POST /api/v1/leads`

## Media

The clinic's media library: list the files and upload images.

- [Upload an image](https://pozyskajpacjenta.pl/docs/reference/media/upload-media): `POST /api/v1/media`
- [List media](https://pozyskajpacjenta.pl/docs/reference/media/list-media): `GET /api/v1/media`

## Feedback

Remarks about the clinic's site or about the API, sent to the platform team. Never patient data.

- [Send feedback](https://pozyskajpacjenta.pl/docs/reference/feedback/send-feedback): `POST /api/v1/feedback`
