Get server configuration
curl --request GET \
--url https://api.httpayer.com/configimport requests
url = "https://api.httpayer.com/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/config', 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.httpayer.com/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.httpayer.com/config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.httpayer.com/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"protocol": {
"versions": [
"1"
],
"current": "1"
},
"credits": {
"creditsPerUsdc": 1000,
"usdcPerCredit": 0.001,
"description": "1 credit = 1 milliUSDC = 0.001 USDC"
},
"relay": {
"fees": {
"percentage": 3,
"minUSDC": 0,
"model": "3% flat rate"
},
"limits": {
"maxDailyPerWallet": 100,
"maxDailyTotal": 1000
},
"timeouts": {
"asyncThresholdMs": 120000
}
},
"networks": {
"enabled": [
"base",
"solana-mainnet-beta"
],
"evm": [
"base",
"base-sepolia"
],
"solana": [
"solana-mainnet-beta",
"solana-devnet"
],
"configs": {}
},
"assets": {
"enabled": [
"usdc"
]
},
"server": {
"baseUrl": "https://api.httpayer.com",
"timeouts": {
"requestMs": 600000,
"headersMs": 610000,
"keepAliveMs": 620000
}
}
}Configuration
Get server configuration
Returns the current server configuration including enabled networks, assets, relay fees, spending limits, and network-specific settings.
GET
/
config
Get server configuration
curl --request GET \
--url https://api.httpayer.com/configimport requests
url = "https://api.httpayer.com/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.httpayer.com/config', 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.httpayer.com/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.httpayer.com/config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.httpayer.com/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.httpayer.com/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"protocol": {
"versions": [
"1"
],
"current": "1"
},
"credits": {
"creditsPerUsdc": 1000,
"usdcPerCredit": 0.001,
"description": "1 credit = 1 milliUSDC = 0.001 USDC"
},
"relay": {
"fees": {
"percentage": 3,
"minUSDC": 0,
"model": "3% flat rate"
},
"limits": {
"maxDailyPerWallet": 100,
"maxDailyTotal": 1000
},
"timeouts": {
"asyncThresholdMs": 120000
}
},
"networks": {
"enabled": [
"base",
"solana-mainnet-beta"
],
"evm": [
"base",
"base-sepolia"
],
"solana": [
"solana-mainnet-beta",
"solana-devnet"
],
"configs": {}
},
"assets": {
"enabled": [
"usdc"
]
},
"server": {
"baseUrl": "https://api.httpayer.com",
"timeouts": {
"requestMs": 600000,
"headersMs": 610000,
"keepAliveMs": 620000
}
}
}Response
200 - application/json
Server configuration
x402 protocol version information
Show child attributes
Show child attributes
Credit system configuration
Show child attributes
Show child attributes
Relay endpoint configuration
Show child attributes
Show child attributes
Supported networks configuration
Show child attributes
Show child attributes
Enabled assets configuration
Show child attributes
Show child attributes
Server settings
Show child attributes
Show child attributes
⌘I

