SDK Documentation
Official SDKs and client libraries for integrating Truxe into your applications.
SDKs Coming Soon
We're currently developing official SDKs for JavaScript/TypeScript, Python, Go, and more. Join the waitlist to be notified when they're ready.
Join WaitlistPlanned SDKs
@truxe/js
Universal JavaScript SDK for Node.js, browser, and edge runtimes with full TypeScript support.
In Development
@truxe/react
React component library with 16+ pre-built components for authentication, users, and organizations.
In Development
truxe-python
Python SDK for backend applications with async/await support and type hints.
Planned
truxe-go
Go SDK optimized for high-performance backend services and microservices.
Planned
Current API Usage
While SDKs are in development, you can use the REST API directly:
Example: Magic Link Authentication
// Send magic link
const response = await fetch('https://api.truxe.io/auth/magic-link', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: '[email protected]' })
});
// Verify token from magic link
const { accessToken, refreshToken } = await response.json();
// Use access token for authenticated requests
const userResponse = await fetch('https://api.truxe.io/auth/me', {
headers: { 'Authorization': `Bearer ${accessToken}` }
});
const user = await userResponse.json();
console.log(user);