# API reference

URL: https://api-docs.vestta.io/reference

Every endpoint of the Vestta API, generated from its OpenAPI schema.

Base URL: `https://api.vestta.io/v1`. Every request needs an [API key](/authentication) in the `X-Api-Key` header.

## Properties

- `GET /v1/properties` — List published properties (https://api-docs.vestta.io/properties/list)
- `POST /v1/properties` — Create a property (https://api-docs.vestta.io/properties/create)
- `GET /v1/properties/{property_id}` — Retrieve a published property (https://api-docs.vestta.io/properties/retrieve)
- `PATCH /v1/properties/{property_id}` — Update a property (https://api-docs.vestta.io/properties/update)
## Leads

- `GET /v1/leads` — List contacts (https://api-docs.vestta.io/leads/list)
- `POST /v1/leads` — Create a contact (https://api-docs.vestta.io/leads/create)
- `GET /v1/leads/{lead_id}` — Retrieve a contact (https://api-docs.vestta.io/leads/retrieve)
- `PATCH /v1/leads/{lead_id}` — Update a contact (https://api-docs.vestta.io/leads/update)
- `POST /v1/leads/ingest` — Ingest a rental lead (https://api-docs.vestta.io/leads/ingest)
- `POST /v1/leads/inquiries` — Create an inquiry (https://api-docs.vestta.io/leads/inquiries)
## Authentication

- `GET /v1/me` — Retrieve key context (https://api-docs.vestta.io/me)
## Machine-readable schema

The reference pages are generated from the same OpenAPI 3.1 document you can download:

- [`/openapi.json`](/openapi.json) — import it into Postman or Insomnia, or use it with an OpenAPI client generator.
- [Swagger UI](/swagger) — the raw schema rendered as an interactive explorer.
