Documentation Index
Fetch the complete documentation index at: https://docs.swiftpay.finance/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart for API integrations
This guide is for developers integrating with the SwiftPay API.Choose your integration path
Before coding, decide your implementation model:REST API — Invoices
Full control over invoice creation and status orchestration.
x402 — Per-request payments
Protect any API endpoint with HTTP 402. Callers pay per request with USDC.
Hosted Checkout
Redirect-based payment flow managed by SwiftPay. (coming soon)
Embedded iFrame
In-app payment surface. (coming soon)
1) Get your API keys from cockpit.swiftpay.finance
- Open the app at
https://cockpit.swiftpay.financeand create/sign in to your account. - Go to Settings (
/settings). - In the API Keys section, copy:
- Secret key (
sk_live_...) for server-side API calls. - Publishable key (
pk_live_...) for checkout/session flows.
- Secret key (
- Use Rotate if you need to regenerate keys (the old secret key becomes invalid).
2) Authenticate requests
SwiftPay uses a custom API key header:sk_live_... for server-side invoice and reporting operations.
Use pk_live_... for checkout/session flows.