Hasta Backend
  1. child
  • 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
    • Get marriage compatibility report
  • child
    • Generate baby names or child timing
      POST
    • Like or unlike a suggested baby name
      PATCH
    • Get child naming or timing result
      GET
  • 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. child

Generate baby names or child timing

POST
/api/v1/child/generate
child
Last modified:2026-06-04 22:55:16
Single endpoint for both flows. Requires a spouse (Wife/Husband) in the family list.
If baby_birth_date is provided → NAMING flow: computes the baby's nakshatra and suggests 12 names with the correct starting syllable.
If omitted → TIMING flow: predicts auspicious child-birth windows from the parent's chart.
Runs in the background - you will be notified when ready.
Request: Bearer token. Requires a spouse (Wife/Husband) in the family list for both flows.
Body:
Naming: baby_birth_date (required to trigger naming) + optional baby_birth_time, baby_birth_place, baby_birth_latitude, baby_birth_longitude, baby_birth_timezone, baby_gender (M/F).
Timing: send an empty body {} (no baby_birth_date).
Success: 200 - returns request_key (Baby-XXXXX), request_type (naming | timing, echoing which flow ran), and a message. Poll GET /child/result/{request_key}.
Errors:
401 - invalid/expired token
409 - a child report of the same type is already pending/processing
422 - no spouse in the family list (add Wife/Husband first)

Request

Body Params application/jsonRequired

Example
{
    "baby_birth_date": "2026-03-15",
    "baby_birth_latitude": 19.076,
    "baby_birth_longitude": 72.8777,
    "baby_birth_place": "Mumbai, India",
    "baby_birth_time": "08:30",
    "baby_birth_timezone": "Asia/Kolkata",
    "baby_gender": "M"
}

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/child/generate' \
--header 'Content-Type: application/json' \
--data '{
    "baby_birth_date": "2026-03-15",
    "baby_birth_latitude": 19.076,
    "baby_birth_longitude": 72.8777,
    "baby_birth_place": "Mumbai, India",
    "baby_birth_time": "08:30",
    "baby_birth_timezone": "Asia/Kolkata",
    "baby_gender": "M"
}'

Responses

🟢200OK
application/json
Successful Response
Bodyapplication/json

Examples
{
    "success": true,
    "message": "Success",
    "data": {
        "request_key": "Baby-12345",
        "request_type": "naming",
        "message": "Report generation started.\n                                        You will be notified when ready."
    }
}
🟠401Unauthorized
🟠404Record Not Found
🟠409
🟠422Parameter Error
Modified at 2026-06-04 22:55:16
Previous
Get marriage compatibility report
Next
Like or unlike a suggested baby name
Built with