curl -X POST 'https://api.poddata.ai/v1/companies/northwind-dental/rivals' \
-H "Authorization: Bearer $PODDATA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"Bluebird Dental","domain":"bluebird-dental.example","why":"General dentistry clinics in the same three towns","evidence":"https://bluebird-dental.example/locations"}'import requests
url = "https://api.poddata.ai/v1/companies/{id}/rivals"
payload = {
"name": "Bluebird Dental",
"domain": "bluebird-dental.example",
"why": "General dentistry clinics in the same three towns",
"evidence": "https://bluebird-dental.example/locations"
}
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({
name: 'Bluebird Dental',
domain: 'bluebird-dental.example',
why: 'General dentistry clinics in the same three towns',
evidence: 'https://bluebird-dental.example/locations'
})
};
fetch('https://api.poddata.ai/v1/companies/{id}/rivals', 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.poddata.ai/v1/companies/{id}/rivals",
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([
'name' => 'Bluebird Dental',
'domain' => 'bluebird-dental.example',
'why' => 'General dentistry clinics in the same three towns',
'evidence' => 'https://bluebird-dental.example/locations'
]),
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://api.poddata.ai/v1/companies/{id}/rivals"
payload := strings.NewReader("{\n \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\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://api.poddata.ai/v1/companies/{id}/rivals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poddata.ai/v1/companies/{id}/rivals")
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 \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\n}"
response = http.request(request)
puts response.read_body{
"rival": {
"id": "<string>",
"name": "<string>"
},
"state": "proposed",
"evidence": "<string>",
"decided_at": "<string>",
"waits_for": "team"
}{
"rival": {
"id": "bluebird-dental",
"name": "Bluebird Dental"
},
"state": "proposed",
"evidence": "https://bluebird-dental.example/locations",
"decided_at": null,
"waits_for": "team"
}{
"error": {
"code": "bad_request",
"message": "<string>"
}
}Proposes a rival for one of the team’s targets, for a person to confirm
Proposes a rival you know of for one of your targets: rival, a company any /companies/{id} takes, or name and domain for one PodData doesn’t hold, which PodData then holds as a rival with its domain proposed. Add why and evidence, the page that shows they compete. 201 with the pair proposed, or 200 with it as it stands.
Before: The company is one of your targets. To have PodData find and test candidates instead, use POST /targets/{company}/rivals/find.
Next: Show the person the rival and its page: on their yes, POST /companies/{id}/rivals/{rival}/confirm. Then confirm the rival’s own domain at /companies/{rival}/links, so it’s read beside the target.
Limits: A domain confirmed for a company your team can’t see is a 409, which says how to add it by name and domain instead.
curl -X POST 'https://api.poddata.ai/v1/companies/northwind-dental/rivals' \
-H "Authorization: Bearer $PODDATA_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"Bluebird Dental","domain":"bluebird-dental.example","why":"General dentistry clinics in the same three towns","evidence":"https://bluebird-dental.example/locations"}'import requests
url = "https://api.poddata.ai/v1/companies/{id}/rivals"
payload = {
"name": "Bluebird Dental",
"domain": "bluebird-dental.example",
"why": "General dentistry clinics in the same three towns",
"evidence": "https://bluebird-dental.example/locations"
}
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({
name: 'Bluebird Dental',
domain: 'bluebird-dental.example',
why: 'General dentistry clinics in the same three towns',
evidence: 'https://bluebird-dental.example/locations'
})
};
fetch('https://api.poddata.ai/v1/companies/{id}/rivals', 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.poddata.ai/v1/companies/{id}/rivals",
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([
'name' => 'Bluebird Dental',
'domain' => 'bluebird-dental.example',
'why' => 'General dentistry clinics in the same three towns',
'evidence' => 'https://bluebird-dental.example/locations'
]),
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://api.poddata.ai/v1/companies/{id}/rivals"
payload := strings.NewReader("{\n \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\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://api.poddata.ai/v1/companies/{id}/rivals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poddata.ai/v1/companies/{id}/rivals")
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 \"name\": \"Bluebird Dental\",\n \"domain\": \"bluebird-dental.example\",\n \"why\": \"General dentistry clinics in the same three towns\",\n \"evidence\": \"https://bluebird-dental.example/locations\"\n}"
response = http.request(request)
puts response.read_body{
"rival": {
"id": "<string>",
"name": "<string>"
},
"state": "proposed",
"evidence": "<string>",
"decided_at": "<string>",
"waits_for": "team"
}{
"rival": {
"id": "bluebird-dental",
"name": "Bluebird Dental"
},
"state": "proposed",
"evidence": "https://bluebird-dental.example/locations",
"decided_at": null,
"waits_for": "team"
}{
"error": {
"code": "bad_request",
"message": "<string>"
}
}propose_rival, on PodData’s MCP server at https://api.poddata.ai/mcp, does what this route does, with the same key. See The MCP server.Authorizations
Body
Response
Already its rival, proposed, confirmed or struck: as it stands