---
title: "Track Query"
method: POST
path: "/analytics/track-query"
tags: ["analytics"]
---

# Track Query

`POST /analytics/track-query`

## Request

- Base URL: `https://api.erux.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.erux.ai/analytics/track-query`
- Auth: none declared

Track a user query or interaction

## Request body

- UserQueryRequest: Schema for user query tracking requests
  - `query_type` string, required: Type of query
  - `query_text` string, required: Query text
  - `user_id` string, required: User identifier
  - `query_context` object, nullable: Query context
  - `response_success` boolean, nullable: Whether response was successful
  - `response_time` number, nullable: Response time
  - `response_length` integer, nullable: Response length
  - `astrological_system` string, nullable: Astrological system
  - `chart_type` string, nullable: Chart type
  - `has_transits` boolean, nullable: Whether chart has transits
  - `birth_date` string, nullable: Birth date
  - `birth_time` string, nullable: Birth time
  - `birth_location` string, nullable: Birth location
  - `timezone` string, nullable: Timezone
  - `timestamp` string, nullable: Query timestamp

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine.md) · [All operations](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/revisions/9dc718df71b0?raw)
