Register a new user
curl --request POST \
--url https://api.paylora.org/api/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "test@email.com",
"password": "qwerty123A!"
}
'import requests
url = "https://api.paylora.org/api/v1/auth/register"
payload = {
"email": "test@email.com",
"password": "qwerty123A!"
}
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({email: 'test@email.com', password: 'qwerty123A!'})
};
fetch('https://api.paylora.org/api/v1/auth/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://api.paylora.org/api/v1/auth/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([
'email' => 'test@email.com',
'password' => 'qwerty123A!'
]),
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://api.paylora.org/api/v1/auth/register"
payload := strings.NewReader("{\n \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\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://api.paylora.org/api/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paylora.org/api/v1/auth/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 \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"user_uuid": "<string>",
"email": "<string>",
"telegram_id": "<string>",
"tg_name": "<string>",
"status": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"role": "<string>",
"wallet": "0xDeF456...",
"fee_bps": "0xDeF456..."
}
}{
"statusCode": 400,
"message": [
"[value] is not valid"
]
}{
"statusCode": 401,
"message": "Invalid signature | jwt must be provided"
}{
"statusCode": 403,
"message": "Only [admin, customer] has access"
}{
"statusCode": 404,
"message": "Resource Not Found"
}{
"statusCode": 409,
"message": "Resource with unique value (email, name etc) already exist"
}{
"statusCode": 429,
"message": "Too Many Requests"
}{
"statusCode": 500,
"message": "Sever error message"
}Auth
Register a new user
Api for registration. Should confirm email
POST
/
api
/
v1
/
auth
/
register
Register a new user
curl --request POST \
--url https://api.paylora.org/api/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "test@email.com",
"password": "qwerty123A!"
}
'import requests
url = "https://api.paylora.org/api/v1/auth/register"
payload = {
"email": "test@email.com",
"password": "qwerty123A!"
}
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({email: 'test@email.com', password: 'qwerty123A!'})
};
fetch('https://api.paylora.org/api/v1/auth/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://api.paylora.org/api/v1/auth/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([
'email' => 'test@email.com',
'password' => 'qwerty123A!'
]),
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://api.paylora.org/api/v1/auth/register"
payload := strings.NewReader("{\n \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\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://api.paylora.org/api/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paylora.org/api/v1/auth/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 \"email\": \"test@email.com\",\n \"password\": \"qwerty123A!\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"user_uuid": "<string>",
"email": "<string>",
"telegram_id": "<string>",
"tg_name": "<string>",
"status": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"role": "<string>",
"wallet": "0xDeF456...",
"fee_bps": "0xDeF456..."
}
}{
"statusCode": 400,
"message": [
"[value] is not valid"
]
}{
"statusCode": 401,
"message": "Invalid signature | jwt must be provided"
}{
"statusCode": 403,
"message": "Only [admin, customer] has access"
}{
"statusCode": 404,
"message": "Resource Not Found"
}{
"statusCode": 409,
"message": "Resource with unique value (email, name etc) already exist"
}{
"statusCode": 429,
"message": "Too Many Requests"
}{
"statusCode": 500,
"message": "Sever error message"
}⌘I

