Create User
Compliance notice: both email_id and phone_number must be user-owned and actively verified before submission. The frontend is responsible for collecting and verifying these contact details before calling this API. Acceptable verification methods include OTP, magic link/confirmation link, OAuth-based verification, trusted third-party identity/KYC providers, and SIM/carrier-based phone verification where applicable. Dummy, temporary, or unverified values are not accepted. Requests with unverified data may be rejected and may trigger compliance flags or API access restrictions.
curl -X POST "https://sandbox-api.aparatech.io/v1/public/users/individual" \
-H "Content-Type: application/json" \
-H "MID: example_string" \
-d '{
"name": "John Doe",
"email": "user@example.com",
"phone": "81234567890",
"phoneCode": "+62"
}'
import requests
import json
url = "https://sandbox-api.aparatech.io/v1/public/users/individual"
headers = {
"Content-Type": "application/json",
"MID": "example_string"
}
data = {
"name": "John Doe",
"email": "user@example.com",
"phone": "81234567890",
"phoneCode": "+62"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://sandbox-api.aparatech.io/v1/public/users/individual", {
method: "POST",
headers: {
"Content-Type": "application/json",
"MID": "example_string"
},
body: JSON.stringify({
"name": "John Doe",
"email": "user@example.com",
"phone": "81234567890",
"phoneCode": "+62"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"name": "John Doe",
"email": "user@example.com",
"phone": "81234567890",
"phoneCode": "+62"
}`)
req, err := http.NewRequest("POST", "https://sandbox-api.aparatech.io/v1/public/users/individual", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("MID", "example_string")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox-api.aparatech.io/v1/public/users/individual')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['MID'] = 'example_string'
request.body = '{
"name": "John Doe",
"email": "user@example.com",
"phone": "81234567890",
"phoneCode": "+62"
}'
response = http.request(request)
puts response.body
{
"status": "success",
"data": {
"userId": "OCUX-17774643027532317"
}
}
/v1/public/users/individual
Target server for requests. Edit to use your own host.
The media type of the request body
Merchant ID for authentication.
Full name of the user.
Email address of the user.
Phone number of the user.
Country calling code (e.g. +62).
Request Preview
Response
Response will appear here after sending the request
Headers
Merchant ID for authentication.