API reference
Register New User

Register a new User

Request

  • Path: /users/register_new_user
  • Method type: POST
  • Headers: Authorization: Bearer <token>, Content-Type: application/json

Params

  • name: Name of the user.
  • app_id: App ID for the user on Avail.

Example request

curl -X POST "https://api.example.com/users/register_new_user" \
     -H "Authorization: Bearer YOUR_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
           "name": "John Doe",
           "app_id": 1001
         }'

Example Response:

{
  "id": "1",
  "name": "John Doe",
  "email": "john@example.com",
  "app_id": 1001,
  "assigned_wallet": "0x123abc456def789ghi"
}