import Link from "next/link" import { ArrowRight, Code2, Lock, Zap, BookOpen } from "lucide-react" export const metadata = { title: "API Docs — Property Management Network", description: "Property Management Network REST API documentation for developers.", } const ENDPOINTS = [ { method: "GET", path: "/api/properties", desc: "List all properties for the authenticated landlord" }, { method: "POST", path: "/api/properties", desc: "Create a new property" }, { method: "GET", path: "/api/tenants", desc: "List all tenants with lease status" }, { method: "GET", path: "/api/payments", desc: "List rent payments with filters (status, date range)" }, { method: "POST", path: "/api/payments", desc: "Record a new payment manually" }, { method: "GET", path: "/api/maintenance", desc: "List all maintenance requests" }, { method: "POST", path: "/api/maintenance", desc: "Create a maintenance request" }, { method: "PATCH", path: "/api/maintenance/:id", desc: "Update request status or assign to contractor" }, ] const METHOD_COLORS: Record = { GET: "text-emerald-400 bg-emerald-500/10", POST: "text-blue-400 bg-blue-500/10", PATCH: "text-amber-400 bg-amber-500/10", DELETE: "text-red-400 bg-red-500/10", } export default function ApiDocsPage() { return (
{/* Hero */}
REST API · v1

API Documentation

Build on top of Property Management Network. Automate your workflows, sync with external tools, or build custom dashboards using our REST API.

Base URL: https://api.propertymanagement.network/v1
{/* Auth */}

Authentication

All API requests require a Bearer token in the Authorization header. Generate your API key from the dashboard settings.

# Example request

curl https://api.propertymanagement.network/v1/properties \

-H "Authorization: Bearer YOUR_API_KEY"

{/* Endpoints */}

Endpoints

{ENDPOINTS.map((ep, i) => (
{ep.method}
{ep.path}

{ep.desc}

))}
{/* Response format */}

Response Format

All responses are JSON. Successful responses return a data field. Errors return an error field with a message and code.

// Success

{"{"} "data": [...], "count": 12 {"}"}


// Error

{"{"} "error": {"{"} "code": 401, "message": "Unauthorized" {"}"} {"}"}

{/* Coming soon banner */}

Full SDK coming soon

We're building official JavaScript and Python SDKs. Join the waitlist to be notified.

Join waitlist
) }