Skip to content

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.xyz

Authentication 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.

http
api-key: your_api_key_here
Use caseWhat you need
Fetch chains, tokens, ratesapi-key header
Quote a swapapi-key header
Execute a swapapi-key header
Earn revenue share on swapsAuthenticate 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 caseWhat you need
Create an invoiceYour wallet address as wallet_merchant in the body
View your invoices / earningsYour 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:

json
{ "id": "ex_...", "status": "waiting", "...": "..." }

Error:

json
{ "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.

Where to next