Authentication
Authenticate every API request with a secret key. The key decides the mode — test or live — so the same code runs in both.
Secret keys
Send your key as a Bearer token:
curl https://lipacoin.io/api/v1/balances \
-H "Authorization: Bearer lp_test_..."An X-API-Key: lp_test_... header is also accepted for clients that can't set Authorization. Missing or unknown keys return 401 with error type unauthorized.
Keys are stored only as a SHA-256 hash; the full value is shown once when you create it. Revoke a key from the dashboard and it stops working immediately.
Test mode vs live mode
| Test | Live | |
|---|---|---|
| Key prefix | lp_test_ | lp_live_ |
| Chains | Public testnets (Sepolia, BSC Testnet, Amoy, Nile, Bitcoin/Litecoin testnet, Solana Devnet, TON Testnet) | Mainnets |
| livemode | false | true |
| Availability | Always, for every account | After business verification |
Test and live data never mix: payments, balances, webhooks endpoints and idempotency keys are all scoped to the key's mode. A live key on an account that isn't yet enabled for live mode returns 403 forbidden.
IP allowlists
Each key can be restricted to a list of IP addresses in the dashboard. Requests from any other address are rejected with 403 and the message IP <address> not allowed for this key. Leave the list empty to allow all IPs.
Unauthenticated endpoints
GET /v1/status is public and returns {"ok": true, "message": "OK", "time": "…"} — useful for health checks.