Skip to content

A profile stores a person's birth date, time, and location. All calculation endpoints require a profileId from a previously created profile.

List profiles

http
GET /v1/profiles

Returns all profiles linked to your account.

Response

json
{
  "success": true,
  "data": [
    {
      "id": "683abc123def456",
      "name": "Arun Sharma",
      "date": "1990-06-15",
      "time": "06:30",
      "location": "Kathmandu, Nepal",
      "timezone": "Asia/Kathmandu",
      "latitude": 27.7172,
      "longitude": 85.3240,
      "gender": "male"
    }
  ]
}

Create a profile

http
POST /v1/profiles

Request body

FieldTypeRequiredDescription
namestringYesPerson's name
gender"male" | "female"YesGender (affects chart interpretation)
datestringYesBirth date in YYYY-MM-DD format
timestringYesBirth time in HH:MM (24h) format
timezonestringYesIANA timezone e.g. "Asia/Kathmandu"
locationstringYesHuman-readable location name
latitudenumberYesBirth latitude (decimal degrees)
longitudenumberYesBirth longitude (decimal degrees)
notesstringNoOptional notes (max 500 chars)

Example

bash
curl -X POST https://api.askvedicguru.com/api/v1/profiles \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "name": "Arun Sharma",
    "gender": "male",
    "date": "1990-06-15",
    "time": "06:30",
    "timezone": "Asia/Kathmandu",
    "location": "Kathmandu, Nepal",
    "latitude": 27.7172,
    "longitude": 85.3240
  }'

Response

json
{
  "success": true,
  "data": {
    "id": "683abc123def456",
    "name": "Arun Sharma",
    "date": "1990-06-15",
    "time": "06:30",
    "location": "Kathmandu, Nepal",
    "timezone": "Asia/Kathmandu",
    "latitude": 27.7172,
    "longitude": 85.3240,
    "gender": "male"
  }
}