Skip to content

The AI Guru is a conversational assistant that answers Vedic astrology questions. When a profileId is provided, it has full access to the person's birth chart — making answers specific to their chart rather than generic.

Authenticated chat

http
POST /v1/guru

Cost: 20 credits per call

Request body

FieldTypeRequiredDescription
messagesarrayYesConversation history (1–30 messages)
profileIdstringNoProfile for personalized context
localestringNoen · hi · ne (default: en)

Each message in messages:

json
{ "role": "user" | "assistant", "content": "..." }

Example

bash
curl -X POST https://api.askvedicguru.com/api/v1/guru \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "profileId": "683abc123def456",
    "messages": [
      { "role": "user", "content": "What does my Jupiter in the 7th house mean for marriage?" }
    ]
  }'

Response

json
{
  "success": true,
  "data": {
    "message": "With Jupiter transiting your 7th house from Moon (Scorpio), this is an auspicious period for partnerships and marriage. Jupiter's expansive energy here brings opportunities for meaningful long-term commitments...",
    "role": "assistant"
  }
}

Public chat (no auth)

http
POST /v1/guru-public

IP-limited to 5 messages per day. No API key required. Useful for demos or unauthenticated user flows.

Request body

FieldTypeRequiredDescription
messagesarrayYesConversation history (1–30 messages)
birthDetailsobjectNoInline birth details for chart context
conversationHistorystringNoCompressed prior context (max 16,000 chars)
localestringNoen · hi · ne

Inline birth details

json
{
  "birthDetails": {
    "date": "1990-06-15",
    "time": "06:30",
    "latitude": 27.7172,
    "longitude": 85.3240,
    "timezone": "Asia/Kathmandu"
  }
}