# Vastu Corrected Layout API

For the rooms that fail their placement rule (score under 50; optionally those that warn), a proposed zone and position snapped to the zones that room type allows, returned as data beside the original plan, with the rooms that cannot move and why (fixed, tied to the plot, no rule, or no free space). Optionally a DXF with PASS, WARN, FAIL and PROPOSED layers, drawn in your plan's units. A sketch to start a designer's conversation, labelled `basis: convention`.

- Endpoint: `POST https://api.96astroapi.com/v1/vastu/vastu-corrected-layout`
- Family: [Vastu](https://96astroapi.com/apis/vastu.md)
- Input: Specific input
- Cost: 3 credits per successful call (sandbox keys are free)
- Status: available
- Delivery: Direct response
- Output languages: en, hi, mr, bn, gu, ta, te, ml, kn, pa, ur, ne, or, as, si, fr, es, pt, de, it, nl, pl, tr, ru, ko, ja
- Web page: https://96astroapi.com/apis/vastu/vastu-corrected-layout

## Example request

```bash
curl https://api.96astroapi.com/v1/vastu/vastu-corrected-layout \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"units":"m","north":{"degrees":0,"reference":"true"},"boundary":[[0,0],[12,0],[12,9],[0,9]],"rooms":[{"name":"Kitchen","type":"kitchen","polygon":[[9,0.5],[11.5,0.5],[11.5,3],[9,3]]},{"name":"Master bedroom","type":"master_bedroom","polygon":[[0.5,5.5],[4,5.5],[4,8.5],[0.5,8.5]]},{"name":"Entrance","type":"main_entrance","polygon":[[5,0],[7,0],[7,1],[5,1]]}],"include_dxf":false}'
```

## Response

Every response is `{ "data": …, "meta": { "request_id", "credits_used", "warnings", "language" } }`.
The full request and response schema, with a captured example, is in the OpenAPI document: https://api.96astroapi.com/v1/openapi.json (path `/v1/vastu/vastu-corrected-layout`).
