BrandBard Agentic Protocol
The definitive engine for orchestrating brand perception across the global AI landscape. Built for both high-reasoning humans and autonomous agents.
Developer Quickstart
BrandBard is built API-first. This guide will get you from zero to your first analysis result in minutes.
Postman Collection
Download the complete v1.4 API collection to start testing instantly.
Authentication
BrandBard uses API keys to authenticate requests. You can manage your keys in the API Keys Hub. Your API key should be kept secret and never shared in client-side code.
Response Format
All API responses are returned as structured JSON. We follow a consistent pattern to ensure your agents can parse results with high reliability.
Success
Request completed successfully. Data returned in data field.
Unauthorized
Invalid or missing API key. Verify your X-API-Key header.
Payment Required
Ad-hoc unlocks exhausted. Visit the billing dashboard to purchase more.
Rate Limited
Too many requests for your tier. Retry-After header provided.
Validation Failed
Malformed payload or invalid rules. Check errors field.
Internal Error
Session creation failed or internal provider error.
Service Unavailable
Payment system maintenance or Stripe key configuration missing.
{
"success": true,
"data": {
// Result payload
},
"message": "Operation completed successfully"
}
List Providers
/api/v1/providers
Returns the currently available frontier models that can participate in your Council of Providers.
Create Analysis
/api/v1/analysis
Triggers the multi-model pipeline for a target URL. This operation is asynchronous and consumes **1 Analysis Credit**.
Request Parameters
| Field | Type |
|---|---|
| url | string (required) |
| brand_title | string (optional) |
| models | array (optional) - up to 6 provider keys, e.g. ["OpenAI", "Anthropic"] |
| idempotency_key | string (optional) - also accepted via Idempotency-Key header |
| ?wait=true | query boolean (optional) - synchronous mode (holds connection up to ~180s) |
cURL Example
curl -X POST https://brandbardai.com/api/v1/analysis \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"brand_title": "Example Brand",
"models": ["OpenAI", "Anthropic"]
}'
Understanding Variance
The score_variance metric (also known as the Disagreement Factor) measures the deviation in scores between different Council members.
It is the definitive KPI for brand clarity in the age of AI.
Unanimous (< 0.1)
Exceptional consensus. All models perceive the brand identically.
Stable (0.1 - 0.25)
Very high consensus. Minor architectural variations.
Settled (0.25 - 0.5)
High consensus. Positioning is crisp and well-defined.
Ambiguous (0.5 - 1.0)
Moderate disagreement. Messaging is interpreted differently.
Controversial (> 1.0)
High disagreement. Significant messaging leakage detected.
Retrieve Results
/api/v1/analysis/{uuid}
Returns the full multi-provider perception audit, including consensus metrics, variance analysis, social media footprint, model comparison matrix, and the synthesized CSO Masterplan.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| sections | string (optional) | Comma-separated sections: overview,masterplan,consensus_insights,social_media,geo,geo_radar,comparisons,competitors,context,ai_recommendations,models,all |
| models | string (optional) | Filter response to specific models (e.g. OpenAI,Anthropic). |
| min_score / max_score | number (optional) | Filter models matching a score range between 1 and 10 (e.g. min_score=8). |
| format | string (optional) | json (default) or markdown. Can also pass Accept: text/markdown header. |
Modular Sections & Filters
Rather than consuming the full report every time, autonomous agents and dashboards can request only the specific sections or model filters required for their immediate task:
Social Media Intelligence
Aggregated active social channels, platform-by-platform summaries, viral hooks, suggested content themes, and campaign angles across the Council.
Side-by-Side Model Matrix
Identifies highest and lowest scoring frontier models, archetype vote distribution, and multi-model consensus alignment matrix.
CSO Masterplan
Chief Strategy Officer synthesized action plan including quick wins, strategic shifts, brand positioning pillars, and consensus insights.
Competitor Analysis
Target audience clarity, competitive landscape, key differentiators, and perceived brand weaknesses.
GEO Radar
Tracked buyer queries with the latest per-model rank, verdict and displacing competitor, plus an overall win rate. Alias: geo_radar. Reads stored results only; it never spends polling credits.
{
"success": true,
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"geo": {
"has_data": true,
"tracked_queries_count": 3,
"overall_win_rate": 67,
"queries": [{
"id": 42,
"query": "best CRM for small agencies",
"intent": "Category Discovery",
"source": "suggested",
"win_rate": 60,
"results": [{ "model": "OpenAI", "rank": 2, "verdict": "Top 3 Shortlist",
"displacer": "Rival Co", "drift_direction": "stable" }]
}]
}
}
}
curl "https://brandbardai.com/api/v1/analysis/550e8400-e29b-41d4-a716-446655440000?sections=social_media,comparisons&models=OpenAI,Anthropic&min_score=8" \ -H "X-API-Key: YOUR_API_KEY"
Compare Analyses
/api/v1/compare/{oldUuid}/{newUuid}
Performs a deep side-by-side comparison between two analyses. Perfect for measuring how your brand's AI perception evolves over time after strategic updates, or benchmarking your brand directly against a key competitor.
curl "https://brandbardai.com/api/v1/compare/OLD_UUID/NEW_UUID?format=markdown" \ -H "X-API-Key: YOUR_API_KEY"
Results Schema
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"average_score": 8.5,
"score_variance": 0.42,
"consensus_archetype": "The Creator",
"action_plan": {
"actionable_recommendations": {
"quick_win": "Clarify AI agent integration specs on developer hub",
"strategic_shift": "Elevate enterprise compliance messaging"
}
},
"social_media": {
"active_platforms": [{ "platform": "Twitter / X", "url": "https://x.com/brand" }],
"viral_hooks": ["Why 90% of brands are invisible to AI models in 2026"],
"content_themes": ["Council of Models", "Perception Variance"]
},
"comparisons": {
"highest_model": { "model": "Anthropic", "score": 9.2 },
"lowest_model": { "model": "DeepSeek", "score": 7.8 },
"archetype_distribution": { "The Creator": 4, "The Sage": 2 }
},
"responses": [
{
"model": "OpenAI",
"score": 9.0,
"archetype": "The Innovator",
"themes": ["Autonomous AI", "Council Architecture"]
}
]
}
My Analyses
/api/v1/my-analyses
Returns a paginated list of your historical brand audits.
Register Webhook
/api/v1/webhooks
Programmatically configure your agent's callback endpoint. When registered, BrandBard will push a high-density JSON payload to this URL the moment the Council synthesis is complete.
{
"url": "https://agent.example.com/v1/callback",
"secret": "optional_custom_secret_min_16_chars",
"rotate_secret": true
}
Developer Snippets
Drop these snippets into your agentic workflow to immediately start synthesizing brand perception.
Python (requests)
import requests api_key = "bb_live_xxxxxxxxxxxxxxxx" url = "https://brandbardai.com/api/v1/analysis" payload = { "url": "https://example.com", "models": ["OpenAI", "Anthropic"] } headers = { "Content-Type": "application/json", "X-API-Key": api_key } response = requests.post(url, json=payload, headers=headers) print(response.json())
Node.js (fetch)
const response = await fetch('https://brandbardai.com/api/v1/analysis', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-Key': 'bb_live_xxxxxxxxxxxxxxxx' }, body: JSON.stringify({ url: 'https://example.com', models: ['OpenAI', 'Anthropic'] }) }); const data = await response.json(); console.log(data);
Get Status
/api/v1/webhooks
Returns the currently registered webhook configuration for your agent.
Remove Webhook
/api/v1/webhooks
Disables the webhook notification pipeline for your account.
Webhook Security
To protect your endpoint from unauthorized requests, BrandBard includes an X-BrandBard-Signature header in every push. You MUST verify this HMAC signature using your signing secret.
Verification Logic (SHA-256)
Compute a keyed-hash message authentication code (HMAC) using the sha256 hash function and your personal secret.
$signature = hash_hmac('sha256', $raw_body, $secret);
Usage & Limits
Monitor your credit balance and tier status. Limits are strictly enforced per API key to ensure infrastructure stability.
{
"success": true,
"data": {
"user": { "name": "Ada", "email": "[email protected]", "tier": "Pro", "credits": 25, "polling_credits": 200 },
"usage": {
"monthly_analyses": 4,
"recent_transactions": [ ... ],
"rate_limits": {
"minute": { "limit": 20, "remaining": 19 },
"hour": { "limit": 200, "remaining": 196 },
"day": { "limit": 1000, "remaining": 996 }
}
},
"billing": { "billing_portal_url": "...", "checkout_endpoint": "...", "pricing_tiers": { ... } }
}
}
Rate Limit Headers (every authenticated response)
X-RateLimit-Limit: 1000 # daily ceiling for your tier X-RateLimit-Remaining: 996 # daily requests left X-RateLimit-Reset: 1767225600 # unix timestamp X-AI-RateLimit-* # vendor-prefixed mirrors, plus X-AI-Tier429 Response Body (with Retry-After header)
{
"success": false,
"error_code": "RATE_LIMIT_EXCEEDED",
"error": "Too Many Requests",
"message": "Too many AI analysis requests for your pro tier. Please wait before trying again.",
"retry_after": 37
}
Free accounts and unauthenticated callers (per IP) are limited to 2 per minute, 20 per hour and 50 per day. Unrecognised tiers are treated as Free.
Starter ($19/mo or $149/yr)
Pro ($39/mo or $299/yr)
Agency ($59/mo or $479/yr)
Programmatic Checkout
/api/v1/user/checkout
Enables autonomous agents to request a secure Stripe payment link for subscription upgrades (starter_monthly, starter_yearly, pro_monthly, pro_yearly, agency_monthly, agency_yearly) or one-off full report unlocks ($12 via report_uuid).
{
"plan": "pro_monthly",
"report_uuid": "550e8400-e29b-41d4-a716-446655440000",
"success_url": "https://your-app.com/success"
}