Create an account
curl --request POST \
--url https://api.validate.al/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "••••••••"
}
'import requests
url = "https://api.validate.al/v1/auth/register"
payload = {
"email": "user@example.com",
"password": "••••••••"
}
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: 'user@example.com', password: '••••••••'})
};
fetch('https://api.validate.al/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.validate.al/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' => 'user@example.com',
'password' => '••••••••'
]),
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.validate.al/v1/auth/register"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"password\": \"••••••••\"\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.validate.al/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"password\": \"••••••••\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.validate.al/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\": \"user@example.com\",\n \"password\": \"••••••••\"\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"verification_required": true,
"message": "Check your email to confirm your address."
}{
"detail": "<string>"
}{
"detail": "<string>"
}Account
Create an account
Registers a new account with email and password and emails a confirmation link (valid 24 hours, single use). The account can’t sign in, and its API key doesn’t work, until the address is confirmed. Registering again before confirming replaces the password and sends a new link.
POST
/
auth
/
register
Create an account
curl --request POST \
--url https://api.validate.al/v1/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "••••••••"
}
'import requests
url = "https://api.validate.al/v1/auth/register"
payload = {
"email": "user@example.com",
"password": "••••••••"
}
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: 'user@example.com', password: '••••••••'})
};
fetch('https://api.validate.al/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.validate.al/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' => 'user@example.com',
'password' => '••••••••'
]),
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.validate.al/v1/auth/register"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"password\": \"••••••••\"\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.validate.al/v1/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"password\": \"••••••••\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.validate.al/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\": \"user@example.com\",\n \"password\": \"••••••••\"\n}"
response = http.request(request)
puts response.read_body{
"email": "<string>",
"verification_required": true,
"message": "Check your email to confirm your address."
}{
"detail": "<string>"
}{
"detail": "<string>"
}Body
application/json