Introduction
The p3p API is a public HTTP/JSON interface to the p3p cross chain exchange. It lets you:
- Fetch supported chains, tokens and live market rates
- Quote and execute swaps across multiple aggregated liquidity sources
- Accept payments as a merchant via invoices, with funds settled directly to your wallet
p3p is non custodial: the API never holds user funds beyond the few seconds needed to route a swap, and you never need to share private keys or perform KYC.
Base URL
https://api.p3p.xyzAuthentication model
p3p has two distinct user types with different authentication requirements.
Developers
Developers building applications that execute swaps programmatically (fetching chains, tokens, rates, creating exchanges) must include a valid api-key header on every request.
api-key: your_api_key_here| Use case | What you need |
|---|---|
| Fetch chains, tokens, rates | api-key header |
| Quote a swap | api-key header |
| Execute a swap | api-key header |
| Earn revenue share on swaps | Authenticate with your partner api-key (from the dashboard) — fee is applied automatically |
To get an API key, contact us on Telegram.
Merchants
Merchants accept crypto payments via invoices. No API key required — your wallet address is your identity.
| Use case | What you need |
|---|---|
| Create an invoice | Your wallet address as wallet_merchant in the body |
| View your invoices / earnings | Your wallet address in the partner endpoints URL |
No signup. No tokens. Just use your wallet. See the Merchants guide.
Response format
Every endpoint returns JSON.
Success:
{ "id": "ex_...", "status": "waiting", "...": "..." }Error:
{ "error": "wallet_to_invalid", "message": "wallet_to has invalid address: ..." }Rate limits
If you receive HTTP 429, slow down or contact us to lift the limit for your project.