---
title: "12 Palaces"
method: POST
path: "/ziwei/twelve-palaces"
tags: ["Zi Wei Dou Shu (Purple Star): MVP"]
---

# 12 Palaces

`POST /ziwei/twelve-palaces`

All 12 palaces with English/pinyin/Chinese names + theme + rules.

## Request body

- ZiweiDateInput
  - `date` string, required
  - `time` string
  - `timezoneOffset` number

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `palaces` object[], nullable
      - `key` string, nullable
      - `english` string, nullable
      - `pinyin` string, nullable
      - `chinese` string, nullable
      - `theme` string, nullable
      - `rules` unknown[], nullable
        - unknown

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
