Getting started
Make your first call with a test key. It takes about five minutes and no real cover is issued.
Before you startlink
You need:
- A merchant dashboard account with a business. Set up your business walks through it.
- A test API key (
sk_test_...), created on the merchant dashboard under API Keys.
1. Authenticatelink
Send your key in the x-api-key header, as <keyId>:<secret>:
x-api-key: sk_test_REPLACE_ME:<secret>A missing, unknown, inactive or wrong key is 401. The key id prefix picks the environment: sk_test_ for test, sk_live_ for live.
2. Make your first calllink
List the product types the platform files products under:
export INSURETECH_API_KEY='sk_test_...:...'
curl https://insure-api.netapps.ng/api/v1/taxonomy \
-H "x-api-key: $INSURETECH_API_KEY"Then list the products your business may sell:
curl "https://insure-api.netapps.ng/api/v1/products?limit=5" \
-H "x-api-key: $INSURETECH_API_KEY"An empty items list means no product is available to your business in this environment yet. Ask NetApps InsureTech support which product types your business is set up for.
3. Check the headerslink
Every response carries:
| Header | Use it for |
|---|---|
X-Request-Id | Quoting a call to support. Send your own, such as your order number, and it is echoed back. |
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | Pacing your calls. Over the budget you get 429 with Retry-After. |
4. Send a writelink
Every write takes an Idempotency-Key: a UUIDv4 you generate for that one request. Send the same key again after a network error and the write still happens once.
curl -X POST https://insure-api.netapps.ng/api/v1/quotes \
-H "x-api-key: $INSURETECH_API_KEY" \
-H "Idempotency-Key: $(uuidgen | tr 'A-Z' 'a-z')" \
-H "Content-Type: application/json" \
-d @quote.jsonPrice a quote shows what goes in quote.json.
Use Postmanlink
You can import this API into Postman instead:
- Choose Import and paste
https://insure-api.netapps.ng/api/v1/openapi.json. - Under View Import Settings, set Folder organization to Tags, Parameter generation to Example, and turn Enable optional parameters off.
- Create an environment with
baseUrlset tohttps://insure-api.netapps.ng/api/v1andapiKeyset to your key as a secret variable. - On every write, replace the example
Idempotency-Keywith{{$guid}}, so Postman sends a fresh UUID each time.
Next stepslink
- End-to-end integration takes you from here to a live sale.
- Conventions lists the rules every call follows.