Skip to content
Get API key
WesternSandbox

Western Composite Chart Image API

"operation": "western-composite-image"

Embed a composite relationship chart.

POST/v1/astrology/calculate
  • 500 free calls a month
  • No card needed
  • Failed calculations are free

Request

Make a calculation

Send "operation": "western-composite-image" to POST /v1/astrology/calculate from your server with your API key.

Send these sample parameters under parameters: person_a, person_b. The request uses synthetic inputs where applicable. The sample includes optional settings when relevant.

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"person_a":{"year":1990,"month":5,"day":15,"city":"London"},"person_b":{"year":1992,"month":8,"day":6,"city":"Paris"}},"operation":"western-composite-image"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-composite-image",
    "contentType": "image/png",
    "imageBase64": "<PNG bytes encoded as base64>"
  },
  "calculated": true
}

Western

Build with the result

Use data.contentType and data.imageBase64 to render the chart as a data URI.

A successful call uses one content request. Sandbox and live requests have separate usage totals. Failed calculations are refunded.