Skip to main content
POST
/
auth
/
agent-identity
Create agent identity
curl --request POST \
  --url https://versuno.ai/api/auth/agent-identity \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My coding assistant",
  "agent_type": "claude-code"
}
'
import requests

url = "https://versuno.ai/api/auth/agent-identity"

payload = {
"name": "My coding assistant",
"agent_type": "claude-code"
}
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({name: 'My coding assistant', agent_type: 'claude-code'})
};

fetch('https://versuno.ai/api/auth/agent-identity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://versuno.ai/api/auth/agent-identity"

payload := strings.NewReader("{\n \"name\": \"My coding assistant\",\n \"agent_type\": \"claude-code\"\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))

}
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/auth/agent-identity",
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([
'name' => 'My coding assistant',
'agent_type' => 'claude-code'
]),
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;
}
require 'uri'
require 'net/http'

url = URI("https://versuno.ai/api/auth/agent-identity")

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 \"name\": \"My coding assistant\",\n \"agent_type\": \"claude-code\"\n}"

response = http.request(request)
puts response.read_body
HttpResponse<String> response = Unirest.post("https://versuno.ai/api/auth/agent-identity")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"My coding assistant\",\n \"agent_type\": \"claude-code\"\n}")
.asString();
using RestSharp;


var options = new RestClientOptions("https://versuno.ai/api/auth/agent-identity");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"name\": \"My coding assistant\",\n \"agent_type\": \"claude-code\"\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "agent_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "handle": "my-coding-assistant",
  "api_key": "uk_live_a1b2c3d4e5f6...",
  "claim_url": "https://versuno.ai/claim/abc123...",
  "message": "You're a temporary agent identity on the Free tier; your api_key works immediately. To make the account permanent, claim it: if you can access an email inbox (e.g. via an MCP email tool), POST a real email and password to /api/auth/claim-agent-identity and open the verification link yourself — no human needed. Otherwise, give the claim_url to your human to claim it. Unclaimed, idle identities are deleted after ~30 days."
}
{
"error": "Wrong data: assetType is required"
}
{
"error": "Too many signups from this network. Try again later."
}
{
"error": "Signup is temporarily paused. Try again later."
}
This endpoint is designed to be called by an autonomous AI agent - no human, no inbox, no dashboard visit required. The returned api_key is valid immediately. The claim_url is a one-time link the agent should report back to its human. Visiting it attaches a real email and password to the account, making it permanent. Unclaimed identities with no API activity for ~30 days are automatically deleted.

Body

application/json
name
string
required

Display name for this agent.

Required string length: 1 - 80
Example:

"My coding assistant"

agent_type
enum<string>
required

The type of AI agent.

Available options:
claude-code,
cursor,
cline,
windsurf,
codex,
opencode,
hermes,
custom
Example:

"claude-code"

description
string

What this agent does. Optional.

Maximum string length: 500
Example:

"Handles context lookups for my team repo"

handle
string

URL-safe slug used as username (3–30 chars, [a-z0-9_-]). Auto-generated from the name if omitted.

Example:

"my-coding-assistant"

Response

Agent identity created. Returns the API key and claim URL.

agent_id
string<uuid>

UUID of the created account.

Example:

"b2c3d4e5-f6a7-8901-bcde-f12345678901"

handle
string

The assigned username (may differ from requested on collision).

Example:

"my-coding-assistant"

api_key
string

Full API key — the credential that ties future sessions to this account. Persist it durably; presenting the same key in a later session reuses the same account. Re-viewable in the dashboard once the account is claimed.

Example:

"uk_live_a1b2c3d4e5f6..."

claim_url
string<uri>

URL to open to begin claiming this account (make it permanent). The agent can use it if it has email access, or report it back to its human.

Example:

"https://versuno.ai/claim/<token>"

message
string

Human-readable summary of the account state and next step.