Company - Cohorts

Retrieve cohort members for a given company.
Cohorts let you benchmark a company against its peers.

Base URL: https://api.salescaddy.ai/api

Required enum: cohort (path) must be one of Default, Defined, Aspirational (type: CohortTypeEnum).
Use pagination with page / size to iterate results.


Endpoint

GET /companies/{companyDomain}/cohort/{cohort}

Path parameters

NameTypeRequiredDescription
companyDomainstringYesSubject company domain (e.g. hilton.com)
cohortCohortTypeEnumYesOne of: Default, Defined, Aspirational

Query parameters

NameTypeRequiredDefaultDescription
pageintNo0Page index (0-based)
sizeintNo20Page size (max 200)

Example — Get Default cohort

curl -sS "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Default?page=0&size=10" \
  -H "Authorization: Bearer $TOKEN"
const url = "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Default?page=0&size=10";
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.TOKEN}` } });
console.log(await res.json());
import os, requests
r = requests.get("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Default",
                 params={"page":0,"size":10},
                 headers={"Authorization": f"Bearer {os.environ['TOKEN']}"})
print(r.json())
using System.Net.Http.Headers;
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", TOKEN);
var res = await http.GetAsync("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Default?page=0&size=10");
Console.WriteLine(await res.Content.ReadAsStringAsync());

Sample response (trimmed):

{
  "totalPages": 5,
  "totalElements": 98,
  "content": [
    { "domain":"hyatt.com", "name":"Hyatt Hotels Corporation", "employeeRange":"5001-10000", "country":"US" },
    { "domain":"ihg.com", "name":"InterContinental Hotels Group", "employeeRange":"10001+", "country":"UK" }
  ]
}

Example — Defined cohort

curl -sS "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Defined?page=0&size=10" \
  -H "Authorization: Bearer $TOKEN"
const url = "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Defined?page=0&size=10";
console.log(await (await fetch(url, { headers: { Authorization: `Bearer ${process.env.TOKEN}` } })).json());
r = requests.get("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Defined",
                 params={"page":0,"size":10},
                 headers={"Authorization": f"Bearer {os.environ['TOKEN']}"})
print(r.json())
var res = await http.GetAsync("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Defined?page=0&size=10");
Console.WriteLine(await res.Content.ReadAsStringAsync());

Example — Aspirational cohort

curl -sS "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Aspirational?page=0&size=10" \
  -H "Authorization: Bearer $TOKEN"
const url = "https://api.salescaddy.ai/api/companies/hilton.com/cohort/Aspirational?page=0&size=10";
console.log(await (await fetch(url, { headers: { Authorization: `Bearer ${process.env.TOKEN}` } })).json());
r = requests.get("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Aspirational",
                 params={"page":0,"size":10},
                 headers={"Authorization": f"Bearer {os.environ['TOKEN']}"})
print(r.json())
var res = await http.GetAsync("https://api.salescaddy.ai/api/companies/hilton.com/cohort/Aspirational?page=0&size=10");
Console.WriteLine(await res.Content.ReadAsStringAsync());

Semantics of cohorts

  • Default — automatically derived peer set based on industry, size, region, and stack signals.
  • Defined — curated cohort (manually or via configuration) for this company.
  • Aspirational — forward‑looking peer group a company aims to resemble.

Use the same cohort value when calling Usage Metrics to benchmark adoption/intensity/penetration.


Errors

CodeMeaningHow to fix
400Bad requestValidate cohort value and page/size.
401UnauthorizedProvide/refresh Bearer token.
403ForbiddenCheck client permissions.
404Not foundUnknown companyDomain or cohort not configured.
429Rate limit exceededRetry with exponential backoff; respect Retry-After.
500Internal server errorRetry later; contact support if persistent.