Generate adagents.json
curl --request POST \
--url https://agenticadvertising.org/api/adagents/create \
--header 'Content-Type: application/json' \
--data '
{
"authorized_agents": [
{
"url": "<string>",
"authorized_for": "<string>"
}
],
"include_schema": true,
"include_timestamp": true,
"properties": [
"<unknown>"
]
}
'import requests
url = "https://agenticadvertising.org/api/adagents/create"
payload = {
"authorized_agents": [
{
"url": "<string>",
"authorized_for": "<string>"
}
],
"include_schema": True,
"include_timestamp": True,
"properties": ["<unknown>"]
}
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({
authorized_agents: [{url: '<string>', authorized_for: '<string>'}],
include_schema: true,
include_timestamp: true,
properties: ['<unknown>']
})
};
fetch('https://agenticadvertising.org/api/adagents/create', 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://agenticadvertising.org/api/adagents/create",
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([
'authorized_agents' => [
[
'url' => '<string>',
'authorized_for' => '<string>'
]
],
'include_schema' => true,
'include_timestamp' => true,
'properties' => [
'<unknown>'
]
]),
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://agenticadvertising.org/api/adagents/create"
payload := strings.NewReader("{\n \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\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://agenticadvertising.org/api/adagents/create")
.header("Content-Type", "application/json")
.body("{\n \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/adagents/create")
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 \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true,
"adagents_json": "<unknown>",
"validation": "<unknown>"
},
"timestamp": "<string>"
}Validation Tools
Generate adagents.json
Generate a valid adagents.json file from a list of authorized agents.
POST
/
api
/
adagents
/
create
Generate adagents.json
curl --request POST \
--url https://agenticadvertising.org/api/adagents/create \
--header 'Content-Type: application/json' \
--data '
{
"authorized_agents": [
{
"url": "<string>",
"authorized_for": "<string>"
}
],
"include_schema": true,
"include_timestamp": true,
"properties": [
"<unknown>"
]
}
'import requests
url = "https://agenticadvertising.org/api/adagents/create"
payload = {
"authorized_agents": [
{
"url": "<string>",
"authorized_for": "<string>"
}
],
"include_schema": True,
"include_timestamp": True,
"properties": ["<unknown>"]
}
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({
authorized_agents: [{url: '<string>', authorized_for: '<string>'}],
include_schema: true,
include_timestamp: true,
properties: ['<unknown>']
})
};
fetch('https://agenticadvertising.org/api/adagents/create', 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://agenticadvertising.org/api/adagents/create",
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([
'authorized_agents' => [
[
'url' => '<string>',
'authorized_for' => '<string>'
]
],
'include_schema' => true,
'include_timestamp' => true,
'properties' => [
'<unknown>'
]
]),
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://agenticadvertising.org/api/adagents/create"
payload := strings.NewReader("{\n \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\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://agenticadvertising.org/api/adagents/create")
.header("Content-Type", "application/json")
.body("{\n \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/adagents/create")
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 \"authorized_agents\": [\n {\n \"url\": \"<string>\",\n \"authorized_for\": \"<string>\"\n }\n ],\n \"include_schema\": true,\n \"include_timestamp\": true,\n \"properties\": [\n \"<unknown>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"success": true,
"adagents_json": "<unknown>",
"validation": "<unknown>"
},
"timestamp": "<string>"
}Was this page helpful?