Skip to main content
POST
/
api
/
v2
/
admin
/
register
Register new account
curl --request POST \
  --url https://faisalshop.mvp-apps.ae/api/v2/admin/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "email": "[email protected]",
  "password": "<string>",
  "password_confirmation": "<string>"
}
'
{
  "token": "<string>",
  "user": {
    "id": 123,
    "name": "<string>",
    "email": "[email protected]",
    "user_type": "<string>",
    "is_active": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Overview

Create a new user account. After registration, you can create or join tenants.

No Authentication Required

This is a public endpoint - no Bearer token needed.

Password Requirements

  • Minimum 8 characters
  • Consider using strong passwords with mixed characters

Example Usage

curl -X POST \
  https://faisalshop.mvp-apps.ae/api/v2/admin/register \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "John Doe",
    "email": "[email protected]",
    "password": "securepassword123",
    "password_confirmation": "securepassword123"
  }'
await axios.post(
  '/api/v2/admin/register',
  {
    name: 'John Doe',
    email: '[email protected]',
    password: 'securepassword123',
    password_confirmation: 'securepassword123'
  }
);

Next Steps

After registration:
  1. Login to receive your authentication token
  2. Create a new tenant or get invited to existing ones
  3. Start managing your e-commerce platform

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"John Doe"

email
string<email>
required
password
string<password>
required
Minimum string length: 8
password_confirmation
string<password>
required

Response

Account created successfully

token
string
user
object