Get personal year number (JSON body)
Same calculation as GET /v1/numerology/personal-year with an MCP-friendly JSON body: name, date (YYYY-MM-DD), optional year (defaults to the current calendar year).
Endpoint
POST /v1/numerology/personal-year
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Person name (echoed for clients; not used in the calculation) |
| date | string (date) | Yes | Birth date (YYYY-MM-DD or ISO datetime string from clients) |
| year | integer | null | No | Calendar year to interpret; defaults to the current year |
Example request
- curl
- Python
- TypeScript
curl -X POST "https://api.asterwise.com/v1/numerology/personal-year" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Arjun Mehta","date":"1985-11-12","year":2026}'
import asterwise
from asterwise.api.numerology_api import NumerologyApi
from asterwise.models.personal_year_post_request import PersonalYearPostRequest
configuration = asterwise.Configuration(
host="https://api.asterwise.com",
access_token="YOUR_API_KEY",
)
request = PersonalYearPostRequest(
name="Arjun Mehta",
date="1985-11-12",
year=2026,
)
with asterwise.ApiClient(configuration) as client:
api = NumerologyApi(client)
result = api.personal_year_post(personal_year_post_request=request)
print(result)
import { createClient, createConfig, personalYearPost } from 'asterwise';
const client = createClient(createConfig({
baseUrl: 'https://api.asterwise.com',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
}));
const result = await personalYearPost({
client,
body: {
"name": "Arjun Mehta",
"date": "1985-11-12",
"year": 2026
},
});
console.log(result.data);
Example response
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | True if the request succeeded |
| message | string | Human-readable status message |
| data | object | |
| data.year | integer | Calendar year evaluated |
| data.personal_year_number | integer | Computed personal year number |
| data.theme | string | Primary theme for the personal year |
| data.interpretation | string | Narrative interpretation for this personal year |
| data.opportunities | array[string] | Potential opportunities in this year |
| data.challenges | array[string] | Potential challenges in this year |
| data.advice | string | Practical recommendation for navigating the year |
Errors
| Code | Description | Reference |
|---|---|---|
| authentication_failed | Missing or invalid API key. | authentication_failed |
| ephemeris_unavailable | Upstream ephemeris service error. | ephemeris_unavailable |
| insufficient_tier | API key tier does not include this endpoint. | insufficient_tier |
| internal_error | Unexpected server error. | internal_error |
| ip_rate_limit_exceeded | Too many requests in a short window. | ip_rate_limit_exceeded |
| payload_too_large | Request body exceeds the size limit. | payload_too_large |
| resource_not_found | Referenced resource was not found. | resource_not_found |
| validation_error | Request body failed schema validation. | validation_error |