Перейти до вмісту
AstroWay/api v2.19.0 · docs
усі системи в нормі
UA EN

Wellness Cycle Milestones

POST
/wellness/cycle

Age-based wellness milestones (Saturn return, Uranus opposition, hormonal shifts) — nearby + full list.

curl -X POST https://api.astroway.info/v1/wellness/cycle \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "birthDate": "1990-06-15", "targetDate": "2026-05-07" }'
object
Example
{
"birthDate": "1990-06-15",
"targetDate": "2026-05-07"
}

Successful calculation

object
ok
boolean
Example
true
data
object
ageYears
number
nearbyMilestones
Array<object>
object
age
number
theme
string
system
string
Example
{
"ok": true,
"data": {
"ageYears": 35,
"nearbyMilestones": [
{
"age": 35,
"theme": "Metabolic shift...",
"system": "Metabolic"
}
]
}
}

Validation error

Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?