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/v1

Public Docs (share this link)

https://legapay.net/docs

Quick Start

  1. 1

    Get your API key

    Dashboard → Developers → Generate API Key. Key starts with lp_live_

  2. 2

    Enable API permissions

    In Developers → Permissions, enable Payins, Payouts, Crypto Payins as needed

  3. 3

    Make your first API call

    Use the X-API-Key header. No TOTP/2FA needed for API calls.

Available Endpoints

MethodEndpointDescription
POST/api/v1/payinCreate fiat payment link
POST/api/v1/payoutProcess fiat payout (no TOTP needed)
POST/api/v1/crypto/payinCreate crypto payment (USDT, BTC, ETH, SOL, USDC)
POST/api/v1/crypto/payoutRequest crypto payout to wallet
GET/api/v1/balanceCheck fiat + crypto balance
GET/api/v1/transactionsList recent transactions