Skip to main content
POST
/
api
/
registry
/
publisher
/
{domain}
/
adagents
/
revalidate
Revalidate publisher adagents.json
curl --request POST \
  --url https://agenticadvertising.org/api/registry/publisher/{domain}/adagents/revalidate \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://agenticadvertising.org/api/registry/publisher/{domain}/adagents/revalidate"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://agenticadvertising.org/api/registry/publisher/{domain}/adagents/revalidate', 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/publisher/{domain}/adagents/revalidate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://agenticadvertising.org/api/registry/publisher/{domain}/adagents/revalidate"

req, _ := http.NewRequest("POST", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

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/publisher/{domain}/adagents/revalidate")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://agenticadvertising.org/api/registry/publisher/{domain}/adagents/revalidate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "domain": "<string>",
  "adagents_valid": true,
  "checked_at": "2023-11-07T05:31:56Z",
  "error": "<string>",
  "issues": {
    "errors": [
      {
        "field": "<string>",
        "message": "<string>",
        "severity": "error"
      }
    ],
    "warnings": [
      {
        "field": "<string>",
        "message": "<string>",
        "suggestion": "<string>"
      }
    ]
  },
  "properties_count": 1,
  "authorized_agents_count": 1,
  "status_code": 349,
  "response_bytes": 1,
  "resolved_url": "<string>",
  "manager_domain": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>",
"retry_after": 123
}

Authorizations

Authorization
string
header
required

Bearer token in the Authorization header. Two token types are accepted:

  • Organization API key (sk_...) issued via the dashboard. Org-scoped, long-lived, for server-to-server use.
  • User JWT obtained via the OAuth 2.1 authorization code flow with PKCE. User-scoped, short-lived. Discover the authorization server at /.well-known/oauth-authorization-server and the protected-resource metadata at /.well-known/oauth-protected-resource/api.

Path Parameters

domain
string
required
Example:

"publisher.example"

Query Parameters

force
enum<string>

Accepted for tooling compatibility; live origin validation is always performed.

Available options:
1,
true

Response

Revalidation result

domain
string
required
adagents_valid
boolean
required
checked_at
string<date-time>
required
error
string
issues
object
properties_count
integer
Required range: x >= 0
authorized_agents_count
integer
Required range: x >= 0
status_code
integer
Required range: 100 <= x <= 599
response_bytes
integer
Required range: x >= 0
resolved_url
string
discovery_method
enum<string>
Available options:
direct,
authoritative_location,
ads_txt_managerdomain,
adagents_authoritative
manager_domain
string