Begin or complete verified agent-owned signup
curl --request POST \
--url https://api.paywithlocus.com/api/credits/agent/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"registrationToken": "<string>",
"agentEmail": "[email protected]"
}
'import requests
url = "https://api.paywithlocus.com/api/credits/agent/register"
payload = {
"name": "<string>",
"registrationToken": "<string>",
"agentEmail": "[email protected]"
}
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: '<string>',
registrationToken: '<string>',
agentEmail: '[email protected]'
})
};
fetch('https://api.paywithlocus.com/api/credits/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://api.paywithlocus.com/api/credits/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([
'name' => '<string>',
'registrationToken' => '<string>',
'agentEmail' => '[email protected]'
]),
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.paywithlocus.com/api/credits/agent/register"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\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.paywithlocus.com/api/credits/agent/register")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywithlocus.com/api/credits/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 \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"onboardingState": "funding_required",
"balance": {
"usd": "<string>",
"credits": "<string>",
"creditsPerDollar": "<string>"
},
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keyPrefix": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credential": "<string>"
},
"identity": {
"provider": "agentid",
"email": "[email protected]"
},
"mcp": {},
"links": {},
"nextAction": {},
"activated": true,
"created": true,
"credentialRenewed": true,
"credentialRecovered": true
}
}{
"success": true,
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"onboardingState": "funding_required",
"balance": {
"usd": "<string>",
"credits": "<string>",
"creditsPerDollar": "<string>"
},
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keyPrefix": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credential": "<string>"
},
"identity": {
"provider": "agentid",
"email": "[email protected]"
},
"mcp": {},
"links": {},
"nextAction": {},
"activated": true,
"created": true,
"credentialRenewed": true,
"credentialRecovered": true
}
}{
"success": true,
"account": {
"onboardingState": "identity_required",
"registration": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "agentid",
"status": "pending",
"authorizationUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"pollAfterMs": 1001
},
"nextAction": {},
"activated": false
}
}Agent-native onboarding
Begin or complete verified agent-owned signup
A first request creates only a 15-minute pending row and returns an AgentID authorization URL. After AgentID PKCE verification, replaying the same name and registrationToken creates or recovers one zero-balance personal account and returns its scoped connection credential. The verified provider/subject pair is the durable one-account boundary. No free or bonus credits are issued.
POST
/
credits
/
agent
/
register
Begin or complete verified agent-owned signup
curl --request POST \
--url https://api.paywithlocus.com/api/credits/agent/register \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"registrationToken": "<string>",
"agentEmail": "[email protected]"
}
'import requests
url = "https://api.paywithlocus.com/api/credits/agent/register"
payload = {
"name": "<string>",
"registrationToken": "<string>",
"agentEmail": "[email protected]"
}
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: '<string>',
registrationToken: '<string>',
agentEmail: '[email protected]'
})
};
fetch('https://api.paywithlocus.com/api/credits/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://api.paywithlocus.com/api/credits/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([
'name' => '<string>',
'registrationToken' => '<string>',
'agentEmail' => '[email protected]'
]),
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.paywithlocus.com/api/credits/agent/register"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\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.paywithlocus.com/api/credits/agent/register")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywithlocus.com/api/credits/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 \"name\": \"<string>\",\n \"registrationToken\": \"<string>\",\n \"agentEmail\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"onboardingState": "funding_required",
"balance": {
"usd": "<string>",
"credits": "<string>",
"creditsPerDollar": "<string>"
},
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keyPrefix": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credential": "<string>"
},
"identity": {
"provider": "agentid",
"email": "[email protected]"
},
"mcp": {},
"links": {},
"nextAction": {},
"activated": true,
"created": true,
"credentialRenewed": true,
"credentialRecovered": true
}
}{
"success": true,
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"onboardingState": "funding_required",
"balance": {
"usd": "<string>",
"credits": "<string>",
"creditsPerDollar": "<string>"
},
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"keyPrefix": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"credential": "<string>"
},
"identity": {
"provider": "agentid",
"email": "[email protected]"
},
"mcp": {},
"links": {},
"nextAction": {},
"activated": true,
"created": true,
"credentialRenewed": true,
"credentialRecovered": true
}
}{
"success": true,
"account": {
"onboardingState": "identity_required",
"registration": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"provider": "agentid",
"status": "pending",
"authorizationUrl": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"pollAfterMs": 1001
},
"nextAction": {},
"activated": false
}
}Body
application/json
Control and bidirectional-formatting characters are rejected.
Required string length:
1 - 100Canonical base64url encoding of 24 bytes generated by a cryptographically secure random-number generator.
Pattern:
^[A-Za-z0-9_-]{32}$Optional AgentID inbox sent as login_hint. The verified token claim is authoritative.
Maximum string length:
320