Two Ways to Use Oumla
Oumla provides two ways to interact with the API:TypeScript SDK
REST API
Understanding the Oumla Model
Before diving in, it’s helpful to understand how Oumla organizes resources:Profile
Wallet
Address
Prerequisites
Before you begin, make sure you have:Create an Account
Get Your API Key
All API requests require authentication via the
x-api-key header. See the Authentication guide for details.Choose Your Integration Method
Option 1: Use the TypeScript SDK (Recommended)
The SDK provides a type-safe, easy-to-use interface:Option 2: Use Direct REST API Calls
Make HTTP requests directly to our API endpoints:Make Your First API Call
Let’s create a user profile - the foundation for wallets and transactions:Expected Response
Expected Response
Complete Workflow Example
Here’s a complete example using the SDK that creates a profile, generates an address (which auto-creates a wallet), and checks the balance:Profile Types
Oumla supports three profile types:- User: Individual users in your system
- Department: Organizational units or departments
- Merchant: Business entities or merchants
reference field should be a unique identifier within your system.