API
API overview
The Pierflow API is a JSON, HTTPS-only, REST surface — one canonical interface across every HMO, provider, and partner in the network.
Base URLs#
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.api.pierflow.com/v1/ |
| Production | https://api.pierflow.com/v1/ |
Conventions#
A handful of platform-wide rules apply to every endpoint. Internalise these once and the rest of the API behaves predictably.
- All requests and responses are JSON.
- Timestamps are ISO-8601 in UTC (e.g.
2026-06-01T09:30:00Z). - Money is in minor units of the currency (kobo for NGN).
- Writes are idempotent — set
Idempotency-Keyon every POST. - AI fields (e.g.
fraud_score) are stable across versions. - Errors return a structured body with
type,code, andrequest_id.
Example request#
Authenticate with a bearer token and call any endpoint.
bash
bashcurl https://sandbox.api.pierflow.com/v1/plans?budget_ngn=120000 \
-H "Authorization: Bearer $PIERFLOW_KEY"