Guides
Quickstart
1. Get a credential
Sign in to the customer portal and open API. You need one of these (see Authentication):
- your account's live key (
rp_…), shown once when the account is made or the key is rotated (Delivery → Rotate key), or - a named API key (
rpk_…) made under API → API keys: best for an integration, because you can limit it to the data it needs and revoke it on its own, or - the sandbox key (
rpsb_…) to try things against the delayed public sample.
Keep keys on your server. Never put a live or named key in a web page or a mobile app bundle.
2. Set two variables
The API lives under /api/v1 on your RiskPilot address: the same origin as the customer portal (the portal's API
page shows a ready-made curl command with it).
Code
3. List the newest ACTION signals
The answer is one page of signals:
Code
With the sandbox key the same call answers from the delayed sample and adds "sandbox": true and "delayHours": 24.
4. Open one signal and its company
Code
A signal or company outside your package answers 404, exactly as if it did not exist.
5. Get new signals without polling
- Webhooks: RiskPilot POSTs each new signal to your HTTPS endpoint, signed.
- Live stream: keep a WebSocket open and receive each new signal within about a second.
What can go wrong
| You get | Because | Do |
|---|---|---|
401 | The key is wrong, revoked or rotated | Check the key; make a new one |
402 | The subscription does not allow access now (code says why) | Open Billing in the portal |
403 key_scope | A named key without the scope this route needs | Add the scope (make a new key) or use another key |
403 sandbox_read_only | The sandbox key on a route other than signals | Use a live or named key |
429 | Per-minute limit or a quota | Wait Retry-After seconds |
All errors and limits: Quotas, limits and errors.
Last modified on