API reference
Palm Reading API
A full palm reading from one photo, the birth date and gender. Returns the parts you choose as JSON in English and Hindi, and delivers them as a PDF with the marked palm photo.
https://astrologyapis.ratnoveda.com/vision/palmistry/full-readingOverview
Choose any of the 15 parts in features:
palm_imagehand_typefingersmajor_linesminor_linesmountsspecial_featurespersonalitycareermoneylovemarriagehealthchallengesluckFor best results the photo shows one open palm facing the camera, fingers straight, sharp and well lit. Send the original photo: compressed copies (for example from WhatsApp) can hide fine lines.
Parameters
Send a JSON body with your API key in the X-API-Key header. Set the language with the Accept-Language header: en (default) or hi.
| Parameter | Type | Description |
|---|---|---|
image_urlrequired | string | Public https link to the palm photo on your own storage (JPEG, PNG or WebP, up to 10 MB). |
dayrequired | int | Day of birth, 1–31. |
monthrequired | int | Month of birth, 1–12. |
yearrequired | int | Year of birth, for example 2000. |
genderrequired | string | male, female or other. |
featuresoptional | string[] | Parts of the reading to return (list below). Omit for all 15. Each part is billed. |
summaryoptional | boolean | true adds an AI-written summary paragraph, billed separately. |
Example request
# 1. Read the palm (JSON). image_url is the photo on your own storage (public https link). # Leave out "features" for all 15 parts. Accept-Language: hi for Hindi. curl -X POST 'https://astrologyapis.ratnoveda.com/vision/palmistry/full-reading' \ -H 'X-API-Key: YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -H 'Accept-Language: en' \ -d '{"image_url":"https://your-storage.example.com/palm.jpg","day":30,"month":7,"year":2000,"gender":"male","features":["personality","career","love","marriage","luck"],"summary":true}' # 2. When the PDF is wanted: POST to data.download_url, exactly as given. # No API key needed. Add &language=hi for the Hindi PDF. curl -X POST '<download_url>'
Response
{
"status": true,
"message": "Palm analysed successfully. Use the palm_id with the other palmistry endpoints.",
"data": {
"palm_id": "6f1c…",
"personality": {
"personality": { "core_traits": ["…"], "behavioral_style": "…", "strengths": ["…"] }
},
"career": { … },
"love": { … },
"summary": "…",
"download_url": "https://astrologyapis.ratnoveda.com/pdf/reports/<draft_id>/download?exp=…&sig=…",
"pdf_price": { "rupees": 5.0, "credits": 25.0 },
"translations": { "hi": { "personality": { … }, … } }
},
"disclaimer": "…"
}Response fields
| Parameter | Type | Description |
|---|---|---|
palm_idrequired | string | ID of this palm analysis. |
<part>required | object | One object per requested part, named as in features. |
summaryoptional | string | The AI summary, when requested. |
download_urlrequired | string | Signed link that delivers the reading as PDF files. See PDF delivery below. |
pdf_pricerequired | object | Price of the first PDF download, in rupees and credits. |
translationsrequired | object | The same reading in the other language, at no extra cost. |
PDF delivery
Send a POST to data.download_url exactly as returned, with no API key and no body. You receive one PDF per language, with the palm photo and its marked lines. Add &language=hi to make Hindi the main file. The first download is charged at the PDF price; repeat downloads are free. The link is valid for 7 days. No company details are needed.
{
"status": true,
"pdf_url": "https://astrologyapis.ratnoveda.com/pdf/files/<file_id>.pdf?…",
"pdf_urls": { "en": "…", "hi": "…" },
"credits_charged": 25
}Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_IMAGE | No clear open palm: back of the hand, palm cut off or too small, or lines too unclear |
| 400 | INVALID_INPUT | Missing or invalid birth date or gender, or an unknown part in features |
| 401 | INVALID_API_KEY | Missing, wrong or revoked API key |
| 402 | INSUFFICIENT_CREDITS | Not enough credits; top up and retry |
| 503 | SERVICE_UNAVAILABLE | The reading service is busy; retry shortly |