Create API credentials in the Paxos Dashboard and export them as environment variables.
If you don’t have a Sandbox account, sign up here.
Create a file called
index.ts with the following code. This example creates a client, lists your profiles, and prints the result.import { PaxosClient } from "@paxos/sdk";
const client = new PaxosClient({
clientId: process.env.PAXOS_CLIENT_ID!,
clientSecret: process.env.PAXOS_CLIENT_SECRET!,
sandbox: true,
});
async function main() {
// List profiles
for await (const profile of client.profiles.listProfiles({ limit: 10 })) {
console.log(`Profile: ${profile.id} (${profile.nickname})`);
}
}
main().catch(console.error);
Next Steps
- Learn how the SDK manages Authentication automatically
- Explore Error Handling patterns
- Set up the Sandbox environment for testing
- Browse the Transfers service reference