Skip to content
Get API key
WesternSandbox

Western Astrology Chat API

"operation": "western-chat"

Add a Western astrology question form.

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

Request

Make a calculation

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

Send these sample parameters under parameters: message. 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":{"message":"What is my birth chart ascendant?"},"operation":"western-chat"}'

Response

What comes back.

Illustrative response excerpt

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-chat",
    "result": {
      "reply": "Share your birth date, time and place to calculate your ascendant.",
      "needs_birth_data": true
    }
  },
  "calculated": true
}

Western

Build with the result

Display data.result.reply and prompt for birth details when needs_birth_data is true. Example field: data.result.reply.

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