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

Generate Love Report (PDF or HTML)

POST
/reports/love

Romantic-relationship natal report. Highlights Venus (attraction style), Mars (desire), Moon (emotional needs), Descendant (partner profile). Disclaimer: not a prophecy.

curl -X POST https://api.astroway.info/v1/reports/love \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "chart": { "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52 }, "language": "uk" }'
object
Example
{
"chart": {
"date": "1990-05-15",
"time": "14:30:00",
"timezoneOffset": 3,
"latitude": 50.45,
"longitude": 30.52
},
"language": "uk"
}

Successful calculation

object
ok
boolean
Example
true
data
object
url
string
storage_key
string
byte_length
number
page_count
number
duration_ms
number
expires_at
string
Example
{
"ok": true,
"data": {
"url": "https://api.astroway.info/reports/abc-love.pdf",
"storage_key": "reports/abc-love.pdf",
"byte_length": 130000,
"page_count": 1,
"duration_ms": 3700,
"expires_at": "2026-05-09T07:00:00Z"
}
}

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"
}
}
Корисно?