> For the complete documentation index, see [llms.txt](https://docs.ipdunar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipdunar.com/api-reference/postman.md).

# Postman collection

We publish a maintained Postman collection covering every endpoint in this API reference, plus sample proxy requests for the three live products.

## Import

### From URL

In Postman: **Import → Link**, paste:

```
https://api.ipdunar.com/v1/postman/collection.json
```

The collection updates on every API release. Re-import to refresh.

### From file

Download once, then drag-drop into Postman:

```bash
curl -H "Authorization: Bearer API_KEY" \
     https://api.ipdunar.com/v1/postman/collection.json \
     -o ipdunar.postman_collection.json
```

The collection is also shipped with this docs repository at [`assets/ipdunar.postman_collection.json`](https://github.com/teokunsuper/ipdunar-docs/blob/main/assets/ipdunar.postman_collection.json) along with a starter environment [`assets/ipdunar-prod.postman_environment.json`](https://github.com/teokunsuper/ipdunar-docs/blob/main/assets/ipdunar-prod.postman_environment.json) — import both for an out-of-box setup.

## What's included

```
ipdunar/
├── 0 — Welcome
├── 1 — Auth check (GET /users/me)
├── 2 — Sub-users
│   ├── List
│   ├── Create
│   ├── Get
│   ├── Update
│   ├── Rotate password
│   └── Delete
├── 3 — Orders
│   ├── Create residential
│   ├── Create mobile
│   └── Create ISP batch
├── 4 — ISP batches
│   ├── List
│   ├── Download IPs (plain / csv / json)
│   ├── Replace IP
│   ├── Refresh batch
│   └── Renew
├── 5 — Subscriptions
├── 6 — Traffic & reports
├── 7 — Whitelists
├── 8 — Sessions
└── 9 — Proxy gateway samples
    ├── Residential — basic
    ├── Residential — city + session
    ├── Mobile — ASN-pinned
    └── ISP — single IP
```

## Environment

The collection ships with two environments to import:

* **ipdunar-prod** — production endpoints
* **ipdunar-test** — sandbox (coming soon)

Variables you fill in:

| Variable       | Value                                          |
| -------------- | ---------------------------------------------- |
| `api_key`      | Your API token                                 |
| `subuser_name` | e.g. `s1a2b3c4d5e`                             |
| `subuser_pass` | Sub-user password                              |
| `isp_ip`       | One IP from your ISP batch (for proxy samples) |

## Run via Newman (CI)

```bash
newman run ipdunar.postman_collection.json \
       --environment ipdunar-prod.postman_environment.json \
       --env-var "api_key=$IPDUNAR_API_KEY" \
       --folder "1 — Auth check"
```

Useful for smoke-testing your account from CI after credential rotation.

## OpenAPI

If your tools prefer OpenAPI, the same surface is available at:

```
https://api.ipdunar.com/v1/openapi.json
```

Compatible with Swagger UI, Redoc, Stoplight, and most code generators.

## Versioning

Both `collection.json` and `openapi.json` follow the same `/v1` versioning as the API itself. We publish a new spec **major version** when breaking changes ship; older versions remain importable at `/v0/...`, `/v1/...`, etc.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ipdunar.com/api-reference/postman.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
