Hasta Backend
  1. marriage
  • lookup
    • Get localised seed data
      GET
    • Get core seed data
      GET
    • Get zodiac signs
      GET
    • Get subscription and pricing plans
      GET
    • Get FAQs
      GET
    • Get notification intervals
      GET
  • audit
    • Get audit logs
      GET
  • auth
    • Register device
      POST
    • Send OTP
      POST
    • Verify OTP and login
      POST
    • Resend OTP
      POST
    • Refresh access token
      POST
    • Logout
      POST
    • Google OAuth login
      POST
  • admin
    • Register admin account
      POST
    • Admin login
      POST
    • Admin logout
      POST
    • Refresh admin access token
      POST
    • Get admin profile
      GET
    • Update admin password
      PUT
    • Edit language
      PUT
    • Add language
      POST
    • Delete language
      DELETE
    • Delete user event logs
      DELETE
    • Clear lookup cache
      DELETE
    • Clear cache
      DELETE
  • blogs
    • Admin - get all blogs
    • Admin - delete a blog
    • Get all blogs
    • Get blog categories
    • Update blog status
    • Admin - send blog notification
    • Get blog details
    • Subscribe to blog notifications
    • Unsubscribe from blog notifications
  • feedback
    • Submit a user feedback
    • Get all queries
    • Update user query status
    • Get all reviews
    • Update review status
    • Get all featured reviews
  • events
    • Track a user event
    • Fetch all tracked events
  • notifications
    • Send broadcast notification
    • Send custom notification to a user
    • Fetch user notifications
    • Get unread notification count
    • Mark notification as read
  • reminders
    • Fetch user reminders
    • Create a reminder
    • Update a reminder
    • Delete a reminder
  • user
    • Create / complete user profile
    • Get my profile
    • Update profile image
    • Update language preference
    • Update push notification preference
    • Get my family members
    • Add a family member
    • Delete a family member
    • Update family member profile image
    • Admin - list users
    • Admin - get user details with family
    • Admin - delete user and all family members
    • Create / complete user profile
    • Admin - update user status
  • palm
    • Get user palm reading
    • Upload user palm image
    • Upload family member palm image
    • Get family member palm reading
  • horoscopes
    • Get user kundali
    • Get family member kundali
    • Get horoscope (daily / weekly / monthly)
  • reports
    • Share a report via email
    • Get shared report PDF link
  • tarot
    • List all tarot cards
    • Get single tarot card by slug
    • Get today's daily tarot card
    • Get a 3-card tarot reading
    • Get tarot reading history
  • marriage
    • Generate marriage compatibility report
      POST
    • Get marriage compatibility report
      GET
  • child
    • Generate baby names or child timing
    • Like or unlike a suggested baby name
    • Get child naming or timing result
  • dashboard
    • Dashboard overview stats
    • User growth time-series
    • Subscription distribution by plan
    • Top-up & one-time sales distribution
    • Recent activity feed
  • Health
    • Liveness check
  1. marriage

Get marriage compatibility report

GET
/api/v1/marriage/report/{prediction_key}
marriage
Last modified:2026-06-04 22:55:16
Poll this endpoint after POST /marriage/report. Always returns HTTP 200 with a status field; the client polls until status is done or failed.
Request: Bearer token
Body: none
Success: 200 - body always contains prediction_key, status, partner_name. Fields by state:
status: "pending" - queued, background job not started. Only the base fields are present; all result fields are null.
status: "processing" - kundalis + Ashtakoota + AI narrative being computed. Result fields still null.
status: "done" - full result: matching_score (out of 36), compatibility_summary, marriage_timing_prediction, koota_breakdown (8 kootas with score/max), person1_manglik, person2_manglik, match_chart_url (Guna Milan table PNG), and user_kundali / partner_kundali (each: name, lagna_sign, moon_sign, moon_nakshatra, north_chart_url, south_chart_url). Note: the partner's chart URLs may be null for a few seconds after done while their chart finishes rendering in a separate job.
status: "failed" - generation errored; prompt the user to retry. Result fields are null.
Errors: 401 - invalid/expired token | 404 - no report with this prediction_key for the current user

Request

Path Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/marriage/report/'

Responses

🟢200OK
application/json
Successful Response
Bodyapplication/json

Examples
{
    "success": true,
    "message": "Success",
    "data": {
        "prediction_key": "Match-12345",
        "status": "done",
        "partner_name": "Priya",
        "partner_birth_date": "1996-08-20",
        "matching_score": 28.5,
        "compatibility_summary": "An excellent match \n                                        with strong emotional bonds.",
        "marriage_timing_prediction": "2027 is a highly \n                                        auspicious year for marriage.",
        "koota_breakdown": {
            "Varna": {
                "score": 1,
                "max": 1
            },
            "Vashya": {
                "score": 2,
                "max": 2
            },
            "Tara": {
                "score": 3,
                "max": 3
            },
            "Yoni": {
                "score": 2,
                "max": 4
            },
            "Graha Maitri": {
                "score": 5,
                "max": 5
            },
            "Gana": {
                "score": 6,
                "max": 6
            },
            "Bhakoot": {
                "score": 0,
                "max": 7
            },
            "Nadi": {
                "score": 8,
                "max": 8
            }
        },
        "person1_manglik": false,
        "person2_manglik": true,
        "match_chart_url": "https://cdn.hastaai.in/\n                                        marriage/charts/match-12345.png",
        "user_kundali": {
            "name": "Rahul",
            "lagna_sign": "Aries",
            "moon_sign": "Gemini",
            "moon_nakshatra": "Mrigashira",
            "north_chart_url": "https://cdn.hastaai.in\n                                            /kundali/charts/rahul-north.png",
            "south_chart_url": "https://cdn.hastaai.in\n                                            /kundali/charts/rahul-south.png"
        },
        "partner_kundali": {
            "name": "Priya",
            "lagna_sign": "Leo",
            "moon_sign": "Taurus",
            "moon_nakshatra": "Rohini",
            "north_chart_url": "https://cdn.hastaai.in/\n                                            kundali/charts/priya-north.png",
            "south_chart_url": "https://cdn.hastaai.in/\n                                            kundali/charts/priya-south.png"
        }
    }
}
🟠401Unauthorized
🟠404Record Not Found
🟠422Parameter Error
Modified at 2026-06-04 22:55:16
Previous
Generate marriage compatibility report
Next
Generate baby names or child timing
Built with