Getting Started
The Lega Pay API allows you to programmatically create payment links, process payouts, create crypto payments, check balances, and retrieve transaction history. All API requests require an API key and must be made over HTTPS.
Base URL
https://legapay.net/api/v1Public Docs (share this link)
https://legapay.net/docsQuick Start
- 1
Get your API key
Dashboard → Developers → Generate API Key. Key starts with
lp_live_ - 2
Enable API permissions
In Developers → Permissions, enable Payins, Payouts, Crypto Payins as needed
- 3
Make your first API call
Use the
X-API-Keyheader. No TOTP/2FA needed for API calls.
Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/payin | Create fiat payment link |
| POST | /api/v1/payout | Process fiat payout (no TOTP needed) |
| POST | /api/v1/crypto/payin | Create crypto payment (USDT, BTC, ETH, SOL, USDC) |
| POST | /api/v1/crypto/payout | Request crypto payout to wallet |
| GET | /api/v1/balance | Check fiat + crypto balance |
| GET | /api/v1/transactions | List recent transactions |