# Chart briefs for an astrologer marketplace

> A consultation marketplace sells an astrologer's time by the minute, so every minute spent casting a chart on the call is a minute the customer pays for and resents. The platform's job is to collect birth details at booking, compute a brief the astrologer reads before connecting, and sell the written follow-up afterwards - all from one key the platform owns, not one per astrologer.

Source: https://astronode.dev/use-cases/consultation-marketplace · Updated: 2026-12-02

**Plan needed:** Plan: the pre-call brief is **Hobby** (birth details and the chart itself are Free). Paid reports and `GET /v1/reports/:id` need **Starter**; KP horary (prashna) consultations need **Pro** - a Hobby key gets `403 PLAN_REQUIRED` with `required_tier: "pro"`.

## The mistake that bites first: A report belongs to the key that started it

Paid take-home reports run as jobs: `POST` returns `202` with a `rep_…` id and you poll `GET /v1/reports/:id`. That id is readable only by the **API key** that created it - a second key on the same account gets `404 NOT_FOUND`, indistinguishable from a wrong id. A marketplace that starts jobs from its payments worker and reads them from the astrologer dashboard on another key will see every report "vanish". Use one key for both, or store the result when it is ready. And send an `Idempotency-Key` derived from the booking id: a retried payment webhook then gets the same report id back with `idempotent-replayed: true` instead of queuing a second job.

## 1. At booking: confirm the details

Customers mistype birth times and swap day and month. Show a short card they can recognise - Moon sign, nakshatra, rising sign - before they pay. `time` is required on every calculation endpoint (`400 VALIDATION_ERROR` without it), so a "don't know my time" path has to be designed, not defaulted.

- [`POST /v1/birth-details`](https://astronode.dev/capabilities/vedic/birth-details) - Ascendant, Moon sign, nakshatra and pada, with the ayanamsa and house system named in `meta`.
- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - The full D1 chart. Deterministic, so compute once per customer and store it.

## 2. Before the call: the astrologer's brief

One screen the astrologer scans in a minute: what period the person is in, what is moving over them, and the chart's notable combinations.

- [`POST /v1/dasha/lookup`](https://astronode.dev/capabilities/vedic/dasha-lookup) - Mahadasha down to pran dasha as of the call's date.
- [`POST /v1/transits/events`](https://astronode.dev/capabilities/vedic/transits-events) - Sign changes, retrogrades and combustions over the next few months - the usual "when" questions.
- [`POST /v1/yogas`](https://astronode.dev/capabilities/vedic/yogas) - Which of the 55 catalogued yogas are present, each with its reason.

## 3. Consultation types that need their own calls

Match consultations and prashna (horary) are distinct products with different inputs; route them by booking type.

- [`POST /v1/compatibility`](https://astronode.dev/capabilities/compatibility/compatibility) - Gun Milan for a match consultation, with both people's details collected at booking.
- [`POST /v1/kp/horary`](https://astronode.dev/capabilities/kp/kp-horary) - KP horary from the customer's number (1-249) - no birth data needed.

## 4. After the call: the paid follow-up

A multi-year annual forecast is the natural upsell. Start it from the backend with an idempotency key, poll politely (each poll is a billable call), and attach the result to the consultation record.

- [`POST /v1/reports/varshphal-multi-year`](https://astronode.dev/capabilities/reports/reports-varshphal-multi-year) - 1-25 consecutive Varshphal years as one job; returns `202` and a report id.
- [`GET /v1/reports/:id`](https://astronode.dev/capabilities/reports/reports-id) - `pending`, then `ready` with `result` - only for the key that started it.

## Quick answers

**Which endpoints does a astrologer marketplaces build use?**

9 endpoints across 4 stages: Birth Details (Rashi, Nakshatra, Lagna) (`POST /v1/birth-details`); Birth Chart (Kundli) (`POST /v1/charts/birth`); Current Dasha Lookup (`POST /v1/dasha/lookup`); Transit Events (Gochar) (`POST /v1/transits/events`); Yoga Detection (`POST /v1/yogas`); Kundli Matching (Ashtakoot Gun Milan) (`POST /v1/compatibility`); KP Horary (Prashna 1-249) (`POST /v1/kp/horary`); Multi-year Varshphal Report (Async) (`POST /v1/reports/varshphal-multi-year`); Report Status and Download (`GET /v1/reports/:id`).

**Which plan does it need?**

Plan: the pre-call brief is **Hobby** (birth details and the chart itself are Free). Paid reports and `GET /v1/reports/:id` need **Starter**; KP horary (prashna) consultations need **Pro** - a Hobby key gets `403 PLAN_REQUIRED` with `required_tier: "pro"`.

**What goes wrong first?**

A report belongs to the key that started it. Paid take-home reports run as jobs: `POST` returns `202` with a `rep_…` id and you poll `GET /v1/reports/:id`. That id is readable only by the **API key** that created it - a second key on the same account gets `404 NOT_FOUND`, indistinguishable from a wrong id. A marketplace that starts jobs from its payments worker and reads them from the astrologer dashboard on another key will see every report "vanish". Use one key for both, or store the result when it is ready. And send an `Idempotency-Key` derived from the booking id: a retried payment webhook then gets the same report id back with `idempotent-replayed: true` instead of queuing a second job.

## Go deeper

- [Recipe: async report jobs, idempotent retry and polling](https://astronode.dev/recipes/async-report-jobs)
- [Recipe: storing birth data](https://astronode.dev/recipes/storing-birth-data)
- [Recipe: cache charts by birth hash](https://astronode.dev/recipes/cache-charts-by-birth-hash)
- [Recipe: a KP horary chart](https://astronode.dev/recipes/kp-horary-chart)
- [Error: 404 NOT_FOUND](https://astronode.dev/docs/errors/not-found)
- [Error: 409 IDEMPOTENCY_KEY_REUSED](https://astronode.dev/docs/errors/idempotency-key-reused)
