Save brand
curl --request POST \
--url https://agenticadvertising.org/api/brands/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "acmecorp.com",
"brand_name": "Acme Corp",
"brand_manifest": {}
}
'import requests
url = "https://agenticadvertising.org/api/brands/save"
payload = {
"domain": "acmecorp.com",
"brand_name": "Acme Corp",
"brand_manifest": {}
}
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({domain: 'acmecorp.com', brand_name: 'Acme Corp', brand_manifest: {}})
};
fetch('https://agenticadvertising.org/api/brands/save', 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/brands/save",
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([
'domain' => 'acmecorp.com',
'brand_name' => 'Acme Corp',
'brand_manifest' => [
]
]),
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/brands/save"
payload := strings.NewReader("{\n \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\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/brands/save")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/brands/save")
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 \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"domain": "<string>",
"id": "<string>",
"revision_number": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Brand Resolution
Save brand
Save or update a brand in the registry. Requires authentication. For existing brands, creates a revision-tracked edit. For new brands, creates the brand directly. Cannot edit authoritative brands managed via brand.json.
POST
/
api
/
brands
/
save
Save brand
curl --request POST \
--url https://agenticadvertising.org/api/brands/save \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "acmecorp.com",
"brand_name": "Acme Corp",
"brand_manifest": {}
}
'import requests
url = "https://agenticadvertising.org/api/brands/save"
payload = {
"domain": "acmecorp.com",
"brand_name": "Acme Corp",
"brand_manifest": {}
}
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({domain: 'acmecorp.com', brand_name: 'Acme Corp', brand_manifest: {}})
};
fetch('https://agenticadvertising.org/api/brands/save', 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/brands/save",
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([
'domain' => 'acmecorp.com',
'brand_name' => 'Acme Corp',
'brand_manifest' => [
]
]),
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/brands/save"
payload := strings.NewReader("{\n \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\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/brands/save")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agenticadvertising.org/api/brands/save")
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 \"domain\": \"acmecorp.com\",\n \"brand_name\": \"Acme Corp\",\n \"brand_manifest\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"domain": "<string>",
"id": "<string>",
"revision_number": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"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.
Body
application/json
Was this page helpful?
⌘I