Skip to content
96Astro API

API reference

PDF and audio jobs

Render any report capability as a branded PDF or a spoken MP3 in the background: submit a job, poll it, then download the file from its signed link.
  • 4 operations
  • PDF: report + 120 credits
  • MP3: report + 800 credits a minute
  • Failed jobs are free

4 operations. Submitting and polling take your key in the Authorization header; the download link needs none. Instead of polling, a webhook can tell you when a job finishes. Schemas come from the OpenAPI document; the walk-through is in the PDF and audio jobs guide.

Render a report as a PDF

POST

https://api.96astroapi.com/v1/jobs/pdf

Queues a PDF of any report capability. The response is 202 with the job; poll GET /v1/jobs/{job_id} until status is succeeded, then download download_url. Branding is optional. Sandbox keys get a SANDBOX watermark, 5 PDFs a day, free.

Credits
The report's own credits + 120 (report-career: 10 credits + 120)
Charged
Reserved when the job is accepted (meta.credits_reserved), kept on success, released if it fails. Re-downloading is free.
Sandbox
Free, 5 PDF jobs a day, with a SANDBOX watermark. Audio needs a paid plan with AI
Response
202 Accepted with the job; its URL in the Location header
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The body is JSON.

Idempotency-KeyOptional<unique string>

Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters)

Body · application/json
FieldDescription
capabilitystringRequired

A report capability id, e.g. report-marriage. Its own credits are charged too.

Allowed values:
52 valuesbnn-graha-phalaclassical-kundli-reportdetailed-lifelal-kitab-predictionlongevity-analysismatching-reportprediction-bhaveshprediction-classicsprediction-dashaprediction-gemprediction-life-reportprediction-lucky-infoprediction-nakshatra-interpprediction-natureprediction-physicalprediction-planetary-dispositionsreport-all-signs-compatibilityreport-attractionreport-bhagyareport-big-threereport-careerreport-chart-blueprintreport-child-personalityreport-childrenreport-complete-kundlireport-dhan-yogreport-educationreport-five-yearreport-foreign-travelreport-healthreport-karmic-partnershipreport-karz-muktireport-lal-kitab-kundlireport-marriagereport-numerologyreport-past-lifereport-politicsreport-propertyreport-relocationreport-romancereport-solar-returnreport-spiritualreport-star-sign-compatibilityreport-transit-forecastreport-varshaphalreport-wealthreport-western-five-yearsynastry-fullsynastry-predictionsvastu-reportwestern-detailed-reportwestern-yearly-forecast

Example: report-career

inputobjectRequired

That capability's request body, exactly as for POST /v1/{family}/{capability}.

brandingobject | nullOptional

Optional branding. Without it the PDF is plain.

Default: null

branding.brand_namestring | nullOptional

Printed on the cover and in the running head.

Default: null

Limits: at most 60 characters

Example: Shree Jyotish Kendra

branding.accentstring | nullOptional

Hex colour for headings and rules, e.g. #1f4fd1. Must reach 4.5:1 contrast against white.

Default: null

Example: #1f4fd1

branding.logostring | nullOptional

data:image/png;base64,... or data:image/svg+xml;base64,..., at most 200 KB. SVG is sanitised.

Default: null

Limits: at most 300000 characters

branding.footer_notestring | nullOptional

Printed at the foot of every page.

Default: null

Limits: at most 200 characters

Example: Consultations: jyotish.example

branding.company_infostring | nullOptional

A line about your business, printed on the cover.

Default: null

Limits: at most 300 characters

branding.websitestring | nullOptional

Your website, printed on the cover.

Default: null

Limits: at most 200 characters

branding.emailstring | nullOptional

Your email address, printed on the cover.

Default: null

Limits: at most 120 characters

branding.phonestring | nullOptional

Your phone number, printed on the cover.

Default: null

Limits: at most 40 characters

chart_stylestringOptional

How the birth chart is drawn in the PDF.

Default: north

Allowed values: northsoutheast

readingobject | nullOptional

For a palm or face capability: the `data` of a reading you already have, so the PDF needs no photo. Send `input` as {}.

Default: null

languagestringOptional

Document language: the report and the PDF's own words. See the languages guide.

Default: en

Allowed values: enhimrbngutatemlknpaurneorassifresptdeitnlpltrrukoja

formatstringOptional

File format. `html`: a standalone web page; `markdown`: a .md file. Both carry the full report text, tables and branding (no logo, no chart drawings) and cost the same as the PDF.

Default: pdf

Allowed values: pdfhtmlmarkdown

depthstringOptional

`full`: the whole report. `short`: a summary edition cut from the same result (each list's first 3 items, each long passage's first paragraph, deep detail left out; summaries and cautions kept whole). Nothing is rewritten. Same price.

Default: full

Allowed values: fullshort

Example request

Example response

202application/json
{
  "data": {
    "id": "2c863278-518b-407e-8234-0ba0f824404c",
    "object": "job",
    "kind": "pdf",
    "capability": "report-career",
    "status": "queued",
    "attempts": 0,
    "credits": 130,
    "created_at": "2026-10-14T06:58:59.069427Z",
    "started_at": null,
    "finished_at": null,
    "error": null,
    "download_url": null,
    "download_expires_at": null,
    "file_expires_at": null
  },
  "meta": {
    "request_id": "req_84c3f093ee178943738c",
    "api_version": "v1",
    "credits_reserved": 130,
    "warnings": []
  }
}

The example job of the jobs guide; ids, times and the token differ on every job.

Error responses

  • 400invalid_request
  • 401invalid_key, expired_key
  • 402payment_required
  • 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
  • 409idempotency_conflict
  • 413payload_too_large
  • 422invalid_request, unsupported_language
  • 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
  • 500computation_failed

Errors are never charged. What each status means and what to do: errors.

Narrate a report as audio

POST

https://api.96astroapi.com/v1/jobs/audio

Queues a spoken MP3 of any report capability, in any of the 26 languages. The response is 202 with the job. Poll GET /v1/jobs/{job_id} until status is succeeded, then download download_url. Sandbox keys get a one-minute narration, free.

Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The body is JSON.

Idempotency-KeyOptional<unique string>

Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters)

Body · application/json
FieldDescription
capabilitystringRequired

A report capability id, e.g. report-career. Its own credits are charged too.

Allowed values:
65 valuesbnn-graha-phalachildren-timingclassical-kundli-reportdetailed-lifelal-kitab-predictionlifetime-malefic-transitslongevity-analysismatching-reportpersonal-characteristicsprediction-bhaveshprediction-classicsprediction-dashaprediction-gemprediction-life-reportprediction-lucky-infoprediction-nakshatra-interpprediction-natureprediction-physicalprediction-planetary-dispositionsreport-all-signs-compatibilityreport-attractionreport-bhagyareport-big-threereport-careerreport-chart-blueprintreport-child-personalityreport-childrenreport-complete-kundlireport-dhan-yogreport-educationreport-five-yearreport-foreign-travelreport-healthreport-karmic-partnershipreport-karz-muktireport-lal-kitab-kundlireport-marriagereport-numerologyreport-past-lifereport-politicsreport-propertyreport-relocationreport-romancereport-solar-returnreport-spiritualreport-star-sign-compatibilityreport-transit-forecastreport-varshaphalreport-wealthreport-western-five-yearsynastry-fullsynastry-predictionsvastu-reportwestern-ascendant-reportwestern-detailed-reportwestern-house-readingswestern-karma-reportwestern-life-forecastwestern-node-reportwestern-personality-reportwestern-planet-readingswestern-romantic-forecastwestern-romantic-personalitywestern-transit-calendarwestern-yearly-forecast

Example: report-career

inputobjectRequired

That capability's request body, exactly as for POST /v1/{family}/{capability}.

languagestringOptional

Language of the narration. Any engine language, plus `hinglish` (Hindi-English in Roman letters), `hu`, `ro`, `el` and `zh`.

Default: en

Allowed values:
31 valuesenasbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrurhinglishhuroelzh

Example: hi

minutesintegerOptional

About how long the narration should be. You are charged for the minutes you ask for.

Default: 5

Limits: minimum 1, maximum 30

Example: 5

tonestringOptional

The narration style: warm, calm, formal, friendly, storyteller, roast, pandit, genz, coach, mystic, news or bestie.

Default: warm

Allowed values: warmcalmformalfriendlystorytellerroastpanditgenzcoachmysticnewsbestie

Example: warm

voicestringOptional

The narrator, or in a dialogue the astrologer. Women: meera, tara, isha, anaya, priya, sara, naina, lila, zoya. Men: arjun, dev, kabir, rohan, vikram, neel, ravi, aditya, omkar.

Default: meera

Allowed values: meerataraishaanayapriyasaranainalilazoyaarjundevkabirrohanvikramneelraviadityaomkar

Example: meera

formatstringOptional

`monologue`: one narrator. `dialogue`: a two-voice podcast, a host asking and the astrologer answering.

Default: monologue

Allowed values: monologuedialogue

Example: monologue

second_voicestring | nullOptional

Dialogue only: the host's voice. Default: a voice of the other gender from `voice`.

Default: null

Allowed values: meerataraishaanayapriyasaranainalilazoyaarjundevkabirrohanvikramneelraviadityaomkar

musicbooleanOptional

A soft ambient music bed under the voice, with a short music-only intro and outro.

Default: false

Example: false

listener_namestring | nullOptional

Used to greet and address the listener.

Default: null

Limits: at most 120 characters

Example: Asha

partner_namestring | nullOptional

For a compatibility report: the partner's name, used alongside `listener_name`.

Default: null

Limits: at most 120 characters

Example request

Example response

202application/json
{
  "data": {
    "id": "2c863278-518b-407e-8234-0ba0f824404c",
    "object": "job",
    "kind": "audio",
    "capability": "report-career",
    "status": "queued",
    "attempts": 0,
    "credits": 2010,
    "created_at": "2026-10-14T06:58:59.069427Z",
    "started_at": null,
    "finished_at": null,
    "error": null,
    "download_url": null,
    "download_expires_at": null,
    "file_expires_at": null
  },
  "meta": {
    "request_id": "req_84c3f093ee178943738c",
    "api_version": "v1",
    "credits_reserved": 2010,
    "warnings": []
  }
}

The example job of the jobs guide; ids, times and the token differ on every job.

Error responses

  • 400invalid_request
  • 401invalid_key, expired_key
  • 402payment_required
  • 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
  • 409idempotency_conflict
  • 413payload_too_large
  • 422invalid_request, unsupported_language
  • 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
  • 500computation_failed

Errors are never charged. What each status means and what to do: errors.

Poll a job

GET

https://api.96astroapi.com/v1/jobs/{job_id}

The job's status, timestamps, error and, once it succeeded, a signed download URL. Only the organisation and environment (sandbox or live) that created a job can see it. Free.

Credits
Free: polling is never charged
Rate limit
1 unit per poll; poll every few seconds with backoff, or use a webhook
Status
queued → running → succeeded or failed; expired once the file is deleted
Visible to
Keys of the organization and environment (sandbox or live) that created the job
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Path parameters
ParameterDescription
job_idstringRequired

The job's id, from the 202 answer of POST /v1/jobs/pdf (also in its Location header).

Limits: format uuid

Example: 2c863278-518b-407e-8234-0ba0f824404c

Example request

Example response

200application/json
{
  "data": {
    "id": "2c863278-518b-407e-8234-0ba0f824404c",
    "object": "job",
    "kind": "pdf",
    "capability": "report-career",
    "status": "succeeded",
    "attempts": 1,
    "credits": 130,
    "created_at": "2026-10-14T06:58:59.069427Z",
    "started_at": "2026-10-14T06:59:01.112040Z",
    "finished_at": "2026-10-14T06:59:09.874120Z",
    "error": null,
    "download_url": "https://api.96astroapi.com/v1/files/LIYyeFGLQH6CNAug-CRATAAAAABq0IgA.NynSAx6dDFQT8zUxIyAB2hbRNyymB7qVvTKYY1gdP-Y",
    "download_expires_at": "2026-10-15T08:00:00Z",
    "file_expires_at": "2026-10-21T06:59:09.874120Z"
  },
  "meta": {
    "request_id": "req_1f7a0c93b2d84e6a5c19",
    "api_version": "v1",
    "credits_used": 0,
    "warnings": []
  }
}

The example job of the jobs guide; ids, times and the token differ on every job.

Error responses

  • 401invalid_key, expired_key
  • 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
  • 404not_found
  • 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded

Errors are never charged. What each status means and what to do: errors.

Download a file

GETNo API key

https://api.96astroapi.com/v1/files/{token}

Streams the PDF (or the HTML or Markdown report, by the job's format) or MP3 for a signed token from download_url. Needs no API key. Free.

Credits
Free
Auth
None: the signed token is the credential
Link
Valid 24 hours (download_expires_at); after that 410 link_expired: poll the job for a fresh link
File
Kept 7 days (file_expires_at); after that 410 file_expired: create a new job

Headers

None. Send no Authorization header: the signed token in the URL is the credential, so the link can be handed to an end user's browser.

Path parameters
ParameterDescription
tokenstringRequired

The signed token at the end of the job's download_url. Call download_url exactly as given; it expires at download_expires_at.

Example: LIYyeFGLQH6CNAug-CRATAAAAABq0IgA.NynSAx6dDFQT8zUxIyAB2hbRNyymB7qVvTKYY1gdP-Y

Example request

Example response

200application/pdf
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="report-career-2c863278.pdf"
Cache-Control: private, no-store

%PDF-1.7 … (the file's bytes)

The body is the PDF itself; the headers are shown here.

Error responses

  • 404not_found
  • 410link_expired, file_expired

Errors are never charged. What each status means and what to do: errors.

Send us feedback

What is it about?