Skip to main content
The Developer API is the API-key guarded REST surface behind Swig’s hosted wallet, transaction, paymaster, identity, and ramp runtime APIs. Use it when you want to call Swig’s backend directly instead of using the Developer SDK helpers.

API shape

Swig’s backend services are defined as protobuf services and exposed over REST through gRPC JSON transcoding. The REST paths in this section come from the backend google.api.http annotations.
curl "https://api.onswig.com/paymaster/balance?network=devnet" \
  -H "Authorization: Bearer sk_your_api_key"

Start here

Authentication

API keys, JSON encoding, and request conventions

Transactions

Prepare wallet creation, transfers, swaps, and recovery transactions

Wallets

Lookup Swigs and inspect balances, roles, policies, and token history

Paymaster

Sign, sponsor, and check paymaster balances

Identity

Identity provider login, OTP, passkeys, invites, and role operations

Ramp

Quote ramp flows, create sessions, and read ramp transaction state

API groups

GroupUse it for
Transaction APIPreparing unsigned or partially signed Solana transactions for Swig wallet flows
Wallet APIReading Swig wallet state, policies, balances, roles, and token history
Paymaster APISigning or sponsoring transactions and checking paymaster balances
Identity APIStarting login flows, OTP/passkey flows, invites, and role operations
Ramp APICreating fiat ramp quotes, sessions, and transaction-history views

SDK or API

Use the Developer SDK when you want higher-level helpers for server routes, transaction preparation, client signing, and sponsored submission. Use this Developer API section when you need exact REST paths, payloads, and response shapes.

Shared reference