---
title: "Ocean Border Endpoint"
method: POST
path: "/api/ocean-border"
---

# Ocean Border Endpoint

`POST /api/ocean-border`

Get ocean/sea border GeoJSON using vector search and S3.

This endpoint uses vector search to map natural language queries like
"border of Pacific Ocean" to ocean/sea names, then fetches the GeoJSON from S3.

Examples:
- "border of Pacific Ocean" -> Returns Pacific Ocean border GeoJSON
- "Mediterranean Sea border" -> Returns Mediterranean Sea border GeoJSON
- "Caribbean Sea" -> Returns Caribbean Sea border GeoJSON

## Request body

- OceanBorderRequest
  - `query` string, required — Natural language query for ocean/sea border (e.g., 'border of Pacific Ocean', 'Mediterranean Sea 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)
