Register Account
curl --request POST \
--url https://auth.contra.id/v1/programmatic/registerimport requests
url = "https://auth.contra.id/v1/programmatic/register"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://auth.contra.id/v1/programmatic/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://auth.contra.id/v1/programmatic/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.contra.id/v1/programmatic/register"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://auth.contra.id/v1/programmatic/register")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.contra.id/v1/programmatic/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAuth API (Programmatic)
Register Account
Self-serve developer signup — any email works. Returns immediately, OTP arrives by email.
POST
/
v1
/
programmatic
/
register
Register Account
curl --request POST \
--url https://auth.contra.id/v1/programmatic/registerimport requests
url = "https://auth.contra.id/v1/programmatic/register"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://auth.contra.id/v1/programmatic/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://auth.contra.id/v1/programmatic/register",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.contra.id/v1/programmatic/register"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://auth.contra.id/v1/programmatic/register")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.contra.id/v1/programmatic/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyRequest
curl -X POST https://auth.contra.id/v1/programmatic/register \
-H "Content-Type: application/json" \
-d '{
"email": "you@yourco.com",
"password": "MyStr0ng!Pass"
}'
| Body | Type | Required | Description |
|---|---|---|---|
email | string | yes | Any email address. |
password | string | yes | Min 8 chars · 1 upper · 1 lower · 1 digit · 1 special. |
Response · 201
{
"message": "Registration successful — check your email for the OTP.",
"email": "you@yourco.com"
}
⌘I