Identity-only register
curl --request POST \
--url https://imbawallet.com/auth/v1/agent/register \
--header 'Content-Type: application/json' \
--data '
{
"public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----",
"email": "agent-otp@example.com"
}
'import requests
url = "https://imbawallet.com/auth/v1/agent/register"
payload = {
"public_key": "-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEA...
-----END PUBLIC KEY-----",
"email": "agent-otp@example.com"
}
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({
public_key: '-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----',
email: 'agent-otp@example.com'
})
};
fetch('https://imbawallet.com/auth/v1/agent/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://imbawallet.com/auth/v1/agent/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([
'public_key' => '-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEA...
-----END PUBLIC KEY-----',
'email' => 'agent-otp@example.com'
]),
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://imbawallet.com/auth/v1/agent/register"
payload := strings.NewReader("{\n \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\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://imbawallet.com/auth/v1/agent/register")
.header("Content-Type", "application/json")
.body("{\n \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://imbawallet.com/auth/v1/agent/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 \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "<string>",
"kid": "<string>",
"hmac_secret": "<string>",
"email": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}Auth
Identity-only register
Creates an agent account and Ed25519 credential. Does not assign a TRON address and does not credit USDT.
Optional email is the 3-D Secure mailbox (not SMS, not cardholder KYC).
HMAC plaintext is returned once if callback_url is accepted.
Repeat register does not return the secret.
Caution medium or Agent API disabled → 503.
POST
/
auth
/
v1
/
agent
/
register
Identity-only register
curl --request POST \
--url https://imbawallet.com/auth/v1/agent/register \
--header 'Content-Type: application/json' \
--data '
{
"public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----",
"email": "agent-otp@example.com"
}
'import requests
url = "https://imbawallet.com/auth/v1/agent/register"
payload = {
"public_key": "-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEA...
-----END PUBLIC KEY-----",
"email": "agent-otp@example.com"
}
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({
public_key: '-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----',
email: 'agent-otp@example.com'
})
};
fetch('https://imbawallet.com/auth/v1/agent/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://imbawallet.com/auth/v1/agent/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([
'public_key' => '-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEA...
-----END PUBLIC KEY-----',
'email' => 'agent-otp@example.com'
]),
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://imbawallet.com/auth/v1/agent/register"
payload := strings.NewReader("{\n \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\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://imbawallet.com/auth/v1/agent/register")
.header("Content-Type", "application/json")
.body("{\n \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://imbawallet.com/auth/v1/agent/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 \"public_key\": \"-----BEGIN PUBLIC KEY-----\\nMCowBQYDK2VwAyEA...\\n-----END PUBLIC KEY-----\",\n \"email\": \"agent-otp@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"client_id": "<string>",
"kid": "<string>",
"hmac_secret": "<string>",
"email": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}{
"error": "not_allowed",
"message": "<string>"
}Body
application/json
⌘I