About this endpoint
What it does
Generates a Janmpatri/Kundli PDF from the provided birth details. The request body includes the person’s name, birth date, birth time, latitude, longitude, and timezone, and the endpoint returns the PDF as a binary response.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| name | String | Yes | Person’s name. |
| language | ENUM | No | Language of the generated PDF. Allowed values: en, hi. Default: en. |
| latitude | Number | Yes | Birth location latitude. |
| timezone | String | Yes | Timezone for the birth details. |
| longitude | Number | Yes | Birth location longitude. |
| birth_date | String | Yes | Birth date in date format (YYYY-MM-DD). |
| birth_time | String | Yes | Birth time. |
Response
Returns a binary file response containing the generated PDF.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | PDF file content returned as binary data. |