cURL
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \
-H "Content-Type: application/json" \
-d '{
"email": "you@yourdomain.com",
"password": "MyStr0ng!Pass"
}'import requests
resp = requests.post(
"https://apx.didit.me/auth/v2/programmatic/register/",
json={
"email": "you@yourdomain.com",
"password": "MyStr0ng!Pass",
},
timeout=10,
)
resp.raise_for_status()
print(resp.json())
# {'message': 'Registration successful...', 'email': 'you@yourdomain.com'}const resp = await fetch(
"https://apx.didit.me/auth/v2/programmatic/register/",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
email: "you@yourdomain.com",
password: "MyStr0ng!Pass",
}),
},
);
if (!resp.ok) throw new Error(`Register failed: ${resp.status}`);
const data = await resp.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apx.didit.me/auth/v2/programmatic/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' => 'you@yourdomain.com',
'password' => 'MyStr0ng!Pass'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://apx.didit.me/auth/v2/programmatic/register/"
payload := strings.NewReader("{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://apx.didit.me/auth/v2/programmatic/register/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apx.didit.me/auth/v2/programmatic/register/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Registration successful. Check your email for the verification code.",
"email": "you@yourdomain.com"
}Auth API (Programmatic)
Register Account
Step 1 of programmatic onboarding. Creates a pending account and emails a 6-char code (10 min TTL). Rate limit: 5/IP/hour.
POST
/
programmatic
/
register
/
cURL
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \
-H "Content-Type: application/json" \
-d '{
"email": "you@yourdomain.com",
"password": "MyStr0ng!Pass"
}'import requests
resp = requests.post(
"https://apx.didit.me/auth/v2/programmatic/register/",
json={
"email": "you@yourdomain.com",
"password": "MyStr0ng!Pass",
},
timeout=10,
)
resp.raise_for_status()
print(resp.json())
# {'message': 'Registration successful...', 'email': 'you@yourdomain.com'}const resp = await fetch(
"https://apx.didit.me/auth/v2/programmatic/register/",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
email: "you@yourdomain.com",
password: "MyStr0ng!Pass",
}),
},
);
if (!resp.ok) throw new Error(`Register failed: ${resp.status}`);
const data = await resp.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apx.didit.me/auth/v2/programmatic/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' => 'you@yourdomain.com',
'password' => 'MyStr0ng!Pass'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://apx.didit.me/auth/v2/programmatic/register/"
payload := strings.NewReader("{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://apx.didit.me/auth/v2/programmatic/register/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apx.didit.me/auth/v2/programmatic/register/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"you@yourdomain.com\",\n \"password\": \"MyStr0ng!Pass\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Registration successful. Check your email for the verification code.",
"email": "you@yourdomain.com"
}Authorizations
Body
application/json
Any valid email address (personal, work, alias). Used as the unique account identifier.
Example:
"you@yourdomain.com"
Minimum 8 characters. Must contain at least one uppercase letter (A-Z), one lowercase letter (a-z), one digit (0-9), and one special character from !@#$%^&*()_+-=[]{}|;:,.<>?. Validation reports one failed rule at a time.
Minimum string length:
8Example:
"MyStr0ng!Pass"
Response
Registration successful. A 6-character alphanumeric verification code (e.g., A3K9F2) was emailed to the supplied address and is valid for 10 minutes. Call POST /programmatic/verify-email/ next.