Skip to content
Get started

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:

Shell
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

TestLive
Key prefixlp_test_lp_live_
ChainsPublic testnets (Sepolia, BSC Testnet, Amoy, Nile, Bitcoin/Litecoin testnet, Solana Devnet, TON Testnet)Mainnets
livemodefalsetrue
AvailabilityAlways, for every accountAfter 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.

Recommended for live keys
Pin live keys to your servers' egress IPs. If a key leaks, it's useless from anywhere else.

Unauthenticated endpoints

GET /v1/status is public and returns {"ok": true, "message": "OK", "time": "…"} — useful for health checks.