{
  "name": "Te Pā Tūwatawata — Public Motif API",
  "version": "v1",
  "description": "Read-only access to the Te Pā indigenous motif bank and teaching kit assets. 30 motifs across 11 cultures — Māori, Samoan, Pacific, Tongan, Fijian, Guaraní, Shipibo-Conibo, Guna, Kayapó, Yanomami, Amazonian.",
  "base_url": "https://te-pa-analytics.sketchschool.workers.dev",
  "rate_limit": "100 requests per hour per IP",
  "attribution": "Please credit: Te Pā Tūwatawata (te-pa.org) — CC BY-NC-SA 4.0",
  "courtesy_header": "Include X-TePa-Use: <your-project-description> to help us understand how the API is used",
  "license": "CC BY-NC-SA 4.0 — free to use, share, adapt with attribution. Not for commercial use.",
  "endpoints": {
    "GET /api/motifs": {
      "description": "All 30 motifs with meanings, CDN image URLs, and meme links",
      "params": {
        "lang": "en | mi | pt | gn | sm | ar — response language for meaning field (default: en)",
        "culture": "maori | samoan | pacific | tongan | fijian | guarani | shipibo | guna | kayapo | yanomami | amazonian",
        "region": "maori | oceania | south_america | global",
        "id": "motif ID e.g. koru, niho_mano, yvy_mara_ey"
      },
      "example": "/api/motifs?culture=maori&lang=mi"
    },
    "GET /api/motifs/:id": {
      "description": "Single motif by ID — full asset listing",
      "example": "/api/motifs/koru"
    },
    "GET /api/cultures": {
      "description": "List all 11 cultures with motif counts and primary colours",
      "example": "/api/cultures"
    },
    "GET /api/meme": {
      "description": "Direct CDN URL for a motif meme image in a specific language",
      "params": {
        "id": "motif ID (required)",
        "lang": "en | mi | pt | gn | sm | ar (default: en)"
      },
      "example": "/api/meme?id=koru&lang=pt"
    },
    "GET /api/kit": {
      "description": "Teaching kit PDF CDN URL for a given language",
      "params": {
        "lang": "en | mi | pt | gn | sm | ar (default: en)"
      },
      "example": "/api/kit?lang=gn"
    }
  },
  "cultures": [
    "maori",
    "samoan",
    "pacific",
    "tongan",
    "fijian",
    "guarani",
    "shipibo",
    "guna",
    "kayapo",
    "yanomami",
    "amazonian"
  ],
  "languages": {
    "en": "English",
    "mi": "Te Reo Māori",
    "pt": "Português",
    "gn": "Avañe'ẽ (Guaraní)",
    "sm": "Gagana Samoa",
    "ar": "العربية"
  },
  "site": "https://te-pa.org",
  "github": "https://github.com/robertmccallnz/kiwi-dialectic-te-pa-minisite",
  "contact": "te-pa.org/contact"
}