Public API
Postman and Bruno collections
The collections hold every route of the Public API, grouped by area, with descriptions, query parameters, sample bodies and saved responses. A pre-request script signs each request (X-Api-Key, X-Timestamp, X-Signature), so you only set your key and secret once. Both are generated from the OpenAPI file of the API, so they always match the routes described here.
Download
Postman takes two files: the collection, and an environment with the variables it uses. Bruno takes one file with the environment inside.
Import into Postman
In Postman choose Import, then paste a link (or drop the downloaded files). Do it for the collection and for the environment.
Importing a newer version replaces the old collection: it keeps the same id. Your keys stay in the environment and are not touched.
Links to paste into Import
https://docs.rpcnode.dev/postman/rpcnode-public-api.postman_collection.json
https://docs.rpcnode.dev/postman/rpcnode-public-api.postman_environment.jsonSet the environment
Select the environment "RpcNode Public API" in the top right corner of Postman and fill in its variables. Keep the secret in the environment (type secret), not in the collection, so it does not travel when you share the collection.
| Name | Type | Description |
|---|---|---|
| apiKey | string | The id of the API key: the UUID from API keys in the cabinet. |
| apiSecret | secret | The sk_live_… secret, shown once when the key is created. |
| baseUrl | string | https://api.rpcnode.dev/v1 by default. Change it only for a local backend (http://127.0.0.1:3003/v1). (optional) |
Bruno
Download rpcnode-public-api.bruno.yml, then in Bruno choose Import collection, pick the file and a folder to keep the collection in.
Select the environment "RpcNode Public API" and fill in apiKey and apiSecret. apiSecret is a secret variable: Bruno keeps its value out of the files of the collection, so it does not get into git.
The folders, the signing and the test of every request are the same as in Postman. To update, delete the old collection in Bruno and import the new file.
How signing works
Before every request the collection takes the current Unix time, the method, the path with its query as it is sent, and the SHA-256 of the body, and signs them with your secret, exactly as described in Authentication. It adds X-Api-Key, X-Timestamp and X-Signature itself: do not add them by hand.
Change a query parameter or the body freely: the signature is made again for every send. A request older than 300 seconds is refused, so keep the clock of your computer right.
Without apiKey or apiSecret the request is not sent: Postman shows the error of the script and names the missing variable.
What is inside
A folder per area: Account, Networks, Address Watch, Tx Watch, Webhooks, Realtime, Payments, AML, Endpoints. Each request has the description of its route and the fields of its body.
Ids in paths (watchId, paymentId, orderId, uuid, slug) are collection variables: set them once, or replace {{…}} in the URL. Optional query parameters are listed but switched off; switch on the ones you need.
Bodies are filled with working samples (the example of the route, or its required fields). A test on every request checks "ok": true and shows error_code when the API refuses.
Kept up to date
Both collections are made from openapi.yaml with every release of the docs, and a build stops when they differ from it. A new route or field appears here with the release that adds it; import the collection again to get it.
Tips
- Use a separate API key for Postman or Bruno and delete it in the cabinet when you no longer need it.
- AML checks and payments made from a collection are real: an AML check takes credits of your plan.
- JSON-RPC calls go to the endpoint URL from GET /v1/endpoints, not to api.rpcnode.dev: they are not part of this collection.
- Postman and Bruno send requests from your computer: the rate limits of the API apply to them as to any client.