curl --request POST \
--url https://api.humanos.tech/agents/register-challengeimport requests
url = "https://api.humanos.tech/agents/register-challenge"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.humanos.tech/agents/register-challenge', 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.humanos.tech/agents/register-challenge",
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://api.humanos.tech/agents/register-challenge"
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://api.humanos.tech/agents/register-challenge")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humanos.tech/agents/register-challenge")
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_body{
"regNonce": "k3Jd0Q7bXm2sVQ8hZ1pYt4Rc",
"exp": 1767225600000,
"ttl": 60,
"aud": "did:web:humanos.tech"
}Start Registration
Issue a single-use, short-lived nonce the agent must embed in its registration evidence, and aud, the platform DID
The key being registered signs both in its proof, so a captured attestation cannot be replayed to bind a key the attacker never controlled
The nonce is bound to your organization: it cannot be spent registering an agent elsewhere
curl --request POST \
--url https://api.humanos.tech/agents/register-challengeimport requests
url = "https://api.humanos.tech/agents/register-challenge"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.humanos.tech/agents/register-challenge', 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.humanos.tech/agents/register-challenge",
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://api.humanos.tech/agents/register-challenge"
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://api.humanos.tech/agents/register-challenge")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.humanos.tech/agents/register-challenge")
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_body{
"regNonce": "k3Jd0Q7bXm2sVQ8hZ1pYt4Rc",
"exp": 1767225600000,
"ttl": 60,
"aud": "did:web:humanos.tech"
}Headers
Pin request, response, and webhook shapes to a specific dated API version (YYYY-MM-DD). Omit to use the version pinned to your API key (set when the key is created; new keys default to the latest version). New integrations should target the latest version.
^\d{4}-\d{2}-\d{2}$"2026-10-16"
Response
Returns the single-use nonce, its expiry and the audience the proof must name.
Single-use nonce the registration evidence must embed.
"k3Jd0Q7bXm2sVQ8hZ1pYt4Rc"
Absolute expiry, epoch milliseconds.
1767225600000
Freshness window in seconds.
60
The platform's DID: the aud a registration proof names. The key being registered signs a via-reg+jwt over this and the nonce (v0.3 §16.5).
"did:web:humanos.tech"