Profiles play a central role, acting as the core for wallets, addresses, and transactions. When integrating a user into your system for blockchain interaction, having a wallet is key.
Profiles establish a direct link between your system's users and their corresponding wallets in ours. Creating a profile involves sending the user type and a reference, such as a UUID or email. This reference is necessary for tasks like generating addresses and handling transactions.
Everything starts with creating profile
Here are routes for profile management.
Create a profile
Make sure that you created an API Key from our dashboard, to start creating a profile
This operation creates a profile
POSThttps://sandbox.oumla.com/api/v1/profiles
Headers
Request Body
Sample code of the request:
asyncfunctioncreateProfile(reference:string, type:string) {constapiKey="Your API Key";consturl="https://sandbox.oumla.com/api/v1/profiles";constdata=JSON.stringify({ reference, type });constresponse=awaitfetch(url, { method:"POST", headers: {"Content-Type":"application/json","x-api-key": apiKey, }, body: data, });constresponseData=awaitresponse.json();console.log(responseData);}// Example usagecreateProfile("dba1fea5-2004-4ea8-a06d-a7c7c5559b8f","User");