Create User

The "Create User" endpoints allows for creation of a Xerial user in the xerial database in order to be able to create a wallet.

Overview

Endpoint

  • Method: POST

  • URL: /user

Body

Optional

{
   "reference": "xerial@example.io"
}
  • Field: Authorization

  • Value: Bearer + (Access token)

Responses

Success (Code 200)

{
    "refrence": "xerial@example.com", 
     "id": "5ebac534954b54139806c112",
     "project": "6601f93s3ff2ea0348edeb6a",
}
  • Media Type: application/json

  • Example Value: An object containing the all information about the user.

Usage

  1. Send a POST request to the /user endpoint to create a new user.

  2. Handle the response accordingly based on success, unauthorized access or internal server error.

Note: Ensure the user is authenticated before making the request.

Last updated