AMAstroMool DEVELOPERS
Dashboard

Reference

Errors, and how to fix them

Errors are RFC 9457 problem details (application/problem+json). Match on code - it never changes. detail is written for people and may be reworded. Quote request_id when you write to us.

Keys and plans 10

key_missing401

No X-API-Key header, or the value does not look like an AstroMool key.

Fix: Send the key in the X-API-Key header. Keys start with am_live_, am_test_ or am_pub_.

key_invalid401

The key does not exist or was revoked.

Fix: Create a new key in the dashboard. Revoked keys stop working within 30 seconds.

domain_not_allowed403

A widget key (am_pub_) was used from a page whose Origin/Referer is not one of its domains.

Fix: Add the domain to the key in the dashboard, or call from the server with an am_live_ key.

ip_not_allowed403

The key has an IP allowlist and the request came from another address.

Fix: Add the address to the key's allowlist in the dashboard, or call from an allowed server.

key_not_for_browser403

An am_live_ key was sent from a web browser, where anyone viewing the page can copy it.

Fix: Use a widget key (am_pub_, locked to your domains) in browsers; keep live keys on your server and revoke one that was exposed.

full_detail_only403

The calculator has no short answer - its answer is the full text - and the plan is below Growth. Nothing is charged.

Fix: Use a calculator whose input.basic_output is true (GET /v1/calculators), or move to Growth or above.

detail_not_in_plan403

detail=full was asked for on a plan below Growth.

Fix: Use detail=basic, or move to Growth or above.

rate_limited429

More requests in one minute than the plan allows. retry_after (body) and the Retry-After header give the seconds to wait; X-RateLimit-Limit / -Remaining / -Reset come with every keyed response.

Fix: Wait retry_after seconds. Spread bursts, or move to a bigger plan.

quota_exceeded429

The key's monthly units are used up (months follow the Indian calendar, IST).

Fix: Upgrade, or wait for the 1st. Test keys have no monthly quota.

secret_key_required403

A widget key (am_pub_) tried to change account settings.

Fix: Use an am_live_ or am_test_ key from your server.

Input 22

invalid_request422

The JSON body or a query value failed validation. errors[] lists each field with its message.

Fix: Fix the fields named in errors[].

bad_date422

date could not be read.

Fix: Use YYYY-MM-DD (1995-08-14) or DD-MM-YYYY (14-08-1995).

bad_time422

time could not be read or is out of range.

Fix: Use 24-hour HH:MM[:SS] (14:30) or h:mm AM/PM (2:30 PM).

bad_tz_id422

tz_id is not an IANA time zone name.

Fix: Use a name like Asia/Kolkata. /v1/geo/search returns it for a place.

bad_utc_offset422

utc_offset is not in +HH:MM form or is beyond +/-14:00.

Fix: Send e.g. +05:30, or better send tz_id.

timezone_required422

Neither tz_id nor utc_offset was sent. The API never assumes +05:30.

Fix: Send tz_id (preferred: handles DST and historical offsets) or utc_offset.

bad_ayanamsa422

ayanamsa is not one of the supported ids.

Fix: GET /v1/meta/ayanamsas lists them; lahiri is the default.

bad_node422

node is not mean or true.

Fix: Send node=mean (default) or node=true.

unknown_calculator404

The slug in /v1/calculators/{slug} or /v1/reports/{slug} does not exist.

Fix: GET /v1/calculators lists every slug.

unknown_chart404

The divisional chart in /v1/vedic/divisional/{chart} does not exist.

Fix: Use D1, D2, D3, D4, D7, D9, D10, D12, D16, D20, D24, D27, D30, D40, D45 or D60.

unknown_dosha404

The dosha in /v1/dosha/{name} does not exist.

Fix: The message lists the names; /v1/dosha/summary runs them all.

unknown_remedy404

The remedy in /v1/remedies/{name} does not exist.

Fix: Use gemstone, rudraksha, lal-kitab or lucky.

bad_batch_item422

A /v1/batch item points to /v1/batch, /v1/files or outside /v1.

Fix: List only /v1 endpoints; batches cannot nest.

bad_house_system422

house_system is not one of the supported systems.

Fix: Use placidus, koch, equal, whole_sign, porphyry, regiomontanus or campanus.

place_required422

Neither lat/lon nor a place name was sent.

Fix: Send lat and lon (with tz_id), or place with a place name.

place_not_found422

The place name matched nothing in the places database.

Fix: Try the English spelling, add the state or country, or send lat, lon and tz_id.

partner_required422

A matching calculator was called without partner.

Fix: Send partner with the same fields as person (for matching: person = groom, partner = bride).

unknown_param422

params has a key no calculator uses.

Fix: Remove it; the message lists the allowed params.

bad_param422

params.year, params.month or params.date is out of range or not a date.

Fix: year 1900-2100, month 1-12, date YYYY-MM-DD.

calculator_rejected_input422

The calculator itself refused the input (the message says why, e.g. a number out of range).

Fix: Correct the input named in the message.

bad_idempotency_key422

Idempotency-Key is longer than 100 characters or not printable.

Fix: Use up to 100 printable characters, unique per report.

bad_webhook_url422

webhook_url is not https, does not resolve, or points to a private address.

Fix: Use a public https:// URL you control.

Reports 9

idempotency_conflict409

The Idempotency-Key was already used for a report with different input.

Fix: Use a new key for a new report. The same key with the same input returns the first report.

report_limit429

The key created its plan's number of reports for today (IST).

Fix: Try tomorrow or upgrade.

branding_not_set422

branding white_label was asked for, but this account has no saved brand.

Fix: PUT /v1/reports/branding (or the portal's Branding page) once, then order the report again.

wallet_insufficient402

The plan's included reports for this month are used and the wallet cannot pay for this one.

Fix: Top up the wallet in the dashboard (Billing), or move to a plan with more included reports.

queue_unavailable503

The report queue was briefly unavailable; the order was cancelled and not charged.

Fix: Retry after the Retry-After seconds.

report_not_found404

No report with that id belongs to this key.

Fix: Use the report_id returned when you created it, with the same key.

report_gone410

Report files are deleted after 7 days.

Fix: Create the report again.

Server 3

internal_error500

Something failed on our side. It is logged with the request_id.

Fix: Retry. If it repeats, send us the request_id.

calculator_failed502

The calculation did not complete.

Fix: Retry. If it repeats, send us the request_id.

ephemeris_unavailable503

Swiss Ephemeris data is not available for the date (supported 1200-2400 AD). Nothing is ever computed with a lower-precision fallback.

Fix: Use a date inside 1200-2400 AD.

Dashboard 31

owner_only403

Only the account owner can change the team or pay for plans.

Fix: Ask the owner of the account.

already_in_team409

That email already has an AstroMool developer account.

Fix: One email belongs to one account. Use another email, or ask that person to close the other account.

member_not_found404

No such member or invite in your team.

Fix: Reload the Team page.

bad_ip422

An allowlist entry is not an IP address or CIDR range.

Fix: Use entries like 203.0.113.7 or 203.0.113.0/24 (max 20).

subscriptions_not_ready409

Automatic monthly payment is not switched on yet.

Fix: Pay for 30 days on the Plans page.

already_subscribed409

The account already pays automatically.

Fix: Cancel the current automatic payment on the Billing page first.

google_unavailable503

Google sign-in is not configured on this server.

Fix: Sign in with the email code.

csrf403

A dashboard request came without the dashboard header or from another site.

Fix: Use the dashboard page itself.

not_signed_in401

The dashboard session ended.

Fix: Sign in again with your email.

invite_only403

The email has no invite during the private beta.

Fix: Ask for an invite at [email protected].

bad_code401

The sign-in code is wrong or older than 10 minutes.

Fix: Ask for a new code.

too_many_attempts429

Too many sign-in codes or attempts in a short time.

Fix: Wait a few minutes.

mail_unavailable503

The sign-in email could not be sent.

Fix: Try again later.

domains_required422

A widget key was created without a domain.

Fix: Give at least one domain, e.g. example.com.

too_many_keys422

The account already has 20 active keys.

Fix: Revoke an unused key first.

key_not_found404

No active key with that id in your account.

Fix: Refresh the key list.

bad_plan422

The plan cannot be bought.

Fix: Choose starter, growth, pro or business.

payment_unavailable502

Razorpay did not answer when the payment was started.

Fix: Try again in a minute.

payment_not_verified400

The payment signature, ids, order or amount did not verify. The plan was not changed.

Fix: If money was taken, write to us with the payment id.

payment_pending409

Razorpay has not yet reported the payment as captured.

Fix: Nothing to do: the plan switches on by itself when Razorpay confirms, usually within minutes.

order_not_found404

The payment's order does not belong to the signed-in account.

Fix: Sign in with the account that started the payment.

webhook_not_configured503

Razorpay webhook received while no webhook secret is set (operator setting).

Fix: Operator: set the secret.

bad_signature400

A Razorpay webhook whose signature did not verify.

Fix: Razorpay and the server must share the same secret.

bad_json400

A signed Razorpay webhook whose body was not JSON.

Fix: None needed from users.

oauth_invalid_request400

A connection request from an AI app did not check out (unknown app, address it did not register, missing PKCE), or no usable key was chosen.

Fix: Start the connection again from the AI app and choose an active test or live key.

oauth_grant_not_found404

No active AI-app connection with that id in your account.

Fix: Reload the API keys page.

demo_unknown404

The landing-page playground was asked for an operation it does not offer.

Fix: Use chart, panchang, match, dasha or numerology there - or call any operation with a free test key.

too_large413

A playground request was larger than 8 KB.

Fix: Send a smaller request, or call the API with a test key.

invalid_json400

A playground request body was not a JSON object.

Fix: Send a JSON object.

demo_unavailable503

The playground is resting (its key is not set up on this server).

Fix: Create a free test key in the dashboard and call the API directly.

demo_limit429

More playground calls than it allows: 30 computed calls an hour for each visitor (place lookups 120), 5,000 a day in all.

Fix: Create a free test key in the dashboard to keep going.

Generated from the API's own error table (workers/amapi/error_catalog.py), so this page lists exactly the codes the API can return.