The Client Apps API uses OIDC Connect to permit your users to link your application to their accounts.
The following scopes can be requested at authentication time:
|Required scopes (always include these)
|Offline access (Learn More)
|List wallets added by your app
|Add wallets from your app
|Read settings for automatic withdrawals
|Create and manage automatic withdrawals
|Read settings for savings plans
|Create and manage savings plans
|Read transaction information
|Query available payment methods
|Create and manage payment methods
|List LN withdrawals
|Create LN withdrawals
Offline Access and token TTL
Requesting offline access will return back a refresh token that can be used to receive a new access token.
This can be used for apps such as desktop wallets, which may need to periodically submit new addresses for withdrawal to Swan and require to be able to connect to Swan over a longer period of time.
TTL of access tokens are set to 1 hour.
Getting Access Keys for your Client App
Integrations need to be whitelisted on our side. We provide a set of keys valid
for development (
api.dev.swanbitcoin.com) environment and for production
Contact firstname.lastname@example.org to set up your sandbox account.