Hands-off: the Router answers your ask from the best Otto service, or as a combined answer, for one exact quote with one $0.01 router fee.
curl --request POST \
--url https://x402.ottoai.services/full-auto \
--header 'Content-Type: application/json' \
--data '
{
"ask": "<string>",
"price_cap_usd": 123,
"network": "<string>"
}
'import requests
url = "https://x402.ottoai.services/full-auto"
payload = {
"ask": "<string>",
"price_cap_usd": 123,
"network": "<string>"
}
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({ask: '<string>', price_cap_usd: 123, network: '<string>'})
};
fetch('https://x402.ottoai.services/full-auto', 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://x402.ottoai.services/full-auto",
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([
'ask' => '<string>',
'price_cap_usd' => 123,
'network' => '<string>'
]),
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://x402.ottoai.services/full-auto"
payload := strings.NewReader("{\n \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\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://x402.ottoai.services/full-auto")
.header("Content-Type", "application/json")
.body("{\n \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://x402.ottoai.services/full-auto")
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 \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {}
}x402 Open Router
/full-auto
Full Auto — the hands-off pillar. The Router picks the best-matched Otto service it can answer your ask with and returns that service’s data. One exact payment per call, quoted in the 402. You pay Otto once. For one service, the price is that service’s catalogue price plus a 0.01routerfee,andnothingispaidtoanyoneonyourbehalf.Foracombinedanswer,thepriceisthesumofitspartsplusone0.01 router fee. A combined answer can include named outside x402 sellers. Otto pays them itself, and their prices are inside your quote. If the answer fails you are not charged. Backed by the money-back guarantee (POST /feedback).
POST
/
full-auto
Hands-off: the Router answers your ask from the best Otto service, or as a combined answer, for one exact quote with one $0.01 router fee.
curl --request POST \
--url https://x402.ottoai.services/full-auto \
--header 'Content-Type: application/json' \
--data '
{
"ask": "<string>",
"price_cap_usd": 123,
"network": "<string>"
}
'import requests
url = "https://x402.ottoai.services/full-auto"
payload = {
"ask": "<string>",
"price_cap_usd": 123,
"network": "<string>"
}
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({ask: '<string>', price_cap_usd: 123, network: '<string>'})
};
fetch('https://x402.ottoai.services/full-auto', 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://x402.ottoai.services/full-auto",
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([
'ask' => '<string>',
'price_cap_usd' => 123,
'network' => '<string>'
]),
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://x402.ottoai.services/full-auto"
payload := strings.NewReader("{\n \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\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://x402.ottoai.services/full-auto")
.header("Content-Type", "application/json")
.body("{\n \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://x402.ottoai.services/full-auto")
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 \"ask\": \"<string>\",\n \"price_cap_usd\": 123,\n \"network\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {}
}Price: from 0.01 USDC per call, paid on Base. The live quote states the exact price.
Fill in the required fields and send this request without payment to get the live price quote. The API answers
402 and lists the price, network and token in accepts. To pay, follow Your first paid call.Body
application/json
Was this page helpful?
