Approve community mirror proposal
curl --request POST \
--url https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proposal_digest": "<string>",
"review_notes": "<string>"
}
'import requests
url = "https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve"
payload = {
"proposal_digest": "<string>",
"review_notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({proposal_digest: '<string>', review_notes: '<string>'})
};
fetch('https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve', 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/mirror-proposals/{id}/approve",
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([
'proposal_digest' => '<string>',
'review_notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/mirror-proposals/{id}/approve"
payload := strings.NewReader("{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/mirror-proposals/{id}/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"platform": "example_platform",
"catalog_etag": "<string>",
"superseded_by": "<string>",
"publisher_domains": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z",
"proposal_id": "4ec8bc86-6180-4d0e-aa72-9cbf402d3638"
}{
"error": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"retryAfter": 123
}{
"error": "<string>"
}Community Mirrors
Approve community mirror proposal
Approve and atomically publish a pending proposal. Requires a registry moderator or AgenticAdvertising.org administrator.
POST
/
api
/
registry
/
mirror-proposals
/
{id}
/
approve
Approve community mirror proposal
curl --request POST \
--url https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proposal_digest": "<string>",
"review_notes": "<string>"
}
'import requests
url = "https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve"
payload = {
"proposal_digest": "<string>",
"review_notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({proposal_digest: '<string>', review_notes: '<string>'})
};
fetch('https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve', 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/mirror-proposals/{id}/approve",
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([
'proposal_digest' => '<string>',
'review_notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/mirror-proposals/{id}/approve"
payload := strings.NewReader("{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/mirror-proposals/{id}/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/registry/mirror-proposals/{id}/approve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proposal_digest\": \"<string>\",\n \"review_notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"platform": "example_platform",
"catalog_etag": "<string>",
"superseded_by": "<string>",
"publisher_domains": [
"<string>"
],
"updated_at": "2023-11-07T05:31:56Z",
"proposal_id": "4ec8bc86-6180-4d0e-aa72-9cbf402d3638"
}{
"error": "<string>",
"details": [
"<unknown>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>",
"message": "<string>",
"retryAfter": 123
}{
"error": "<string>"
}Authorizations
bearerAuthoauth2
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-serverand the protected-resource metadata at/.well-known/oauth-protected-resource/api.
Path Parameters
Body
application/json
Response
Proposal approved and mirror published
Available options:
true Lowercase platform identifier, normalized by the service.
Pattern:
^[a-z0-9_-]{1,64}$Example:
"example_platform"
HTTPS successor document URL, when this mirror has been superseded.
Pattern:
^https:\/\/Publisher domains updated from this community mirror catalog.
Opaque identifier for the proposal.
Example:
"4ec8bc86-6180-4d0e-aa72-9cbf402d3638"
Was this page helpful?
⌘I