Embedded Wallets
How to
Account Operation
Create Rampable Account

Create Rampable Account

API Documentation: Create Rampable Account

Overview

This API endpoint allows you to create a new Rampable account for a particular account

  • HTTP Method: POST
  • Endpoint: /api/<VERSION>/account/rampable/create

Request Body Parameters

  • username (required): The username of the user.
  • fullName (required): The full name of the user.
  • password (required): The password of the user.

Example Request Body

{
    "username": "johndoe",
    "fullName": "John Doe",
    "password": "JohnDoe123",
}

Request

Request Headers

  • Authorization (required): JWT token which was generated when user login.
  • x-client-secret (required): Client secret which was generated when register in Xellar Embedded Wallet API Service Dashboard.

Example Request Syntax

curl -X POST -H "Content-Type: application/json" -H "x-client-secret: $YOUR_CLIENT_SECRET" -H "Authorization: Bearer $YOUR_ACCESS_TOKEN" -d '{
    "username": "johndoe",
    "fullName": "John Doe",
    "password": "JohnDoe123",
}' <BASE_URL>/api/<VERSION>/account/rampable/create

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message providing additional information about the operation.
  • data (object): An object containing the user access token, secret0, secret0Link & wallet address.
    • rampableAccessToken : JWT token used to access the Rampable Operation endpoint.

Example Response

V1/V2

{
    "status": 200,
    "message": "Create wallet successfully",
    "data": {
        "rampableAccessToken": "your_rampable_access_token_here"
    }
}