---
title: Terra Vivet Agent API
url: https://www.terravivet.com/docs/api.md
language: es
---

# Terra Vivet Agent API

API pública de solo lectura para proyectos, propiedades y cotizaciones.

## Endpoints

- `GET /api/v1/status`
- `GET /api/v1/projects`
- `GET /api/v1/project?slug=montesito`
- `GET /api/v1/properties?project=montesito&availableOnly=true`
- `GET /api/v1/property?id=montesito%3A<localId>`
- `POST /api/v1/quote/calculate`
- `POST /api/v1/quote/from-property`

## Ejemplos

```bash
curl https://www.terravivet.com/api/v1/status
curl https://www.terravivet.com/api/v1/projects
curl 'https://www.terravivet.com/api/v1/properties?project=montesito&availableOnly=true&limit=10'
curl 'https://www.terravivet.com/api/v1/property?id=valle-del-toachi%3Aquinta-7'
```

```bash
curl -X POST https://www.terravivet.com/api/v1/quote/calculate \
  -H 'content-type: application/json' \
  -d '{"project":"Demo","propertyLabel":"Lote 12","propertyType":"Lote","price":25000,"purchaseType":"Financiado"}'
```

```bash
curl -X POST https://www.terravivet.com/api/v1/quote/from-property \
  -H 'content-type: application/json' \
  -d '{"propertyId":"valle-del-toachi:quinta-7","purchaseType":"Financiado"}'
```

## Reglas de entrada

- `POST /api/v1/quote/from-property` requiere `propertyId`.
- `POST /api/v1/quote/calculate` requiere `purchaseType` y además:
- `propertyId`, o
- `project`, `propertyLabel`, `propertyType` y `price`.
