Register new account
curl --request POST \
--url https://faisalshop.mvp-apps.ae/api/v2/admin/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"email": "john@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}
'import requests
url = "https://faisalshop.mvp-apps.ae/api/v2/admin/register"
payload = {
"name": "John Doe",
"email": "john@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John Doe',
email: 'john@example.com',
password: '<string>',
password_confirmation: '<string>'
})
};
fetch('https://faisalshop.mvp-apps.ae/api/v2/admin/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://faisalshop.mvp-apps.ae/api/v2/admin/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'John Doe',
'email' => 'john@example.com',
'password' => '<string>',
'password_confirmation' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://faisalshop.mvp-apps.ae/api/v2/admin/register"
payload := strings.NewReader("{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://faisalshop.mvp-apps.ae/api/v2/admin/register")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://faisalshop.mvp-apps.ae/api/v2/admin/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"token": "<string>",
"user": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com",
"user_type": "<string>",
"is_active": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"errors": {}
}Authentication
Register Account
POST
/
api
/
v2
/
admin
/
register
Register new account
curl --request POST \
--url https://faisalshop.mvp-apps.ae/api/v2/admin/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"email": "john@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}
'import requests
url = "https://faisalshop.mvp-apps.ae/api/v2/admin/register"
payload = {
"name": "John Doe",
"email": "john@example.com",
"password": "<string>",
"password_confirmation": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John Doe',
email: 'john@example.com',
password: '<string>',
password_confirmation: '<string>'
})
};
fetch('https://faisalshop.mvp-apps.ae/api/v2/admin/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://faisalshop.mvp-apps.ae/api/v2/admin/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'John Doe',
'email' => 'john@example.com',
'password' => '<string>',
'password_confirmation' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://faisalshop.mvp-apps.ae/api/v2/admin/register"
payload := strings.NewReader("{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://faisalshop.mvp-apps.ae/api/v2/admin/register")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://faisalshop.mvp-apps.ae/api/v2/admin/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"token": "<string>",
"user": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com",
"user_type": "<string>",
"is_active": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"errors": {}
}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": "john@example.com",
"password": "securepassword123",
"password_confirmation": "securepassword123"
}'
await axios.post(
'/api/v2/admin/register',
{
name: 'John Doe',
email: 'john@example.com',
password: 'securepassword123',
password_confirmation: 'securepassword123'
}
);
Next Steps
After registration:- Login to receive your authentication token
- Create a new tenant or get invited to existing ones
- Start managing your e-commerce platform
⌘I