← Integrations

No-code / CMS · JSON

Daily nakshatra emails with Zapier or Make, without double calls

Both platforms can send an arbitrary HTTP request, which is all AstroNode needs. The example is a daily email: each subscriber gets the reading for their Moon nakshatra. The interesting parts are not the request - they are calling the API 27 times instead of once per subscriber, and making re-runs harmless.

Updated

How this page was checked: Neither Zapier nor Make was run. The request both are configured to send - including the Idempotency-Key replay and the 409 - was executed with curl against the in-memory API.

The request, on either platform

Same request in both tools
Zapier: Webhooks by Zapier → Custom RequestMake: HTTP → Make a request
MethodPOSTPOST
URLhttps://api.astronode.dev/v1/horoscope/nakshatrasame
HeadersAuthorization: Bearer aie_live_..., Content-Type: application/json, Idempotency-Key (below)same, as header rows
BodyData: the raw JSON belowBody type Raw, content type JSON, request content: the JSON below
Responseparsed JSON fields are available to later stepsturn on response parsing so later modules can map data.summary

Body - {{nakshatra}} and {{date}} stand for the fields you map in:

json
{ "nakshatra": "{{nakshatra}}", "date": "{{date}}" }

data for Uttara Ashadha on 1 December 2026:

json
{
  "nakshatra": "Uttara Ashadha",
  "date": "2026-12-01",
  "weekday": "Tuesday",
  "summary": "Lasting victories. Patient effort outperforms quick wins today.",
  "disclaimer": "Vedic astrology is offered here for cultural and informational purposes only. ..."
}

Webhooks by Zapier is a built-in app; check that your Zapier plan includes it. In Make, the HTTP app is built in too. Both keep header values in the scenario/Zap configuration, so restrict who can edit it - anyone who can open the step can read the key.

27 calls a day, not one per subscriber

The reading depends only on the nakshatra and the date - there are 27 nakshatras - so every subscriber with the same Moon nakshatra gets the same text. Structure the automation in two passes:

  • Once a day per nakshatra: a schedule trigger iterates over the 27 names, calls the API, and writes nakshatra, date, summary to a table (Google Sheets, Airtable, Make Data Store, Zapier Tables).
  • Per subscriber: look up the row for their nakshatra and today's date, and send the email. No API call.
  • At 10,000 subscribers that is 27 calls instead of 10,000 - the difference between the free plan and a paid one.

Store subscribers' nakshatra in the API's exact spelling (take it from the Moon in /v1/charts/birth). "uttara ashadha" is a 400 that lists the 27 accepted names.

The mistake that bites first: re-runs

When a run fails halfway - the email step times out, say - re-running it repeats the API call too. For a reading that is harmless but wasteful; for anything that creates something (an async report job) it is a duplicate. Send an Idempotency-Key built from the content, so a re-run is recognised:

text
Idempotency-Key: nak-{{date}}-{{nakshatra_slug}}     e.g. nak-2026-12-01-uttara-ashadha
What the API did with that key (real responses)
CallResult
First call200, computed
Same key, same body (a re-run)200, header idempotent-replayed: true, identical body including request_id
Same key, different body (a mapping bug)409 IDEMPOTENCY_KEY_REUSED

Keys are kept for 24 hours. A replay is still recorded as a request, so the key protects correctness, not quota - the 27-call structure above is what protects quota. The 409 is useful in its own right: it means two different requests were mapped to the same key, which is almost always a field-mapping mistake (IDEMPOTENCY_KEY_REUSED). And as with any raw-JSON body, a number mapped inside quotes arrives as a string and fails validation: both fields here are strings, but birth-chart endpoints take tz_offset_minutes, lat and lng as numbers.

Questions

Which AstroNode endpoints does the Zapier / Make example call?
2 endpoints: Nakshatra Daily Horoscope (POST /v1/horoscope/nakshatra); Birth Chart (Kundli) (POST /v1/charts/birth).
Was the Zapier / Make code on this page actually run?
Neither Zapier nor Make was run. The request both are configured to send - including the Idempotency-Key replay and the 409 - was executed with curl against the in-memory API.