← API reference

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.

Updated · values generated from the engine

What this catalog is

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

String enums returned by the dosha endpoints
EndpointFieldPossible values
POST /v1/dosha/mangalseveritynone | mild | strong
POST /v1/dosha/mangalreferences[].fromlagna | moon | venus
POST /v1/dosha/kaal-sarptypeAnant | Kulik | Vasuki | Shankhpal | Padma | Mahapadma | Takshak | Karkotak | Shankhachood | Ghaatak | Vishdhar | Sheshnag | null
POST /v1/dosha/sade-satiphasenot_active | rising | peak | setting | ardhashtama | ashtama
POST /v1/dosha/sade-satiphases[].phaserising | peak | setting
POST /v1/dosha/pitraseveritynone | mild | strong
POST /v1/dosha/papa-samyamstatusbalanced | 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.

Kaal Sarp `type` by Rahu's house
house_of_rahutype
1"Anant"
2"Kulik"
3"Vasuki"
4"Shankhpal"
5"Padma"
6"Mahapadma"
7"Takshak"
8"Karkotak"
9"Shankhachood"
10"Ghaatak"
11"Vishdhar"
12"Sheshnag"

Parsing notes

  • 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.

In a real response

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).