Authentication
Authenticate Swipelux API requests with server-side credentials.
Authenticate each Swipelux API request with a server-side credential. Most integrations send either a static secret API key or a short-lived API access token in the X-API-Key header. Keep credentials on your server and out of browser code, mobile apps, screenshots, and public repositories.
Static API Keys
Static keys created in the dashboard are environment-scoped, for example sk.live.* or sk.sbx.*. The full key is shown only once when it is created, so store it in your backend secrets manager before leaving the screen.
Short-lived API Tokens
Some dashboard credentials include a token endpoint. When you create one, store the credential values and first access token in your backend secrets manager. Access tokens are short-lived, so request a fresh token before calling the API.
Send the returned access token on Swipelux API requests. X-API-Key works for public API requests; endpoints that document bearer authentication can also accept the same access token in the Authorization: Bearer header.
API Key Permissions
Dashboard-created static keys and token credentials can be scoped to specific API permissions. Select the permissions your backend needs when you create the credential. Existing legacy static keys and unscoped credentials keep full access for their environment.
If a scoped key or token calls an endpoint without the required permission, the API returns 403 with a message like API key is missing required permission: payins:write.
| Area | Permission labels |
|---|---|
| Customers | customers:read, customers:write, customers:delete |
| Wallets and balances | wallets:read, wallets:write, wallets:delete, balances:read |
| Accounts and rails | accounts:read, accounts:write, accounts:delete, rails:read, rails:write |
| Documents and KYB | documents:read, documents:write, documents:delete, kyb:read, kyb:write |
| Recipients | recipients:read, recipients:write, recipients:delete |
| Pay-ins | payins:read, payins:write, payins:quote |
| Payouts | payouts:read, payouts:write, payouts:quote |
| Transfers | transfers:read, transfers:write |
| Platform | webhooks:read, webhooks:write, rates:read, spec:read, merchant-settings:read, merchant-settings:write |
Older credentials or internal tools may still show wi:-prefixed permission claims. Swipelux accepts those legacy claims for compatibility, but new keys and access tokens should use the unprefixed labels above.
The dashboard may show additional test-environment utility permissions for non-production tools.
Server-side Boundary
Use https://platform.swipelux.com for every public example in these docs.
For exact authentication behavior, open the API reference.