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
Full control over invoice creation and status orchestration.
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.