Begin the RFC 8628 device-code token mint
curl --request POST \
--url https://www.immersivecommons.com/api/agent/signup/start \
--header 'Content-Type: application/json' \
--data '
{
"scopes": [
"<string>"
],
"client_name": "<string>",
"sandbox": true
}
'import requests
url = "https://www.immersivecommons.com/api/agent/signup/start"
payload = {
"scopes": ["<string>"],
"client_name": "<string>",
"sandbox": True
}
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({scopes: ['<string>'], client_name: '<string>', sandbox: true})
};
fetch('https://www.immersivecommons.com/api/agent/signup/start', 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://www.immersivecommons.com/api/agent/signup/start",
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([
'scopes' => [
'<string>'
],
'client_name' => '<string>',
'sandbox' => true
]),
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://www.immersivecommons.com/api/agent/signup/start"
payload := strings.NewReader("{\n \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\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://www.immersivecommons.com/api/agent/signup/start")
.header("Content-Type", "application/json")
.body("{\n \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/agent/signup/start")
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 \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\n}"
response = http.request(request)
puts response.read_body{
"device_code": "<string>",
"user_code": "<string>",
"verify_url": "<string>",
"expires_in": 123,
"interval": 123,
"verify_url_complete": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}auth
Begin the RFC 8628 device-code token mint
Anonymous (per-IP rate limited, 30/hr). Returns a device_code (kept by the agent) + a user_code the human enters at verify_url. Then poll /api/agent/signup/poll until the human approves.
POST
/
api
/
agent
/
signup
/
start
Begin the RFC 8628 device-code token mint
curl --request POST \
--url https://www.immersivecommons.com/api/agent/signup/start \
--header 'Content-Type: application/json' \
--data '
{
"scopes": [
"<string>"
],
"client_name": "<string>",
"sandbox": true
}
'import requests
url = "https://www.immersivecommons.com/api/agent/signup/start"
payload = {
"scopes": ["<string>"],
"client_name": "<string>",
"sandbox": True
}
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({scopes: ['<string>'], client_name: '<string>', sandbox: true})
};
fetch('https://www.immersivecommons.com/api/agent/signup/start', 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://www.immersivecommons.com/api/agent/signup/start",
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([
'scopes' => [
'<string>'
],
'client_name' => '<string>',
'sandbox' => true
]),
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://www.immersivecommons.com/api/agent/signup/start"
payload := strings.NewReader("{\n \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\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://www.immersivecommons.com/api/agent/signup/start")
.header("Content-Type", "application/json")
.body("{\n \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.immersivecommons.com/api/agent/signup/start")
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 \"scopes\": [\n \"<string>\"\n ],\n \"client_name\": \"<string>\",\n \"sandbox\": true\n}"
response = http.request(request)
puts response.read_body{
"device_code": "<string>",
"user_code": "<string>",
"verify_url": "<string>",
"expires_in": 123,
"interval": 123,
"verify_url_complete": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"ok": false,
"error_kind": "<string>",
"message": "<string>",
"rate": {
"current": 123,
"remaining": 123,
"limit": 123
},
"retry_after_seconds": 123,
"tier": "<string>",
"current_tier": "<string>",
"detail": "<string>"
}Body
application/json
Requested capability scopes (validated against the user's tier at approval).
Required array length:
1 - 64 elementsFree-text agent identifier shown to the approving human.
Maximum string length:
80Mint a sandbox/test-mode token: WRITE verbs return a simulated receipt instead of mutating; reads serve real data. Still a real token with real scopes — this does NOT widen access. Immutable after mint. See the root x-sandbox extension.
Response
Device-code grant started.
Long secret — the agent keeps it, never displays it.
Short human-readable code.
Seconds (900).
Recommended poll interval in seconds (5).
verify_url + ?code= prefilled.
⌘I