Hasta Backend
  1. user
  • 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
    • Admin login
    • Admin logout
    • Refresh admin access token
    • Get admin profile
    • Update admin password
    • Edit language
    • Add language
    • Delete language
    • Delete user event logs
    • Clear lookup cache
    • Clear cache
    • List all subscription plans (admin)
    • Edit a subscription plan (admin)
    • Edit a subscription plan (admin)
    • Sync a recurring plan with Razorpay
    • Sync a recurring plan with Razorpay
    • Create a coupon (admin)
    • List coupons (admin)
    • Get a coupon (admin)
    • Get a coupon (admin)
    • Edit a coupon (admin)
    • Edit a coupon (admin)
    • List redemptions for a coupon (admin)
    • List redemptions for a coupon (admin)
    • Create a recurring scheduled notification (admin)
    • List scheduled notifications (admin)
    • Pause a scheduled notification (admin)
    • Resume a paused scheduled notification (admin)
  • blogs
    • Admin - get all blogs
    • Admin - delete a blog
    • Get all blogs
    • Get blog categories
    • Admin - get blog categories (name + slug)
    • Admin - edit a blog
    • 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
    • Feature or unfeature a review
    • Get all featured reviews
  • events
    • Track a user event
    • Fetch all tracked events
  • notifications
    • Send broadcast notification
    • Send custom notification to a user
    • Send a test notification (deep link redirect check)
    • 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
      PUT
    • Get my profile
      GET
    • Get my feature status
      GET
    • Update my intents
      PATCH
    • Update profile image
      PATCH
    • Update language preference
      PATCH
    • Update push notification preference
      PATCH
    • Update current location
      PATCH
    • Get my family members
      GET
    • Add a family member
      POST
    • Delete a family member
      DELETE
    • Update family member profile image
      PATCH
    • Admin - get user details with family
      GET
    • Update a family member's intents
      PATCH
    • Admin - list users
      GET
    • Admin - get subscribers list
      GET
    • Admin - get user details with family
      GET
    • Admin - delete user and all family members
      DELETE
    • Admin - update user status
      PUT
  • 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
    • List marriage report history
    • Preview the price to upgrade a compatibility report to the full Marriage Report
    • Start the compatibility -> full Marriage Report upgrade purchase
    • Consume the upgrade purchase and regenerate the full Marriage Report
  • child
    • Generate child report (baby names + birth timing)
    • Like or unlike a suggested baby name
    • Get child report (names + timing)
  • dashboard
    • Dashboard overview stats
    • User growth time-series
    • Subscription distribution by plan
    • Top-up & one-time sales distribution
    • Recent activity feed
  • Health
    • Liveness check
  • panchang
    • Get today's panchang for the user's current location
  • festivals
    • List festivals for the user's regions
    • Festival detail with full linked puja vidhis
  • library
    • List library items
    • Library filter options
    • Library content types
    • List my favourite library items
    • Add a library item to favourites
    • Remove a library item from favourites
    • Admin - list library items (incl. drafts)
    • Admin - create a library item
    • Admin - get a library item (incl. drafts)
    • Admin - edit / publish a library item
    • Stream a library item's audio
    • Get a library item
  • mantras
    • List mantras
    • List my favourite mantras
    • Add a mantra to favourites
    • Remove a mantra from favourites
    • Admin - list mantras (incl. drafts)
    • Admin - create a mantra
    • Admin - get a mantra (incl. drafts)
    • Admin - edit / publish a mantra
    • Stream a mantra's chanting audio
    • Get a mantra
  • nandini
    • Send a message and/or image(s)/PDF(s) to Nandini (reply is streamed over WebSocket)
    • List my Nandini conversations
    • Get a conversation's messages
    • Delete a conversation
  • payments
    • Validate a coupon code
    • Start a plan/report/topup purchase
    • Verify a completed Razorpay payment
    • Cancel a recurring subscription
    • Pause a recurring subscription
    • Resume a paused subscription
  • subscriptions
    • List my purchase history
    • Get one purchase's status
  • public
    • Get today's panchang for any location - no auth required
    • Free kundali preview - no auth, no account required
    • Search a place by name (keystroke-aware) - no auth required
    • Resolve a place_id to full location + timezone - no auth required
  • coupons
    • List currently applicable coupons
    • Get a currently applicable coupon
  • account-deletion
    • Request account & data deletion
  1. user

Add a family member

POST
https://uat-api.hastaai.in/api/v1/users/family
user
Last modified:2026-08-13 18:45:26
Request: multipart/form-data
Add a family member with a relation name and optional birth details. relation_name must match a valid relation from the /lookup endpoint. intent (optional) is a JSON array string of intent slugs for this member (e.g. '["career", "wealth"]', max 3 kept) - fetch valid slugs from GET /lookup/intents; to change them later use PATCH /users/family/{family_key}/intents instead of re-adding the member. Optionally upload a profile photo (JPEG / PNG / WebP, max 5 MB). Requires a valid Bearer token.
Success: 200 - returns { success, message } only (no data). Re-fetch the updated list via GET /users/family. Also returns 200 with success: false and code: PLAN_LIMIT (not an HTTP error) when header X-Enforce-Paywall: true is sent and the family list has hit the plan's family_add limit
Errors: 401 - missing/invalid token | 422 - validation error or invalid image

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params multipart/form-dataRequired

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 'https://uat-api.hastaai.in/api/v1/users/family' \
--header 'Authorization: Bearer <token>' \
--form 'full_name=""' \
--form 'relation_name=""' \
--form 'date_of_birth=""' \
--form 'birth_time=""' \
--form 'moon_sign=""' \
--form 'intent=""' \
--form 'birth_place=""' \
--form 'latitude=""' \
--form 'longitude=""' \
--form 'timezone=""' \
--form 'gender=""' \
--form 'profile_image=""'

Responses

🟢200OK
application/json
Successful Response
Bodyapplication/json

Example
{
    "success": true,
    "message": "Family member added."
}
🟠401Unauthorized
🟠422Parameter Error
Modified at 2026-08-13 18:45:26
Previous
Get my family members
Next
Delete a family member
Built with