# Vastu Zone and Defect Overlay Image API

A picture of a plan analysis drawn on the plan itself: the 16 zones coloured by element, each room outlined by its grade, the Brahmasthan, a numbered marker on every defect, a north arrow and a legend. The same image the Vastu PDF report prints.

- Endpoint: `POST https://api.96astroapi.com/v1/vastu/vastu-overlay-image`
- 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-overlay-image

## Example request

```bash
curl https://api.96astroapi.com/v1/vastu/vastu-overlay-image \
  -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,6],[12,6],[12,9],[9,9]]},{"name":"Master bedroom","type":"master_bedroom","polygon":[[0,5],[4,5],[4,9],[0,9]]},{"name":"Pooja","type":"pooja","polygon":[[10,0],[12,0],[12,2],[10,2]]},{"name":"Entrance","type":"main_entrance","polygon":[[5,0],[7,0],[7,1],[5,1]]}],"title":"Flat 4, Sector 21"}'
```

## 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-overlay-image`).
