Overview
The PODDNA Brain API exposes a spoken-word intelligence layer as a reusable REST API. It powers transcript extraction, semantic analysis (entity detection, pattern recognition, claims tracking, speaker identification, contradiction detection), and automated content production.
Base URL for all endpoints:
https://<your-domain>/api/brain/
Authentication
All /api/brain/* endpoints require a valid API key sent via the Authorization header using the Bearer scheme.
Authorization: Bearer pk_brain_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keys are SHA-256 hashed before storage, so the raw key cannot be recovered. Each key has:
- Scopes — what operations the key can perform (default:
["read"]) - Rate limit — requests per minute (default: 60)
- Active flag — can be revoked at any time
Rate Limits
Each API key has a per-minute rate limit. The current state is returned via response headers:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute for this key |
X-RateLimit-Remaining | Requests remaining in current window |
Retry-After | Seconds until rate limit resets (only on 429) |
When the limit is exceeded, the API returns HTTP 429 Too Many Requests with a Retry-After header.
Error Handling
All errors return JSON with an error field:
{
"error": "Description of what went wrong"
}
| Code | Meaning |
|---|---|
400 | Bad request — missing or invalid parameters |
401 | Unauthorized — missing or invalid API key |
403 | Forbidden — key revoked or insufficient scope |
404 | Resource not found |
429 | Rate limit exceeded |
500 | Internal server error |
List Podcasts
Browse all processed podcasts with episode and speaker counts.
[
{
"id": "uuid",
"title": "My First Million",
"image_url": "https://...",
"episode_count": "24",
"speaker_count": "5"
}
]
List Episodes
Browse analyzed episodes with intelligence metrics.
| Name | Type | Description |
|---|---|---|
limit | integer | Max results (default: 50) |
offset | integer | Pagination offset (default: 0) |
podcastId | string | Filter by podcast UUID |
q | string | Search episode titles |
[
{
"id": "uuid",
"title": "How I Built a $10M Business",
"published_at": "2025-01-15T00:00:00Z",
"podcast_title": "My First Million",
"podcast_id": "uuid",
"statement_count": "150",
"classification_count": "145",
"relation_count": "12",
"speaker_count": "3",
"has_integrity_score": true
}
]
Episode Processing Status
Check which analysis steps have completed for an episode.
{
"episodeId": "uuid",
"episodeTitle": "How I Built a $10M Business",
"podcastTitle": "My First Million",
"processing": {
"transcribed": true,
"statementsExtracted": true,
"classified": true,
"entitiesLinked": true,
"topicsAssigned": true,
"embedded": true,
"relationsDiscovered": true,
"speakersResolved": false,
"contradictionsDetected": false,
"integrityScored": false
}
}
Validate YouTube Video
Pre-check a YouTube video before submitting it for processing. Returns video metadata, caption availability, duration checks, and whether it has already been processed.
Validate a YouTube video URL before ingestion. Checks: accessibility, age-restriction, live status, duration limit (3 hours), caption availability, and duplicate detection.
| Name | Type | Description |
|---|---|---|
youtubeUrl | string | Full YouTube URL (required). Supports youtube.com/watch, youtu.be, and /shorts/ formats. |
{
"youtubeUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
{
"valid": true,
"youtubeVideoId": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"durationSeconds": 212,
"thumbnail": "https://img.youtube.com/vi/dQw4w9WgXcQ/mqdefault.jpg",
"hasCaptions": true,
"estimatedProcessingMinutes": 2,
"captionNote": null,
"alreadyProcessed": false,
"existingEpisodeId": null
}
alreadyProcessed is true, you can skip ingestion and fetch results directly using the returned existingEpisodeId.
Viral Moments
Get Viral Moments
Get all AI-detected viral moments for an episode. Each moment includes a virality score, suggested TikTok-style title, shareability factors, and platform recommendations.
{
"episodeId": "uuid",
"episodeTitle": "How I Built a $10M Business",
"count": 8,
"moments": [
{
"id": "uuid",
"momentKind": "viral",
"startTime": 245,
"endTime": 278,
"durationSeconds": 33,
"text": "I literally built the entire company from a $500 laptop...",
"viralityScore": 92,
"hookReason": "Rags-to-riches origin story with specific dollar amount creates aspirational content",
"suggestedTitle": "He Built a $10M Company From a $500 Laptop",
"pullQuote": "Built the entire company from a $500 laptop",
"hookType": "underdog_story",
"shareabilityFactors": ["aspirational", "quantified", "underdog"],
"contentType": "story",
"topics": ["entrepreneurship", "bootstrapping"],
"entities": ["Stripe"],
"platform": "tiktok",
"displayOrder": 1
}
]
}
Detect Viral Moments (Trigger Job)
Queue an AI-powered viral moment detection job using Claude's agentic 3-pass approach. The episode must have a transcript. Returns a job ID for status tracking.
{
"jobId": "uuid",
"status": "queued",
"episodeId": "uuid"
}
Processing Status
Detailed step-by-step processing status for an episode. Shows transcription and viral moment detection progress, providers used, error details, and overall status.
{
"episodeId": "uuid",
"episodeTitle": "How I Built a $10M Business",
"podcastTitle": "My First Million",
"overallStatus": "processing",
"steps": {
"transcription": {
"status": "ready",
"provider": "youtube",
"segmentCount": 342
},
"viralMoments": {
"status": "processing",
"count": 0
}
},
"errors": []
}
not_started → pending → processing → ready (or failed). The overallStatus is complete when all requested analysis steps are ready, failed if any step failed, or processing while work is in progress.
Episode Detail
Full aggregated intelligence payload for an episode. Use the include parameter to select which sections to load. Without it, all sections except transcript are returned.
| Name | Type | Description |
|---|---|---|
include | string | Comma-separated: statements, entities, speakers, contradictions, patterns, narrative, viral_moments, transcript. Transcript excluded by default (large payload). |
{
"id": "uuid",
"title": "How I Built a $10M Business",
"publishedAt": "2025-01-15T00:00:00Z",
"podcastId": "uuid",
"podcastTitle": "My First Million",
"duration": 3600,
"statements": [...],
"entities": [...],
"speakers": [...],
"contradictions": [...],
"patterns": [...],
"narrative": { "chapters": [...], "segments": [...] }
}
Episode Statements
All extracted statements for an episode, optionally with classifications (claim flags, sentiment, certainty).
| Name | Type | Description |
|---|---|---|
include_classifications | boolean | Set to 'false' to omit classifications (default: true) |
[
{
"id": "uuid",
"text": "Revenue grew 40% year over year",
"speaker": "Speaker 1",
"start_time": 120,
"end_time": 125,
"claim_flag": true,
"certainty": "high",
"polarity": "positive",
"sentiment": "confident"
}
]
Episode Entities
Canonical entities mentioned in an episode (people, companies, products, etc.).
[
{
"id": "uuid",
"name": "Stripe",
"type": "company",
"external_refs": { "wikipedia": "..." },
"mention_id": "uuid",
"link_confidence": 0.95
}
]
Episode Patterns
Discovered relations between statements — supports, contradicts, reiterates, etc.
[
{
"id": "uuid",
"statementAId": "uuid",
"statementBId": "uuid",
"relation": "supports",
"confidence": 0.87,
"episodeId": "uuid"
}
]
Episode Narrative
AI-generated chapter structure and semantic segments for an episode.
{
"chapters": [
{
"id": "uuid",
"title": "Opening - Background Story",
"summary": "Host introduces the guest...",
"start_time": 0,
"end_time": 480,
"display_order": 1,
"confidence": 0.92
}
],
"segments": [
{
"id": "uuid",
"topic_category": "business_strategy",
"sub_topic": "growth_metrics",
"intent": "inform",
"start_time": 120,
"end_time": 300,
"importance_score": 0.85,
"novelty_score": 0.7,
"clipability_score": 0.6
}
]
}
Episode Transcript
Raw transcript segments with speaker labels and timestamps.
[
{
"id": "uuid",
"text": "So tell me about your journey...",
"start_time": 0.5,
"end_time": 3.2,
"speaker": "Speaker 1",
"type": "speech"
}
]
Semantic Search
Natural language search across all analyzed statements using vector embeddings and cosine similarity.
| Name | Type | Description |
|---|---|---|
q | string | Search query (required) |
limit | integer | Max results (default: 20) |
episodeId | string | Restrict search to one episode |
claimOnly | boolean | Only return flagged claims |
[
{
"statementId": "uuid",
"episodeId": "uuid",
"episodeTitle": "Every Business I Tried",
"podcastTitle": "My First Million",
"startTime": 120,
"text": "Building the restaurant cost half a million dollars.",
"score": 0.68,
"similarity": 0.68,
"topics": [],
"entities": [],
"claimFlag": false
}
]
Speakers
List All Speakers
Browse the canonical speaker identity graph.
| Name | Type | Description |
|---|---|---|
limit | integer | Max results (default: 100) |
offset | integer | Pagination offset (default: 0) |
q | string | Search speakers by name |
[
{
"id": "uuid",
"name": "Sam Parr",
"aliases": ["sam", "Sam"],
"podcastCount": 1,
"episodeCount": 12
}
]
Get Speaker
Get a single speaker with their cross-episode appearances.
{
"id": "uuid",
"name": "Sam Parr",
"aliases": ["sam"],
"appearances": [
{
"episodeId": "uuid",
"episodeTitle": "How I Built...",
"speakerLabel": "Speaker 1",
"podcastId": "uuid"
}
]
}
Episode Speakers
Get all resolved speakers for a specific episode.
[
{ "id": "uuid", "name": "Sam Parr", "speakerLabel": "Speaker 1" }
]
Resolve Speakers (Trigger Job)
Queue an AI-powered speaker resolution job for an episode. Uses Gemini to match speaker labels to canonical identities.
{
"jobId": "uuid",
"status": "queued"
}
Contradictions
Get Contradictions
Get all detected contradictions within an episode.
[
{
"id": "uuid",
"statement_a_id": "uuid",
"statement_b_id": "uuid",
"relation": "contradicts",
"confidence": 0.89,
"statement_a_text": "We never raised any money",
"statement_a_start_time": 120,
"statement_b_text": "Our seed round was $2M",
"statement_b_start_time": 845
}
]
Detect Contradictions (Trigger Job)
Queue an AI-powered contradiction detection job using Claude.
{
"jobId": "uuid",
"status": "queued"
}
Topics
List Topics
Browse the hierarchical topic taxonomy with statement counts.
[
{
"id": "uuid",
"name": "Business Strategy",
"slug": "business-strategy",
"statement_count": "42"
}
]
Topic Statements
Get statements associated with a specific topic.
| Name | Type | Description |
|---|---|---|
limit | integer | Max results (default: 50) |
[
{
"id": "uuid",
"text": "We focused on product-market fit",
"start_time": 320,
"episode_id": "uuid",
"episode_title": "How I Built...",
"relevance": 0.95
}
]
On-Demand Ingestion
Upload Audio File
Upload an audio file directly via multipart form data. Returns a storageUrl that you can then pass to /api/brain/ingest with type audio_file. Max file size: 500 MB. Accepted formats: mp3, wav, ogg, flac, aac, m4a, webm, wma, amr.
| Name | Type | Description |
|---|---|---|
file | binary | Audio file (multipart form field, required). Max 500 MB. |
// multipart/form-data
// Field: file (binary audio file)
curl -X POST https://poddna.io/api/brain/upload \
-H "Authorization: Bearer pk_brain_..." \
-F "file=@/path/to/episode.mp3"
{
"storageUrl": "https://storage.googleapis.com/bucket/audio-uploads/uuid.mp3",
"objectPath": "audio-uploads/uuid.mp3",
"size": 15728640,
"mimeType": "audio/mpeg",
"originalName": "episode.mp3"
}
/api/brain/upload to get a storageUrl, then (2) pass that URL to /api/brain/ingest with "type": "audio_file". Alternatively, if your audio is already hosted publicly, skip step 1 and pass the URL directly.
Submit Content
Submit YouTube URLs, RSS feeds, or audio files for processing. The system automatically creates an episode, transcribes the content, and chains any requested analysis. Use analysisTypes to request specific intelligence pipelines.
| Name | Type | Description |
|---|---|---|
type | string | One of: rss_feed, youtube_url, audio_file (required) |
sourceUrl | string | URL to ingest — for audio_file, use the storageUrl from /api/brain/upload or any publicly accessible audio URL (required) |
priority | string | normal or high (default: normal) |
analysisTypes | string[] | Analysis pipelines to run after transcription. Options: viral_moments, narrative, entities, speakers, contradictions |
callbackUrl | string | URL to notify when complete |
metadata | object | Arbitrary metadata. For audio_file: title, durationSeconds, originalName are used if provided |
// YouTube URL
{
"type": "youtube_url",
"sourceUrl": "https://youtube.com/watch?v=VIDEO_ID",
"analysisTypes": ["viral_moments"],
"callbackUrl": "https://your-app.com/webhook"
}
// Audio file (after uploading via /api/brain/upload)
{
"type": "audio_file",
"sourceUrl": "https://storage.googleapis.com/bucket/audio-uploads/uuid.mp3",
"analysisTypes": ["viral_moments"],
"metadata": { "title": "My Episode", "durationSeconds": 3600 }
}
// Audio file (hosted externally)
{
"type": "audio_file",
"sourceUrl": "https://example.com/audio/episode.mp3",
"analysisTypes": ["viral_moments"]
}
{
"id": "uuid",
"status": "processing",
"episodeId": "uuid"
}
youtube_url, the system: (1) creates an episode and source record, (2) queues transcript extraction (YouTube captions → Whisper → AssemblyAI fallback), (3) automatically chains requested analysisTypes after transcription completes. The episodeId is returned immediately so you can poll processing status.
audio_file, the system: (1) creates an episode and source record, (2) sends the audio to AssemblyAI for transcription (with speaker diarization, chapters, entity detection, topics, and key phrases), (3) automatically chains requested analysisTypes after transcription completes. Poll status via GET /api/brain/ingest/:id.
Callback Webhooks
callbackUrl on POST /api/brain/ingest (or /api/brain/ingest/transcript), the system fires exactly one POST to that URL once all requested analysis is complete. No need to poll.
Payload (sent as JSON body):
{
"event": "ingestion.complete",
"ingestionRequestId": "uuid",
"episodeId": "uuid",
"sourceUrl": "https://youtube.com/watch?v=…",
"type": "youtube_url",
"completedAt": "2026-05-08T12:34:56.000Z",
"analysisTypes": ["viral_moments"],
"metadata": { "...your submitted metadata..." },
"results": {
"transcript": {
"ready": true,
"segmentCount": 1234,
"fetchUrl": "https://poddna.replit.app/api/brain/episodes/<episodeId>/transcript"
},
"viralMoments": {
"ready": true,
"count": 12,
"fetchUrl": "https://poddna.replit.app/api/brain/episodes/<episodeId>/viral-moments"
}
}
}
Headers:
X-Brain-Signature: sha256=<hex>— HMAC-SHA256 of"<timestamp>.<raw-body>"using your API key'swebhookSecret(returned once atPOST /api/admin/brain-keyscreation).X-Brain-Signature-Timestamp— Unix seconds, used in the signed string above.X-Brain-Event: ingestion.completeX-Brain-Delivery-Id— Unique per attempt; useful for idempotency on your side.X-Brain-Attempt— 1-based attempt counter (1–5).
Verification (Node):
import crypto from "crypto";
function verify(rawBody, headers, webhookSecret) {
const sig = headers["x-brain-signature"].slice("sha256=".length);
const ts = headers["x-brain-signature-timestamp"];
const expected = crypto.createHmac("sha256", webhookSecret)
.update(ts + "." + rawBody).digest("hex");
return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}
Retry policy: Up to 5 attempts with backoff: 10s, 30s, 2min, 10min. Your endpoint should return 2xx within 15 seconds. After 5 failed attempts, callbackStatus on the ingestion request is set to failed and no further attempts are made — you can still poll GET /api/brain/ingest/:id.
Delivery history: GET /api/brain/ingest/:id/deliveries returns every attempt (status code, response body excerpt, error message, duration) for debugging.
Get Ingestion Status
Check the status of a specific ingestion request. For YouTube URLs, includes real-time progress on transcript and analysis steps.
{
"id": "uuid",
"type": "youtube_url",
"sourceUrl": "https://youtube.com/watch?v=VIDEO_ID",
"status": "processing",
"episodeId": "uuid",
"priority": "high",
"processingSteps": [
{ "step": "transcript", "status": "complete", "completedAt": "..." },
{ "step": "viral_moments", "status": "processing" }
],
"progress": {
"transcriptReady": true,
"transcriptSegments": 342,
"viralMomentsReady": false,
"viralMomentsCount": 0
},
"createdAt": "2025-01-15T00:00:00Z"
}
List Ingestion Requests
List all ingestion requests, optionally filtered by status.
| Name | Type | Description |
|---|---|---|
status | string | Filter by status (pending, processing, completed, failed) |
limit | integer | Max results (default: 50) |
[...]
Webhooks
Receive HMAC-SHA256 signed event notifications when intelligence jobs complete. Events are delivered via HTTP POST to your registered URL. Webhooks auto-disable after 10 consecutive delivery failures.
List Webhooks
List all registered webhooks.
[
{
"id": "uuid",
"url": "https://your-app.com/webhook",
"events": ["episode.analyzed", "entities.extracted"],
"isActive": true,
"description": "Main integration"
}
]
Create Webhook
Register a new webhook endpoint.
| Name | Type | Description |
|---|---|---|
url | string | Delivery URL (required) |
secret | string | HMAC-SHA256 signing secret (required) |
events | string[] | Event types to subscribe to (required) |
description | string | Human-readable description |
{
"url": "https://your-app.com/webhook",
"secret": "your-webhook-signing-secret",
"events": ["episode.analyzed", "entities.extracted"],
"description": "My app integration"
}
{
"id": "uuid",
"url": "https://your-app.com/webhook",
"events": ["episode.analyzed", "entities.extracted"],
"isActive": true
}
Update Webhook
Update an existing webhook.
{
"events": ["episode.analyzed"],
"isActive": false
}
{ ... }
Delete Webhook
Delete a webhook.
{ "success": true }
Test Webhook
Send a test delivery to a webhook endpoint.
{ "success": true }
Submit Pre-Made Transcript
Submit a pre-made transcript directly — skip the transcription step entirely. The Brain API creates an episode, stores all segments immediately, marks the transcript as ready, and optionally queues analysis jobs (claims, viral moments, statements). This is the fastest way to get content into the intelligence layer when you've already transcribed the audio yourself (e.g., via Gemini Flash, Whisper, etc.).
Submit a pre-made transcript with segments. Episode is ready immediately — no transcription wait.
| Name | Type | Description |
|---|---|---|
title | undefined | Episode title (falls back to metadata.title, then 'Untitled Transcript') |
sourceUrl | undefined | Optional URL to the original audio/video file |
segments | undefined | Array of transcript segments. Each must have: startMs (number), endMs (number), text (string). Optional: speaker (string), type (string, default 'dialogue'). Max 10,000 segments. |
metadata | undefined | Optional metadata object. Supports: platform, type ('audio'/'video'), recordedAt (ISO date), plus any custom fields |
analysisTypes | undefined | Optional array of analysis jobs to queue after import. Valid: 'viral_moments', 'claims', 'statements' |
{
"title": "Lecture 12 - Cell Biology",
"sourceUrl": "https://example.com/audio/lecture12.webm",
"segments": [
{ "startMs": 0, "endMs": 4500, "text": "Welcome to today's lecture on cell biology.", "speaker": "Professor Smith" },
{ "startMs": 4500, "endMs": 12000, "text": "We'll be covering mitochondrial function and ATP synthesis.", "speaker": "Professor Smith" },
{ "startMs": 12000, "endMs": 18000, "text": "Can you remind us what we covered last week?", "speaker": "Student" }
],
"metadata": {
"platform": "crambo",
"type": "audio",
"recordedAt": "2026-03-10T14:00:00Z",
"courseId": "BIO-201",
"courseName": "Cell Biology"
},
"analysisTypes": ["claims"]
}
{
"id": "ing-request-uuid",
"episodeId": "episode-uuid",
"status": "complete",
"segmentCount": 3,
"queuedAnalysis": ["claims"]
}
Cross-Episode Intelligence
Synthesize insights across multiple episodes using AI. Send a list of episode IDs and a natural language query — the engine pulls transcript segments, claims, and chapter data from all specified episodes, then generates a structured cross-episode analysis. Works for any use case: sales call pattern analysis, lecture theme extraction, podcast series summaries, etc.
AI-powered cross-episode synthesis. Analyzes up to 50 episodes and returns themes, patterns, per-episode summaries, and a narrative that answers your query.
| Name | Type | Description |
|---|---|---|
episodeIds | undefined | Array of episode IDs to synthesize across (min 2, max 50) |
query | undefined | Natural language question to answer using cross-episode data |
outputFormat | undefined | Optional. 'structured' (default) for concise narrative, 'narrative' for longer prose |
{
"episodeIds": ["ep-id-1", "ep-id-2", "ep-id-3"],
"query": "What are the recurring themes and how do they evolve across these episodes?",
"outputFormat": "structured" // or "narrative" for longer prose
}
{
"synthesis": {
"themes": [
{
"theme": "Pricing Transparency",
"description": "Prospects consistently ask about pricing structure...",
"episodeEvidence": [
{ "episodeId": "ep-id-1", "episodeTitle": "Demo Call - Acme", "evidence": "Prospect asked about per-user pricing..." }
],
"frequency": 3
}
],
"patterns": [
{
"pattern": "Demo-First Strategy",
"description": "The seller consistently demonstrates the product before addressing pricing...",
"episodeIds": ["ep-id-1", "ep-id-2"]
}
],
"narrative": "Across these 3 episodes, the most common theme is...",
"episodeSummaries": [
{ "episodeId": "ep-id-1", "title": "Demo Call - Acme", "keyContribution": "Introduced the pricing objection pattern..." }
]
},
"meta": {
"episodesRequested": 3,
"episodesAnalyzed": 3,
"episodesSkipped": 0,
"totalSegments": 1200,
"totalClaims": 85,
"query": "What are the recurring themes...",
"outputFormat": "structured"
}
}
Import from Shared Zoom Link
Import a Zoom cloud recording from a shared link. No Zoom API credentials required — works with any publicly shared Zoom recording URL from any Zoom domain (zoom.us, company.zoom.us, etc.). The system extracts the recording metadata, downloads the VTT transcript, stores the meeting, and optionally converts it to an episode with AI analysis queued automatically.
Import a Zoom recording from a shared link URL.
| Name | Type | Description |
|---|---|---|
url | string | Required. Shared Zoom recording URL (/rec/play/... or /rec/share/...) |
autoConvert | boolean | Auto-convert to episode for analysis (default: true) |
autoAnalyze | boolean | Auto-queue AI analysis after conversion (default: true) |
{
"url": "https://zoom.us/rec/play/aBcDeFgHiJkLmNoPqRsTuVwXyZ...",
"autoConvert": true,
"autoAnalyze": true
}
{
"success": true,
"meetingId": "shared_1773101117985",
"topic": "Product Demo - Acme Corp",
"duration": 1800,
"startTime": "2026-03-06T14:43:26.000Z",
"transcriptFound": true,
"utteranceCount": 538,
"hasSpeakers": true,
"episodeId": "9cec763f-f854-496c-b4db-5c4ce6ae9e76",
"analysisJobId": "d26b3356-4a85-4855-b797-388afff8c49e"
}
https://zoom.us/rec/play/abc123...https://company-name.zoom.us/rec/play/abc123...https://zoom.us/rec/share/abc123...
The recording must be publicly shared (no passcode). Imported meetings get IDs prefixed with shared_. Once imported, use the List Meetings and Meeting Detail endpoints to access the data. Analysis results are available once the queued job completes (typically 1-2 minutes).
List Zoom Meetings
Retrieve Zoom meeting records with metadata, filterable by company name and date range. Meetings include editable fields (company, contact, notes, tags) that can be populated manually or auto-extracted by AI during analysis.
List Zoom meetings with metadata and analysis status.
| Name | Type | Description |
|---|---|---|
company | string | Filter by company name (case-insensitive partial match) |
after | ISO date | Only meetings after this date |
before | ISO date | Only meetings before this date |
limit | integer | Max results (default: 50, max: 200) |
offset | integer | Pagination offset (default: 0) |
{
"total": 85,
"offset": 0,
"limit": 50,
"meetings": [
{
"zoomMeetingId": "85412367890",
"topic": "SignWell Demo - Acme Corp",
"startTime": "2026-02-15T14:00:00.000Z",
"durationSec": 1800,
"hostEmail": "wayne@signwell.com",
"companyName": "Acme Corp",
"contactName": "Jane Smith",
"meetingDate": "2026-02-15T14:00:00.000Z",
"notes": "Initial discovery call",
"tags": ["discovery", "enterprise"],
"hasTranscript": true,
"episodeId": "uuid",
"hasAnalysis": true
}
]
}
Zoom Meeting Detail
Get a single Zoom meeting with full metadata, transcript status, and analysis summary including claim counts by type.
Get detailed meeting information including analysis summary.
| Name | Type | Description |
|---|---|---|
meetingId | string | Zoom meeting ID (path parameter) |
{
"zoomMeetingId": "85412367890",
"topic": "SignWell Demo - Acme Corp",
"startTime": "2026-02-15T14:00:00.000Z",
"durationSec": 1800,
"hostEmail": "wayne@signwell.com",
"companyName": "Acme Corp",
"contactName": "Jane Smith",
"meetingDate": "2026-02-15T14:00:00.000Z",
"notes": "Initial discovery call",
"tags": ["discovery", "enterprise"],
"year": 2026,
"hasTranscript": true,
"hasSpeakerLabels": true,
"episodeId": "uuid",
"analysis": {
"analysisVersion": 2,
"analyzedAt": "2026-02-16T10:00:00.000Z",
"claimCounts": {
"buyer_claim": 8,
"gate_check": 3,
"decision_signal": 4,
"risk_frame": 2,
"seller_emphasis": 5
}
}
}
Follow Podcast
Record that a user follows a podcast. The Brain API stores only follows — seen state, interests, and reading position are the responsibility of the calling frontend (e.g. Lovable). Podcast must already exist in PodDNA (use Search External Podcasts to get the podDnaId).
Follow a podcast. Returns 409 if already following.
| Name | Type | Description |
|---|---|---|
userId | string | External user ID (path parameter) — any opaque string, owned by the calling app |
podcastId | string (body) | PodDNA podcast UUID (from catalog or search results) |
{
"podcastId": "2806539a-aaf4-4dcd-8922-acaa9868351a"
}
{
"success": true,
"podcastId": "2806539a-aaf4-4dcd-8922-acaa9868351a",
"userId": "user_abc123"
}
Unfollow Podcast
Remove a podcast follow. No-ops silently if not following.
| Name | Type | Description |
|---|---|---|
userId | string | External user ID (path parameter) |
podcastId | string | PodDNA podcast UUID (path parameter) |
{
"success": true
}
List Follows
Return the list of podcasts a user follows, with metadata.
| Name | Type | Description |
|---|---|---|
userId | string | External user ID (path parameter) |
{
"userId": "user_abc123",
"count": 3,
"follows": [
{
"podcastId": "2806539a-aaf4-4dcd-8922-acaa9868351a",
"followedAt": "2026-04-01T09:30:00Z",
"podcast": {
"id": "2806539a-aaf4-4dcd-8922-acaa9868351a",
"title": "Acquired",
"imageUrl": "https://...",
"author": "Ben Gilbert and David Rosenthal"
}
}
]
}
Personalized Feed
Returns a ranked feed of moments from podcasts the user follows. Only the 50 most recent processed episodes per followed podcast are considered — this keeps the feed fresh and prevents a 1000-episode back-catalog from flooding new follows. If the user has no follows yet, the feed falls back to the global trending feed. Supports cursor-based pagination and client-side filtering.
Ranked moment feed, personalised to the user's followed podcasts.
| Name | Type | Description |
|---|---|---|
userId | string | External user ID (path parameter) |
limit | integer | Max moments to return (default: 20, max: 100) |
cursor | string | Opaque pagination cursor from a previous response's nextCursor |
topics | string | Comma-separated topic slugs to filter by (e.g. ai,strategy) |
minScore | integer | Minimum virality_score (0–100) to include. Moments below this threshold are excluded. Negative values are silently ignored; 0 is accepted and applies no floor. |
excludeIds | string | Comma-separated moment UUIDs to omit — use this to exclude moments the user has already seen (Lovable manages seen state) |
{
"userId": "user_abc123",
"count": 20,
"nextCursor": "eyJzY29yZSI6IjAuODIiLCJjcmVhdGVkQXQiOiIyMDI2LTA0LTAxVDEwOjAwOjAwWiIsImlkIjoiYWJjIn0=",
"moments": [
{
"id": "uuid",
"text": "The real moat is distribution, not technology",
"startTime": 1234,
"endTime": 1267,
"rankScore": 0.94,
"topics": ["strategy", "tech"],
"podcastId": "uuid",
"podcastTitle": "Acquired",
"podcastImageUrl": "https://...",
"episodeId": "uuid",
"episodeTitle": "Jensen Huang",
"publishedAt": "2026-03-20T00:00:00Z"
}
]
}
excludeIds on each request with the IDs of moments already shown. The feed cursor handles chronological pagination; excludeIds handles client-side deduplication within a session.
Trending Moments
Global feed of high-scoring moments across all podcasts, ordered by rank score. Not personalised — use the Personalized Feed for user-specific results.
Return the top trending moments across the whole catalog.
| Name | Type | Description |
|---|---|---|
limit | integer | Max moments (default: 20, max: 100) |
cursor | string | Pagination cursor from previous response |
topics | string | Comma-separated topic slugs to filter |
minScore | integer | Minimum virality_score (0–100) to include. Moments below this threshold are excluded. Negative values are silently ignored; 0 is accepted and applies no floor. |
excludeIds | string | Comma-separated moment UUIDs to exclude |
{
"count": 20,
"nextCursor": "eyJzY29yZSI6IjAuNzMiLCJjcmVhdGVkQXQiOiIyMDI2LTA0LTAxVDA4OjAwOjAwWiIsImlkIjoieHl6In0=",
"moments": [
{
"id": "uuid",
"text": "We're at an inflection point for AI in healthcare",
"startTime": 540,
"endTime": 574,
"rankScore": 0.97,
"topics": ["ai", "healthcare"],
"podcastId": "uuid",
"podcastTitle": "The Knowledge Project",
"episodeTitle": "The Future of Medicine",
"publishedAt": "2026-03-28T00:00:00Z"
}
]
}
Discover Podcasts
Browse podcasts already in PodDNA, ordered by episode count and activity. Useful for building an onboarding screen where users pick podcasts to follow.
Paginated list of podcasts in PodDNA for discovery.
| Name | Type | Description |
|---|---|---|
limit | integer | Max results (default: 20, max: 100) |
cursor | string | Offset-based pagination cursor from previous response |
q | string | Optional keyword search against podcast titles/authors |
{
"count": 10,
"nextCursor": "eyJvZmZzZXQiOjEwfQ==",
"podcasts": [
{
"id": "uuid",
"title": "Lex Fridman Podcast",
"author": "Lex Fridman",
"imageUrl": "https://...",
"episodeCount": 420,
"momentCount": 3800,
"topTopics": ["ai", "physics", "consciousness"]
}
]
}
Suggest Categories
Returns the most popular topic slugs in the catalog. Useful for building a topic-picker UI during onboarding.
Return top topic slugs by moment frequency.
| Name | Type | Description |
|---|---|---|
limit | integer | Max categories to return (default: 20) |
{
"categories": [
{ "slug": "entrepreneurship", "label": "Entrepreneurship", "momentCount": 4200 },
{ "slug": "ai", "label": "AI", "momentCount": 3800 },
{ "slug": "investing", "label": "Investing", "momentCount": 2900 }
]
}
Unified Search
Search across moments, episodes, and podcasts in a single request. Returns ranked results per type.
Keyword search across moments, episodes, and podcasts.
| Name | Type | Description |
|---|---|---|
q | string | Search query (required) |
limit | integer | Max results per type (default: 5) |
{
"query": "interest rates",
"moments": [
{
"id": "uuid",
"text": "Interest rates are the gravity of finance",
"podcastTitle": "We Study Billionaires",
"episodeTitle": "Warren Buffett's Framework"
}
],
"episodes": [
{
"id": "uuid",
"title": "The Fed and You",
"podcastTitle": "Planet Money"
}
],
"podcasts": [
{
"id": "uuid",
"title": "Macro Voices"
}
]
}
Search External Podcasts
Search the Podcast Index directory for podcasts and cross-reference with PodDNA. Use this to let users discover podcasts from the broader internet — results include an inPodDNA flag so your UI can show a Follow button (if already in PodDNA) or a Request to add button (if not yet imported).
Search Podcast Index, return results annotated with PodDNA presence.
| Name | Type | Description |
|---|---|---|
q | string | Search query (required) |
limit | integer | Max results (default: 10, max: 20) |
{
"source": "podcast_index",
"count": 5,
"podcasts": [
{
"podDnaId": "2806539a-aaf4-4dcd-8922-acaa9868351a",
"podcastIndexFeedId": "48166",
"title": "Acquired",
"author": "Ben Gilbert and David Rosenthal",
"description": "The history and strategy of great technology companies.",
"artworkUrl": "https://...",
"categories": ["Technology", "Business"],
"totalEpisodeCount": 156,
"recentEpisodeCount": 50,
"inPodDNA": true
},
{
"podDnaId": null,
"podcastIndexFeedId": "745287",
"title": "Earn Your Leisure",
"author": "iHeartPodcasts",
"description": "Financial literacy and wealth building.",
"artworkUrl": "https://...",
"categories": ["Business"],
"totalEpisodeCount": 1000,
"recentEpisodeCount": 50,
"inPodDNA": false
}
]
}
inPodDNA: true→ show Follow button — callPOST /user/:userId/followwith the returnedpodDnaIdinPodDNA: false→ show Add & Follow button — callPOST /podcasts/importwith thefeedUrl, then follow the returnedpodDnaId
Episode counts: totalEpisodeCount is the raw Podcast Index backlog (can be 1000+). recentEpisodeCount is capped at 50 — this is the number of recent episodes the feed will surface moments from. Show recentEpisodeCount in your UI so users see "50 episodes" not "1000 episodes".
Falls back to local PodDNA search if Podcast Index API credentials (PODCAST_INDEX_API_KEY / PODCAST_INDEX_API_SECRET) are not configured. The source field in the response indicates which backend was used (podcast_index or local).
Import Podcast from RSS
Import any podcast into PodDNA from its RSS feed URL (or Podcast Index feed ID). The Brain parses the feed, creates the podcast record, and queues the most recent episodes for transcription and viral moment detection. Once processing completes, moments appear in the user's feed automatically.
This is the second step of the "Add & Follow" flow for podcasts that return inPodDNA: false from Search External Podcasts.
Import a podcast by RSS feed URL and queue its recent episodes for processing.
| Name | Type | Description |
|---|---|---|
feedUrl | string | RSS feed URL of the podcast. Pass the feedUrl returned by Search External Podcasts. |
podcastIndexFeedId | string | Alternative to feedUrl: Podcast Index numeric feed ID. The Brain resolves the feed URL automatically (requires Podcast Index API credentials). |
episodeLimit | integer | Max number of recent episodes to import and queue (default: 10, max: 50). Only applies on first import. |
{
"feedUrl": "https://www.lennyspodcast.com/feed",
"episodeLimit": 10
}
{
"podDnaId": "2806539a-aaf4-4dcd-8922-acaa9868351a",
"title": "Lenny's Podcast: Product | Career | Growth",
"artworkUrl": "https://...",
"status": "importing",
"episodesQueued": 10,
"alreadyExisted": false
}
- User searches →
GET /search/podcasts?q=...→ gets result withinPodDNA: falseand afeedUrl - Call
POST /podcasts/importwith thatfeedUrl→ get backpodDnaIdandstatus: "importing" - Call
POST /user/:userId/followwithpodDnaIdimmediately — no need to wait for processing - Episodes are transcribed and analysed in the background. Moments appear in the user's feed as they complete (typically within a few minutes per episode).
Idempotent: calling import on a podcast already in PodDNA returns status: "already_imported" and the existing podDnaId — safe to call multiple times.
Status field: importing = new import, processing started. already_imported = podcast was already in PodDNA, nothing changed.
API Key Management
Create API Key
Create a new Brain API key. The raw key is returned only once.
| Name | Type | Description |
|---|---|---|
name | string | Key name/label (required) |
scopes | string[] | Permissions (default: ["read"]) |
rateLimitPerMin | integer | Rate limit (default: 60) |
{
"name": "Production App",
"scopes": ["read"],
"rateLimitPerMin": 120
}
{
"id": "uuid",
"name": "Production App",
"keyPrefix": "pk_brain_40782a",
"scopes": ["read"],
"rateLimitPerMin": 120,
"isActive": true,
"rawKey": "pk_brain_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"note": "Save this key now. It will not be shown again."
}
List API Keys
List all API keys (hashes are not returned).
[
{
"id": "uuid",
"name": "Production App",
"keyPrefix": "pk_brain_40782a",
"scopes": ["read"],
"rateLimitPerMin": 120,
"isActive": true,
"lastUsedAt": "2025-01-15T10:30:00Z"
}
]
Update API Key
Update key properties (name, scopes, rate limit, active status).
{
"rateLimitPerMin": 200,
"isActive": true
}
{ ... }
Revoke API Key
Permanently revoke an API key.
{ "success": true }