Register New Platform User Account
curl --request POST \
--url https://api.example.com/api/identity/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"password": "SecurePassword2026!",
"full_name": "Ahmad Dahlan"
}
'import requests
url = "https://api.example.com/api/identity/register"
payload = {
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"password": "SecurePassword2026!",
"full_name": "Ahmad Dahlan"
}
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({
username: 'ahmad.dahlan',
email: 'ahmad.dahlan@telkom.co.id',
password: 'SecurePassword2026!',
full_name: 'Ahmad Dahlan'
})
};
fetch('https://api.example.com/api/identity/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.example.com/api/identity/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([
'username' => 'ahmad.dahlan',
'email' => 'ahmad.dahlan@telkom.co.id',
'password' => 'SecurePassword2026!',
'full_name' => 'Ahmad Dahlan'
]),
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.example.com/api/identity/register"
payload := strings.NewReader("{\n \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\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.example.com/api/identity/register")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/identity/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 \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\n}"
response = http.request(request)
puts response.read_body{
"id": "usr_018f3a55-1111",
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"message": "User registered successfully"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authentication
Register New Platform User Account
Overview
Provisions a new user in the system.
Authentication & Headers
- Auth: Configured tenant registration policy
- Required Header:
API-Version: 1
Parameters & Request Body
username(string, required): Unique handle for login.email(string, required): Valid corporate email address.password(string, required): Strong password (min 8 chars, uppercase, digits).full_name(string, optional): User display name.
POST
/
api
/
identity
/
register
Register New Platform User Account
curl --request POST \
--url https://api.example.com/api/identity/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"password": "SecurePassword2026!",
"full_name": "Ahmad Dahlan"
}
'import requests
url = "https://api.example.com/api/identity/register"
payload = {
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"password": "SecurePassword2026!",
"full_name": "Ahmad Dahlan"
}
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({
username: 'ahmad.dahlan',
email: 'ahmad.dahlan@telkom.co.id',
password: 'SecurePassword2026!',
full_name: 'Ahmad Dahlan'
})
};
fetch('https://api.example.com/api/identity/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.example.com/api/identity/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([
'username' => 'ahmad.dahlan',
'email' => 'ahmad.dahlan@telkom.co.id',
'password' => 'SecurePassword2026!',
'full_name' => 'Ahmad Dahlan'
]),
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.example.com/api/identity/register"
payload := strings.NewReader("{\n \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\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.example.com/api/identity/register")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/identity/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 \"username\": \"ahmad.dahlan\",\n \"email\": \"ahmad.dahlan@telkom.co.id\",\n \"password\": \"SecurePassword2026!\",\n \"full_name\": \"Ahmad Dahlan\"\n}"
response = http.request(request)
puts response.read_body{
"id": "usr_018f3a55-1111",
"username": "ahmad.dahlan",
"email": "ahmad.dahlan@telkom.co.id",
"message": "User registered successfully"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}