# Dosha endpoints: fields, enums and how to read them

> Five endpoints, five different answers to "is the dosha there?". Each uses its own presence field and its own enum - this page lines them up so a client does not assume one shape fits all.

Source: https://astronode.dev/reference/doshas · Updated: 2026-12-01

Dosha endpoints take a single birth (Papa Samyam takes a couple) and return a small object. They agree on nothing structural: Mangal and Pitra report `present` plus a `severity`, Kaal Sarp reports `present` plus a `partial` flag and a named `type`, Sade Sati reports `active` plus a `phase`, and Papa Samyam reports a `status` comparing two people.

All five work from the sidereal (Lahiri) D1 chart with whole-sign houses, the same chart as `/v1/charts/birth`; Sade Sati adds Saturn's transit position on the `as_of` date.

## Enum values by endpoint

| Endpoint | Field | Possible values |
| --- | --- | --- |
| `POST /v1/dosha/mangal` | `severity` | `none \| mild \| strong` |
| `POST /v1/dosha/mangal` | `references[].from` | `lagna \| moon \| venus` |
| `POST /v1/dosha/kaal-sarp` | `type` | `Anant \| Kulik \| Vasuki \| Shankhpal \| Padma \| Mahapadma \| Takshak \| Karkotak \| Shankhachood \| Ghaatak \| Vishdhar \| Sheshnag \| null` |
| `POST /v1/dosha/sade-sati` | `phase` | `not_active \| rising \| peak \| setting \| ardhashtama \| ashtama` |
| `POST /v1/dosha/sade-sati` | `phases[].phase` | `rising \| peak \| setting` |
| `POST /v1/dosha/pitra` | `severity` | `none \| mild \| strong` |
| `POST /v1/dosha/papa-samyam` | `status` | `balanced \| mismatch` |

- **Mangal `severity`** - `none` when Mars is not in house 1, 4, 7, 8 or 12 from any reference; `mild` when it is but a cancellation rule fires (`cancelled: true`, rules listed in `cancellation_reasons`); `strong` when no cancellation applies.

- **Mangal `references`** - always three entries, in `lagna`, `moon`, `venus` order, each with the house Mars occupies counted from that reference.

- **Sade Sati `phase`** - `rising` / `peak` / `setting` are Saturn in the 12th, 1st and 2nd sign from the natal Moon; `ardhashtama` (4th) and `ashtama` (8th) are the minor Dhaiya phases.

- **Pitra `severity`** - derived from an internal `score`: `strong` at 8 or more, otherwise `mild` when present.

- **Papa Samyam `status`** - `balanced` when the two malefic counts differ by at most 1, otherwise `mismatch`.

## Kaal Sarp type names

When Kaal Sarp is present, `type` names it after the house Rahu occupies from the lagna. When it is absent, `type` is `null`.

| house_of_rahu | type |
| --- | --- |
| 1 | `Anant` |
| 2 | `Kulik` |
| 3 | `Vasuki` |
| 4 | `Shankhpal` |
| 5 | `Padma` |
| 6 | `Mahapadma` |
| 7 | `Takshak` |
| 8 | `Karkotak` |
| 9 | `Shankhachood` |
| 10 | `Ghaatak` |
| 11 | `Vishdhar` |
| 12 | `Sheshnag` |

## Things to watch

- Sade Sati `active: true` does NOT mean Sade Sati is running: it is also true during the `ardhashtama` and `ashtama` Dhaiya phases. Test `phase` against `rising`, `peak` and `setting` when you mean the seven-and-a-half years.
- Sade Sati is time-dependent: the response's `as_of` is the moment it was evaluated - now, unless the request sends its own `as_of` (ISO 8601 with offset). Cache it per day, not per birth.
- Mangal `house_of_mars` is always counted from the lagna, even when the dosha was triggered from the Moon or Venus. Read `references[].present` to see which reference fired.
- A cancelled Mangal dosha is still `present: true` - with `severity: "mild"` and `cancelled: true`. Decide in your UI whether "present but cancelled" means manglik.
- Kaal Sarp `partial: true` means one or more planets sit on the Rahu-Ketu axis (within 0.5°). The dosha is still reported as present.
- Papa Samyam is a two-person endpoint: the response has `boy` and `girl` objects plus `difference`, not a single `present`.

## Example: POST /v1/dosha/mangal

Recorded `POST /v1/dosha/mangal` response: Mars in the 1st from the lagna, cancelled because it is in a friendly sign.

```json
{
  "data": {
    "present": true,
    "house_of_mars": 1,
    "severity": "mild",
    "cancelled": true,
    "cancellation_reasons": [
      "Mars in friendly sign (Leo)"
    ],
    "references": [
      {
        "from": "lagna",
        "house": 1,
        "present": true
      },
      {
        "from": "moon",
        "house": 9,
        "present": false
      }
    ]
  }
}
```

## Questions

**Which endpoints does this page apply to?**

5 endpoints: Mangal Dosha (Manglik) (`POST /v1/dosha/mangal`); Kaal Sarp Dosha (`POST /v1/dosha/kaal-sarp`); Sade Sati (`POST /v1/dosha/sade-sati`); Pitra Dosha (`POST /v1/dosha/pitra`); Papa Samyam (`POST /v1/dosha/papa-samyam`).

## Endpoints

- [`POST /v1/dosha/mangal`](https://astronode.dev/capabilities/vedic/dosha-mangal) - Mangal Dosha (Manglik) API
- [`POST /v1/dosha/kaal-sarp`](https://astronode.dev/capabilities/vedic/dosha-kaal-sarp) - Kaal Sarp Dosha API
- [`POST /v1/dosha/sade-sati`](https://astronode.dev/capabilities/vedic/dosha-sade-sati) - Sade Sati API
- [`POST /v1/dosha/pitra`](https://astronode.dev/capabilities/vedic/dosha-pitra) - Pitra Dosha API
- [`POST /v1/dosha/papa-samyam`](https://astronode.dev/capabilities/compatibility/dosha-papa-samyam) - Papa Samyam API
