# Postman collection for the AstroNode API

> Import one file and every endpoint is a click away: grouped by area, authenticated with your key from a single collection variable, and filled with the same sample request the playground sends. The file is rebuilt from the OpenAPI spec on every deploy.

Source: https://astronode.dev/tools/postman-collection · Updated: 2026-12-04

The interactive tool runs in the browser at https://astronode.dev/tools/postman-collection; this file is its explanation.

## Import and run in three steps

- In Postman choose **Import** and drop in `astronode.postman_collection.json`.
- Open the collection's **Variables** tab and set `apiKey` to your `aie_test_*` key. `baseUrl` is already `https://api.astronode.dev`.
- Open any request and **Send**. Auth is inherited from the collection, so no request carries a key of its own.

## What is inside

*Collection contents*

| Part | Source |
| --- | --- |
| 121 requests in 22 folders | Every operation in `specs/api.openapi.json`, one folder per tag (the untagged `GET /v1/openapi.json` sits in Other) |
| Request bodies | The playground's sample for 100 POST routes, the docs sample for 8, and for `POST /v1/reports/deluxe` the required fields with the spec's examples |
| Path variables | `:sign`, `:year` and the like, pre-filled with the playground's values (Leo, 1993, …) |
| Query parameters | Listed but disabled, with their allowed values, e.g. `language` = en or hi on the horoscope routes |
| Descriptions | The operation's summary and description, its method and path, and the minimum plan where the playground records one |
| Auth | Collection-level Bearer token `{{apiKey}}` |

The chat API (`/v1/chat/*`, `/v1/conversations`) runs on a separate host with its own spec and is not in this file. Recorded example responses are not attached either; see each endpoint page or the [response JSON explorer](https://astronode.dev/tools/response-json-explorer).

## How it is built and checked

A build script converts the OpenAPI document into Collection v2.1 format and commits the result; CI fails when the spec changes without the collection being regenerated. The file was validated against Postman's official v2.1.0 collection JSON Schema with no errors. If you prefer to generate your own, the spec is public at `https://api.astronode.dev/v1/openapi.json` - see the [typed client guide](https://astronode.dev/guides/openapi-typed-client).

## Common mistakes

- **Putting a live key in a shared workspace.** A variable's initial value syncs to everyone in the workspace; type keys into the current value, which stays on your machine, and keep `aie_live_*` keys out of shared collections.
- **Running the whole collection in the Runner on a small plan.** 121 calls count against your quota and rate limit, and routes above your plan answer 403 `PLAN_REQUIRED`. Plan first with the [rate-limit planner](https://astronode.dev/tools/rate-limit-planner).
- **Re-sending a request with an `Idempotency-Key` header and a changed body.** The API answers [409 `IDEMPOTENCY_KEY_REUSED`](https://astronode.dev/docs/errors/idempotency-key-reused). The collection sets no such header; if you add one, use a new value per request.
- **Editing the imported copy and re-importing.** The collection keeps a fixed id, so a newer download replaces the old one - and your edits. Fork it in Postman first.

## FAQ

**Is the collection free to use?**

Yes. Calls made with it count against your API key's plan like any other request.

**How do I update to a newer version?**

Download again and import. The file keeps the same collection id, so Postman offers to replace the existing copy.

**Does it work with Insomnia or Bruno?**

Both can import Postman v2.1 collections. Bearer auth and variables carry over; check the `{{baseUrl}}` variable after import.

## Related endpoints

- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - Birth Chart (Kundli) API
- [`GET /v1/horoscope/daily/:sign`](https://astronode.dev/capabilities/western/horoscope-daily-sign) - Daily Sun Sign Horoscope API
- [`POST /v1/kp/horary`](https://astronode.dev/capabilities/kp/kp-horary) - KP Horary (Prashna 1-249) API
- [`POST /v1/reports/compatibility`](https://astronode.dev/capabilities/reports/reports-compatibility) - Compatibility Report (Async) API
