Describe the agent access offer
curl --request GET \
--url https://api.brandfetch.io/v2/agents/accessimport requests
url = "https://api.brandfetch.io/v2/agents/access"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.brandfetch.io/v2/agents/access', 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.brandfetch.io/v2/agents/access",
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.brandfetch.io/v2/agents/access"
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.brandfetch.io/v2/agents/access")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brandfetch.io/v2/agents/access")
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{
"documentation": "https://docs.brandfetch.com/agents/overview",
"mcp": "https://mcp.brandfetch.io/mcp",
"offer": {
"method": "POST",
"endpoint": "https://api.brandfetch.io/v2/agents/access",
"minUsd": 1,
"maxUsd": 500,
"creditsPerUsd": 20,
"description": "<string>"
},
"payment": {
"protocols": [
"x402",
"mpp"
],
"x402": {
"protocol": "x402",
"network": "eip155:8453",
"steps": [
"<string>"
]
},
"mpp": {
"protocol": "mpp",
"methods": [
"tempo",
"stripe"
],
"steps": [
"<string>"
]
}
},
"perRequestAlternative": {
"description": "<string>",
"protocols": [
"x402",
"mpp"
],
"prices": {
"brandApi": "$0.10",
"brandContextApi": "$0.10"
}
}
}Agent access offer
What an agent can buy and how to pay for it: standing API access — an organization, an API key preloaded with prepaid credits and an MCP token — sold for one x402 or MPP payment. Needs no credential. Written for an agent that will act on it. See https://docs.brandfetch.com/agents/overview.
GET
/
v2
/
agents
/
access
Describe the agent access offer
curl --request GET \
--url https://api.brandfetch.io/v2/agents/accessimport requests
url = "https://api.brandfetch.io/v2/agents/access"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.brandfetch.io/v2/agents/access', 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.brandfetch.io/v2/agents/access",
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.brandfetch.io/v2/agents/access"
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.brandfetch.io/v2/agents/access")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brandfetch.io/v2/agents/access")
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{
"documentation": "https://docs.brandfetch.com/agents/overview",
"mcp": "https://mcp.brandfetch.io/mcp",
"offer": {
"method": "POST",
"endpoint": "https://api.brandfetch.io/v2/agents/access",
"minUsd": 1,
"maxUsd": 500,
"creditsPerUsd": 20,
"description": "<string>"
},
"payment": {
"protocols": [
"x402",
"mpp"
],
"x402": {
"protocol": "x402",
"network": "eip155:8453",
"steps": [
"<string>"
]
},
"mpp": {
"protocol": "mpp",
"methods": [
"tempo",
"stripe"
],
"steps": [
"<string>"
]
}
},
"perRequestAlternative": {
"description": "<string>",
"protocols": [
"x402",
"mpp"
],
"prices": {
"brandApi": "$0.10",
"brandContextApi": "$0.10"
}
}
}This endpoint needs no credential. It describes what an agent can buy with
POST /v2/agents/access and how to pay for it, from a wallet over x402 or MPP, or with a card over MPP; see Brandfetch for agents for the picture around it.Response
200 - application/json
The offer.
Example:
"https://docs.brandfetch.com/agents/overview"
Example:
"https://mcp.brandfetch.io/mcp"
Show child attributes
Show child attributes
How to pay, per protocol. x402 is always on offer; mpp is listed, and described, exactly where the deployment's billing can take it — production does.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?