---
title: "Country Border Endpoint"
method: POST
path: "/api/country-border"
---

# Country Border Endpoint

`POST /api/country-border`

Get country border GeoJSON using vector search and S3.

This endpoint uses vector search to map natural language queries like
"border of France" to country names, then fetches the GeoJSON from S3.

Examples:
- "border of France" -> Returns France border GeoJSON
- "France border" -> Returns France border GeoJSON
- "German border" -> Returns Germany border GeoJSON

## Request body

- CountryBorderRequest
  - `query` string, required — Natural language query for country border (e.g., 'border of France', 'France border')

## Response `200`

Successful Response

- APIResponse
  - `status` string, required
  - `data` object, nullable
  - `error` string, nullable
  - `timestamp` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/monarcha/apis/monarcha-gis-api.md) · [All operations](https://skmtc.dev/monarcha/apis/monarcha-gis-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/monarcha/monarcha-gis-api/revisions/a2923fbc4d26/schema)
