Validate product authorization
curl --request POST \
--url https://agenticadvertising.org/api/registry/validate/product-authorization \
--header 'Content-Type: application/json' \
--data '
{
"agent_url": "<string>",
"publisher_properties": [
{
"publisher_domain": "examplepub.com",
"property_types": [
"<string>"
],
"property_ids": [
"<string>"
],
"tags": [
"<string>"
]
}
]
}
'import requests
url = "https://agenticadvertising.org/api/registry/validate/product-authorization"
payload = {
"agent_url": "<string>",
"publisher_properties": [
{
"publisher_domain": "examplepub.com",
"property_types": ["<string>"],
"property_ids": ["<string>"],
"tags": ["<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({
agent_url: '<string>',
publisher_properties: [
{
publisher_domain: 'examplepub.com',
property_types: ['<string>'],
property_ids: ['<string>'],
tags: ['<string>']
}
]
})
};
fetch('https://agenticadvertising.org/api/registry/validate/product-authorization', 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/registry/validate/product-authorization",
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([
'agent_url' => '<string>',
'publisher_properties' => [
[
'publisher_domain' => 'examplepub.com',
'property_types' => [
'<string>'
],
'property_ids' => [
'<string>'
],
'tags' => [
'<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://agenticadvertising.org/api/registry/validate/product-authorization"
payload := strings.NewReader("{\n \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\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/registry/validate/product-authorization")
.header("Content-Type", "application/json")
.body("{\n \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/registry/validate/product-authorization")
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 \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"agent_url": "<string>",
"authorized": true,
"checked_at": "<string>"
}Authorization Lookups
Validate product authorization
Check whether an agent is authorized to sell a product based on its publisher_properties.
POST
/
api
/
registry
/
validate
/
product-authorization
Validate product authorization
curl --request POST \
--url https://agenticadvertising.org/api/registry/validate/product-authorization \
--header 'Content-Type: application/json' \
--data '
{
"agent_url": "<string>",
"publisher_properties": [
{
"publisher_domain": "examplepub.com",
"property_types": [
"<string>"
],
"property_ids": [
"<string>"
],
"tags": [
"<string>"
]
}
]
}
'import requests
url = "https://agenticadvertising.org/api/registry/validate/product-authorization"
payload = {
"agent_url": "<string>",
"publisher_properties": [
{
"publisher_domain": "examplepub.com",
"property_types": ["<string>"],
"property_ids": ["<string>"],
"tags": ["<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({
agent_url: '<string>',
publisher_properties: [
{
publisher_domain: 'examplepub.com',
property_types: ['<string>'],
property_ids: ['<string>'],
tags: ['<string>']
}
]
})
};
fetch('https://agenticadvertising.org/api/registry/validate/product-authorization', 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/registry/validate/product-authorization",
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([
'agent_url' => '<string>',
'publisher_properties' => [
[
'publisher_domain' => 'examplepub.com',
'property_types' => [
'<string>'
],
'property_ids' => [
'<string>'
],
'tags' => [
'<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://agenticadvertising.org/api/registry/validate/product-authorization"
payload := strings.NewReader("{\n \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\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/registry/validate/product-authorization")
.header("Content-Type", "application/json")
.body("{\n \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/registry/validate/product-authorization")
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 \"agent_url\": \"<string>\",\n \"publisher_properties\": [\n {\n \"publisher_domain\": \"examplepub.com\",\n \"property_types\": [\n \"<string>\"\n ],\n \"property_ids\": [\n \"<string>\"\n ],\n \"tags\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"agent_url": "<string>",
"authorized": true,
"checked_at": "<string>"
}Was this page helpful?
⌘I