# Postman collections and OpenAPI

> Download the Postman collections for the client API and the reseller API, and the OpenAPI file to generate code.
> Page: https://rh7proxys.com/en/docs/postman · Index: https://rh7proxys.com/llms.txt

With the collections, you can test every route in Postman (or in Insomnia and Bruno) without writing code.

## Download

| Collection | File |
|---|---|
| Client API (`rh7k_` key) | [rh7-api-cliente.postman_collection.json](https://rh7proxys.com/docs/postman/cliente.json) |
| Reseller API (`rh7_` key) | [rh7-api-revenda.postman_collection.json](https://rh7proxys.com/docs/postman/revenda.json) |

## How to use

1. In Postman, click **Import** and choose the downloaded file.
2. Open the collection and go to the **Variables** tab.
3. Replace `rh7k_REPLACE_ME` (client) or `rh7_REPLACE_ME` (reseller) with your key.
4. Fill in `subuserId` with the id of the proxy or customer you will test.
5. Choose a route and click **Send**.

The purchase routes already send a new `Idempotency-Key` on each request, generated by Postman itself.

Careful: with a key that has the **Purchases** permission (client) or `billing:write` (reseller), the purchase routes create real orders. The Pix is only charged if someone pays, but the order shows up in your history.

## Explorer inside the panel

When you are logged in, the panel has an explorer for the client API: choose the proxy, fill in the fields and see the response right away, with ready-made code in curl, JavaScript and Python. It is under **API**, in the panel menu. There you can also download the collection with your key already filled in.

## OpenAPI

The OpenAPI file for the reseller API and the end customer API is at:

```text
https://api.rh7proxys.com/openapi.json
```

Use it with code generators (openapi-generator, Orval, Kiota) or import it into Postman. The visual version is at [api.rh7proxys.com/docs](https://api.rh7proxys.com/docs).
