curl --request POST \
--url https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore', 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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore",
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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore"
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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore")
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{
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seed_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_seed": true,
"override": {
"added": false,
"removed": false,
"starred": true,
"edited_fields": [
"<string>"
]
},
"advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"advertiser_resolved_at": "2023-11-07T05:31:56Z",
"identity_resolved": false,
"canonical_domain": "<string>",
"website_url": "<string>",
"homepage_url": "<string>",
"website_header_image_url": "<string>",
"description": "<string>",
"notes": "<string>",
"industry": "<string>",
"brand_classification": {
"primary_industry": "<string>",
"industries": [
"<string>"
],
"business_models": [
"<string>"
],
"version": "<string>",
"source": "<string>",
"classified_at": "2023-11-07T05:31:56Z",
"needs_review": false
},
"country": "<string>",
"content_url": "<string>",
"youtube_channel_url": "<string>",
"is_starred": false,
"social_links": {},
"analysis_data": {},
"brand_intelligence_advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active_paid_media_platforms": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "seo_discovery"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Restore Seed
Restore a removed seed with this copy’s saved edits and star choice.
curl --request POST \
--url https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore', 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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore",
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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore"
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://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/competitors/seeds/{seed_id}/restore")
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{
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seed_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_seed": true,
"override": {
"added": false,
"removed": false,
"starred": true,
"edited_fields": [
"<string>"
]
},
"advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"advertiser_resolved_at": "2023-11-07T05:31:56Z",
"identity_resolved": false,
"canonical_domain": "<string>",
"website_url": "<string>",
"homepage_url": "<string>",
"website_header_image_url": "<string>",
"description": "<string>",
"notes": "<string>",
"industry": "<string>",
"brand_classification": {
"primary_industry": "<string>",
"industries": [
"<string>"
],
"business_models": [
"<string>"
],
"version": "<string>",
"source": "<string>",
"classified_at": "2023-11-07T05:31:56Z",
"needs_review": false
},
"country": "<string>",
"content_url": "<string>",
"youtube_channel_url": "<string>",
"is_starred": false,
"social_links": {},
"analysis_data": {},
"brand_intelligence_advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active_paid_media_platforms": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "seo_discovery"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
A competitor entry merged from SEO discoveries and brand-kit names.
Brand-kit-sourced entries lack id, website_url, description, notes, and
timestamps — they're synthesized from a string in BrandKit.competitors.
The frontend should branch on source to decide which actions to
expose (star/edit/delete only work on entries with an id).
source defaults to "seo_discovery" so this schema can also be
returned directly from add/update routes that operate on the
brand_competitors table — those endpoints always produce SEO rows.
The copy's diff over its record's seed, for one competitor (T10 Phase 2).
Additive: None on a competitor the diff does not name (a plain seed
row). The Competitors tab renders the per-user markers from it --
added by you (added), edited by you (edited_fields),
starred (starred). Removed seeds expose the same diff separately
from the active roster, with removed set to True.
Show child attributes
Show child attributes
A versioned multi-label brand classification.
Industries describe what the brand sells or does. Business models describe
how it operates independently of industry. Keeping those dimensions
separate prevents the historical E-Commerce pseudo-industry from
replacing the brand's real product industry.
Show child attributes
Show child attributes
seo_discovery, brand_kit Was this page helpful?