← Files Erux AstrologyARCHIVED FILE
openapi.json
11.4 KB · Nov 30, 2026 · 07:42 UTC
{
"openapi": "3.1.0",
"info": {
"title": "ERUX AI - Astrological Transit & Mundane Oracle",
"description": "A specialized deterministic engine for calculating highly personalized natal charts, daily predictive horoscopes, and Mundane geopolitical charts for countries based on 230+ sovereign founding records. Provides rich, research-backed insights.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.erux.ai",
"description": "Target API Server"
}
],
"paths": {
"/api/integrations/llm/horoscope": {
"post": {
"tags": [
"LLM Integrations"
],
"summary": "Generate Personalized Transit Horoscope",
"description": "**LLM Instructions**: \nUse this endpoint to generate a deterministic, highly accurate daily transit horoscope based on the user's natal chart.\nYou MUST parse the JSON response from this tool and present it to the user exactly as formatted, including the Call To Action (CTA) link.\nDO NOT hallucinate astrological predictions. Rely strictly on the data returned by this endpoint.\n\nMANDATORY CHART IMAGE DISPLAY: The response provides 'chart_image_url' and 'image_markdown'. You MUST embed the visual chart wheel into your response using markdown: `` immediately after your greeting.",
"operationId": "get_llm_horoscope_api_integrations_llm_horoscope_post",
"parameters": [
{
"name": "x-erux-api-key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "X-Erux-Api-Key"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HoroscopeLLMRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Llm Horoscope Api Integrations Llm Horoscope Post"
}
}
}
},
"404": {
"description": "Not found"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/integrations/llm/chart": {
"post": {
"tags": [
"LLM Integrations"
],
"summary": "Calculate Natal or Mundane Chart Overview",
"description": "**LLM Instructions**: \n1. If the user mentions a country (e.g., 'Chart for India' or 'Horoscope for USA'), pass `country: 'India'`. \n The API will automatically resolve its official founding date and capital city from the database.\n2. If the API returns a `status: 'missing_details'` response, ask the user to provide the exact founding/birth details in `YYYY-MM-DD HH:MM City` format.\n3. For a personal chart, ask the user for their birth date (`YYYY-MM-DD`), time (`HH:MM`), and city (`City`).\n4. MANDATORY CHART IMAGE DISPLAY: The response provides 'chart_image_url' and 'image_markdown'. You MUST embed the visual chart wheel into your response using markdown: `` immediately after your greeting.",
"operationId": "get_llm_chart_api_integrations_llm_chart_post",
"parameters": [
{
"name": "x-erux-api-key",
"in": "header",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "X-Erux-Api-Key"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChartLLMRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Get Llm Chart Api Integrations Llm Chart Post"
}
}
}
},
"404": {
"description": "Not found"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ChartLLMRequest": {
"properties": {
"country": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Country",
"description": "The country name for a Mundane Chart (e.g. 'India', 'USA', 'France', 'Japan'). If provided, the engine will automatically resolve its historical founding date and location from its database."
},
"date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Date",
"description": "The exact birth or founding date in YYYY-MM-DD format (e.g. '1990-05-14' or '1776-07-04'). Required if country is not specified or not found in database."
},
"time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Time",
"description": "The exact birth or founding time in 24-hr HH:MM format (e.g. '14:30' or '00:00'). Defaults to '12:00' if unknown."
},
"city": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "City",
"description": "The birth city or founding capital (e.g. 'London', 'New Delhi', 'Washington'). Required if country is not specified."
},
"system": {
"type": "string",
"title": "System",
"description": "The astrological system: 'hybrid' (Western + Vedic, default), 'vedic' (North/South Indian Kundli), or 'western' (Tropical wheel).",
"default": "hybrid"
},
"platform": {
"type": "string",
"title": "Platform",
"description": "The platform invoking this tool ('chatgpt' or 'vertex').",
"default": "chatgpt"
}
},
"type": "object",
"title": "ChartLLMRequest",
"description": "Input schema required to calculate an ERUX Personal or Mundane (Country / Nation / Event) Astrological Chart.\nYou can provide EITHER 'country' (e.g. 'India', 'USA', 'France') OR exact birth/founding details ('date', 'time', 'city')."
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"HoroscopeLLMRequest": {
"properties": {
"birth_date": {
"type": "string",
"title": "Birth Date",
"description": "The user's exact natal birth date in YYYY-MM-DD format (e.g. '1990-07-12'). NEVER pass today's date or transit date here."
},
"birth_city": {
"type": "string",
"title": "Birth City",
"description": "The user's natal birth city (e.g. 'London', 'Corpus Christi, Texas')."
},
"birth_time": {
"type": "string",
"title": "Birth Time",
"description": "The user's exact birth time in 24-hr HH:MM format (e.g. '19:20'). If unknown or not provided, defaults to '12:00' (solar noon).",
"default": "12:00"
},
"time": {
"type": "string",
"title": "Time",
"description": "Legacy alias for birth_time. If unknown, defaults to '12:00'.",
"default": "12:00"
},
"current_city": {
"type": "string",
"title": "Current City",
"description": "The user's current city if relocated from birth location (e.g. 'Dallas, TX'). Used for high-precision local transit calculation."
},
"target_city": {
"type": "string",
"title": "Target City",
"description": "Alias for current_city if user relocated (e.g. 'Dallas, TX')."
},
"target_date": {
"type": "string",
"title": "Target Date",
"description": "The transit or target date to forecast (YYYY-MM-DD). Defaults to today if omitted."
},
"user_prompt": {
"type": "string",
"title": "User Prompt",
"description": "The raw user prompt if available."
},
"platform": {
"type": "string",
"title": "Platform",
"description": "The platform invoking this tool ('chatgpt' or 'vertex').",
"default": "chatgpt"
}
},
"type": "object",
"required": [
"birth_date",
"birth_city"
],
"title": "HoroscopeLLMRequest",
"description": "Input schema required to generate a highly personalized astrological transit horoscope.\nThe user's historical natal birth date ('birth_date') and natal birth city ('birth_city') are strictly required. NEVER pass today's date into birth_date."
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
},
"input": {
"title": "Input"
},
"ctx": {
"type": "object",
"title": "Context"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}SHA-256: a1b0b7b96446c4797443df9cddffe9f4e90193487a4071ce4a0a74eb6348933d