agentleFS
kalturakaltura/kaltura-agents-api-guides/AGENTS.md

kaltura-agents-api-guides

AGENTS.md4 starsChanged 3 months agoMITView on GitHub

This project produces Kaltura API documentation for AI agents building applications on Kaltura. Every guide must be accurate, tested against the live API, and written so an agent can follow it to build integrations safely, securely, and efficiently.

  • Reads credentials
  • Sends data out
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

39 rules. About 0 are common, 20 are distinctive, and 19 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 19

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All tests must pass against the live Kaltura API before a guide is considered done.

    line 78
  2. Distinctive:

    Positive framing only: Document what works and how to use it.

    line 82
  3. Very specific:

    Language-agnostic: All API examples use curl with shell variables.

    line 83
  4. Distinctive:

    Live-tested: Every guide has a companion test script that validates documented behavior against the real API.

    line 84
  5. Distinctive:

    Agent-first: Write for an AI agent that reads top-to-bottom and executes.

    line 85
  6. Very specific:

    Always include format=1 for JSON responses

    line 124
  7. Distinctive:

    Positive framing: Write "Use UTC format for dates" instead of describing what fails.

    line 144
  8. Distinctive:

    Language-agnostic examples: Use curl for all server-side API calls.

    line 145
  9. Distinctive:

    Emojis: Only when explicitly requested.

    line 149
  10. Distinctive:

    Use "multi-account" terminology: Write "multi-account" or "parent-child account" when describing Kaltura's multi-account model.

    line 152
  11. Very specific:

    Polling pattern: Check baseEntry.get for status=2 with interval/timeout

    line 175
  12. Very specific:

    Search for child entries: Use parentEntryIdEqual filter to retrieve child entries (multi-stream, clip children).

    line 177
  13. Very specific:

    Cue point filter constraint: Every cuePoint.list / cuePoint.count call must include entryIdEqual, entryIdIn, idEqual, or idIn — calls …

    line 179
  14. Distinctive:

    Every guide must steer agents toward production-quality, secure integrations:

    line 183
  15. Very specific:

    Scope KS privileges: Use edit:entryId, sview:*, setrole:ROLE, iprestrict, urirestrict to limit what a session can access.

    line 186
  16. Distinctive:

    Set KS expiry: Default to short-lived sessions (1-4 hours).

    line 187
  17. Very specific:

    Verify webhook signatures: Always validate HMAC signatures on incoming webhooks using SHA256(signing_secret + body).

    line 189
  18. Distinctive:

    Use Kaltura's built-in capabilities: Prefer Kaltura REACH for enrichment services (captions, translation, moderation, and more), Agents …

    line 191
  19. Distinctive:

    Handle errors gracefully: Every API call can fail — check for error responses, implement retries with backoff for transient failures, and …

    line 192
  20. Very specific:

    Protect content with Access Control: Use accessControlProfile to restrict content by IP, domain, geo, or scheduling rules rather than …

    line 193
  21. Very specific:

    Use CAN-SPAM compliant email: When sending emails via the Messaging API, always include unsubscribe links and respect opt-out preferences.

    line 194
  22. Very specific:

    Breaking changes: use !: feat!: restructure guide format → major bump.

    line 264
  23. Very specific:

    Read the file first: Always Read the guide file before making any edit — your memory of file contents from earlier in the conversation is …

    line 279
  24. Very specific:

    Run the companion test: After any edit, run python3 tests/test_{name}_api.py to verify the guide is still accurate.

    line 281
  25. Very specific:

    Update cross-references: If the edit changes section numbers, titles, or adds new content, update GUIDE_MAP.md, README.md, PLAN.md, …

    line 282
  26. Very specific:

    Verify accessibility: Test every action you plan to document with a customer account KS.

    line 288
  27. Very specific:

    Write the guide: Follow the header block, numbered sections, curl examples, Related Guides structure.

    line 289
  28. Distinctive:

    Run tests: All tests must pass against the live API.

    line 291
  29. Distinctive:

    Cross-reference: Add to Related Guides sections of existing guides where relevant.

    line 292
  30. Very specific:

    Update GUIDE_MAP.md: Add the new guide to the reading order tiers, dependency graph, and decision tree.

    line 293
  31. Distinctive:

    Update PLAN.md: Add a row to the Completed Guides table.

    line 294
  32. Very specific:

    Commit with conventional format: Use feat(service-name): add Service Name API guide with N E2E tests.

    line 295
  33. Distinctive:

    Iterate: If tests reveal undocumented behavior, update the guide to match reality.

    line 296
  34. Distinctive:

    Verify every enum table against the generated client libraries (PHP or TypeScript)

    line 317
  35. Distinctive:

    When an enum has plugin-contributed values beyond the core set, note this in the guide

    line 320
  36. Very specific:

    Run vendorCatalogItem.list or equivalent list actions without filters to discover all active values

    line 325
  37. Distinctive:

    Verify against the service's own OpenAPI/Swagger spec (in the service repo or provided by the team)

    line 332
  38. Very specific:

    Update the test file's DOCUMENTED_* set to match the complete enum

    line 342
  39. Distinctive:

    Run the test to confirm no undocumented values appear in live responses

    line 343

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Kaltura API Guides — Project Standards

This project produces Kaltura API documentation for AI agents building applications on Kaltura. Every guide must be accurate, tested against the live API, and written so an agent can follow it to build integrations safely, securely, and efficiently.

Repository Structure

Kaltura API Guides/
├── AGENTS.md                              # This file
├── PLAN.md                                # Master roadmap and API landscape
├── GUIDE_MAP.md                           # Dependency graph, reading order, decision tree
├── KALTURA_API_GETTING_STARTED.md         # API structure, first call, multirequest, errors
├── KALTURA_SESSION_GUIDE.md               # KS generation and management
├── KALTURA_GETTING_CREDENTIALS.md         # Obtain credentials, configure .env, verify access
├── KALTURA_APPTOKENS_API.md               # Secure auth with AppTokens
├── KALTURA_ESEARCH_API.md                 # Unified search
├── KALTURA_UPLOAD_AND_INGESTION_API.md     # Upload, ingest, entry CRUD, flavors, attachments
├── KALTURA_VIDEO_EDITING_API.md            # Trim, clip, concat, overlay, chroma key, caption burn-in, effects
├── KALTURA_CONTENT_DELIVERY_API.md        # playManifest, serve, download, delivery profiles, CDN, access control
├── KALTURA_THUMBNAIL_API.md               # Dynamic thumbnail URL, thumbAsset, thumbParams
├── KALTURA_PLAYER_EMBED_GUIDE.md          # Player v7 embed (iframe + JS)
├── KALTURA_REACH_API.md                   # Enrichment services marketplace: 23 service types, machine + human, 80+ languages
├── KALTURA_AGENTS_MANAGER_API.md          # Automated content processing
├── KALTURA_AI_GENIE_API.md                # Conversational AI search
├── KALTURA_EVENTS_PLATFORM_API.md         # Virtual events
├── KALTURA_MULTI_STREAM_API.md            # Dual/multi-screen entries
├── KALTURA_APP_REGISTRY_API.md            # Application instance registry
├── KALTURA_USER_PROFILE_API.md            # Per-app user profiles & attendance
├── KALTURA_MESSAGING_API.md               # Template-based email messaging
├── KALTURA_EVENT_NOTIFICATIONS_WEBHOOK_AND_EMAIL_API.md                # HTTP webhooks & email via Messaging Service
├── KALTURA_USER_MANAGEMENT_API.md         # User CRUD, roles (RBAC), groups
├── KALTURA_AUTH_BROKER_API.md             # SSO/SAML auth profiles, app subscriptions
├── KALTURA_ACCESS_CONTROL_API.md              # Access control profiles, rules, conditions
├── KALTURA_CATEGORIES_AND_ENTITLEMENTS_API.md # Categories, membership, entitlements
├── KALTURA_CUSTOM_METADATA_API.md         # XSD schemas, metadata profiles, XSLT transforms
├── KALTURA_CAPTIONS_AND_TRANSCRIPTS_API.md # Caption assets, transcripts, multi-language, REACH
├── KALTURA_ANALYTICS_REPORTS_API.md       # Reports, CSV exports, live analytics, stream health
├── KALTURA_ANALYTICS_EVENTS_COLLECTION_API.md  # Playback & engagement event collection
├── KALTURA_GAMIFICATION_API.md            # Leaderboards, badges, certificates, lead scoring
├── KALTURA_DISTRIBUTION_API.md            # Content distribution connectors (push to YouTube/FB/FTP)
├── KALTURA_SYNDICATION_API.md             # Syndication feeds (RSS/MRSS/iTunes/Roku pull)
├── KALTURA_EXPERIENCE_COMPONENTS_API.md   # Experience components index (links to standalone guides)
├── KALTURA_EXPRESS_RECORDER_API.md        # Browser-based WebRTC recording
├── KALTURA_CAPTIONS_EDITOR_API.md         # Interactive caption editing with video/waveform sync
├── KALTURA_CONVERSATIONAL_AVATAR_API.md   # Agentic Avatars — AI-powered conversational video avatars (intelligent-agents-sdk)
├── KALTURA_CNC_API.md                     # Chat & Collaborate (real-time chat, Q&A, polls)
├── KALTURA_GENIE_WIDGET_API.md            # Conversational AI search widget
├── KALTURA_MEDIA_MANAGER_API.md           # Browsable media library (select, upload, manage entries)
├── KALTURA_CONTENT_LAB_WIDGET_API.md             # AI content repurposing (summaries, chapters, clips, quizzes)
├── KALTURA_AGENTS_WIDGET_API.md           # Automated content-processing agent management UI
├── KALTURA_VOD_AVATAR_API.md              # Pre-recorded avatar video generation from scripts
├── KALTURA_ANALYTICS_EMBED_API.md         # Embeddable analytics dashboards via iframe
├── KALTURA_UNISPHERE_FRAMEWORK_API.md     # Unisphere micro-frontend framework (loader, workspace, services)
├── KALTURA_MULTI_ACCOUNT_MANAGEMENT_API.md # Multi-account management, cross-account analytics
├── KALTURA_MODERATION_API.md              # Content moderation: flagging, approve/reject, AI moderation via REACH
├── KALTURA_CUE_POINTS_API.md             # Cue points hub: temporal metadata concepts, base service, eSearch, protocols
├── KALTURA_QUIZ_API.md                   # Interactive video quizzes: questions, scoring, reports, IVQ plugin
├── KALTURA_CHAPTERS_AND_SLIDES_API.md    # Chapters, slides, timedThumbAsset workflow, navigation plugin
├── KALTURA_ANNOTATIONS_API.md            # Annotations, threaded replies, hotspots, searchableOnEntry
├── KALTURA_AD_CUE_POINTS_API.md          # VAST/VPAID ad insertion: pre-roll, mid-roll, overlay
├── KALTURA_CODE_CUE_POINTS_API.md        # Code markers, view-change, forceStop, event/session cue points
├── KALTURA_LTI_INTEGRATION_GUIDE.md      # LTI integration: KAF modules, auth flows, deep linking, grade passback
├── version.txt                            # Current version (managed by release-please)
├── release-please-config.json             # Release automation config
├── .release-please-manifest.json          # Version tracking for release-please
└── tests/                                 # Companion test scripts

Verification Commands

cd "Kaltura API Guides/tests"
python3 test_multi_stream_api.py           # Run a specific test
python3 test_multi_stream_api.py --keep    # Preserve entries for browser testing
for f in test_*.py; do echo "=== $f ===" && python3 "$f" && echo "PASS" || echo "FAIL"; done

All tests must pass against the live Kaltura API before a guide is considered done. If a test fails, the guide is wrong — fix the guide, not the test.

Philosophy

  1. Positive framing only. Document what works and how to use it. State the correct approach directly — agents follow positive instructions more reliably than prohibitions.
  2. Language-agnostic. All API examples use curl with shell variables. Agents choose their own language.
  3. Live-tested. Every guide has a companion test script that validates documented behavior against the real API.
  4. Agent-first. Write for an AI agent that reads top-to-bottom and executes. Clear structure, explicit parameters, no ambiguity.
  5. Customer-accessible only. Document only API actions accessible to customer accounts. Verify every action against the live API with a standard customer KS. Exclude actions that return SERVICE_FORBIDDEN — these are internal/system actions. The disableentitlement KS privilege bypasses content entitlement checks; partner-level service restrictions remain in force regardless.
  6. One guide per service boundary. Each guide covers one cohesive API service or tightly-coupled service cluster. Two services belong in the same guide only if they share API actions, one depends on the other at the API level, or a developer using one always needs the other. Services that merely "relate to entries" (e.g., metadata and captions) are separate guides. When in doubt, split — standalone guides can cross-reference each other, but a bundled guide cannot be unbundled without losing coverage depth.
  7. Self-contained. Every guide must contain all the information an agent needs to build integrations. Inline all relevant external information directly in the guide. External links used during research are references for the guide author — keep them out of published guides. Exception: a guide may link out to a versioned, actively-maintained public SDK documentation site instead of cloning its content when the guide's entire purpose is to front that SDK (currently: KALTURA_CONVERSATIONAL_AVATAR_API.md → https://kaltura.github.io/intelligent-agents-sdk/). Even under this exception, the guide must still stand on its own for the golden path: when to use it, prerequisites, a real working quick start, the auth model, and error handling basics stay inline — links are for reference depth, not for content an agent needs to get started.

Guide File Structure

Header Block (Lines 1-7)

# Kaltura [Service Name] [API/Guide]

[1-2 sentence description.]

**Base URL:** `https://...` (may differ by region/deployment)
**Auth:** [How to authenticate — KS param, Bearer header, etc.]
**Format:** [Request encoding and response format]

Required Sections

  • Prerequisites / Authentication — Kaltura account, KS requirements, auth method, required privileges
  • Numbered sections — # 1. Section Title (H1 with number), ## 1.1 Subsection for nesting
  • Error Handling — Common error codes and responses for that API. Agents must know what errors to expect and how to handle them.
  • Best Practices — Security, performance, and integration patterns specific to that API. Guide agents toward production-quality code.
  • Related Guides (final section) — Format: - **[Display Name](FILENAME.md)** — One-line description

curl Example Standards

Kaltura API v3 (form-encoded)

curl -X POST "$KALTURA_SERVICE_URL/service/{service}/action/{action}" \
  -d "ks=$KALTURA_KS" \
  -d "format=1" \
  -d "param[key]=value"
  • Shell variables: $KALTURA_SERVICE_URL, $KALTURA_KS, $KALTURA_PARTNER_ID, $KALTURA_ENTRY_ID
  • Always include format=1 for JSON responses
  • One -d parameter per line with backslash continuation
  • The API v3 backend accepts both application/x-www-form-urlencoded and application/json bodies. Guides use form-encoded as the default (easier for agents to adapt), but JSON is equally supported.

Modern JSON APIs (Events Platform, Agents Manager, AI Genie)

curl -X POST "$KALTURA_BASE_URL/endpoint" \
  -H "Authorization: Bearer $KALTURA_KS" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

Auth header formats differ by API:

  • Events Platform & Agents Manager: Authorization: Bearer $KALTURA_KS
  • AI Genie: Authorization: KS $KALTURA_KS
  • API v3: KS as form parameter (-d "ks=$KALTURA_KS")

Writing Style

  • Positive framing. Write "Use UTC format for dates" instead of describing what fails. State what to do, then optionally state why.
  • Language-agnostic examples. Use curl for all server-side API calls. Exception: Guides for front-end components (Player embed, editor, Unisphere widgets) include JavaScript/HTML where the component's API is inherently browser-based.
  • Minimal commentary. Let API parameters and examples speak. Prose only when behavior is non-obvious.
  • Tables for structured data. Parameter lists, status codes, enum values.
  • Inline code for identifiers. Backticks for parameter names, values, IDs, env vars.
  • Emojis: Only when explicitly requested.
  • Acceptable URLs in guides: (a) Kaltura API/CDN endpoint URLs in curl examples and configuration, (b) example.com placeholder URLs in code samples, (c) cross-references to other guides using [Name](FILENAME.md) format, (d) deep links into a versioned public SDK docs site for a guide that falls under the self-contained exception in the Philosophy section above. Inline all other external information directly. Source code repositories, reference implementations, and "learn more" links are research aids for the author — keep them out of published guides.
  • Trailing double spaces for line breaks. Lines within a paragraph that should render as separate visual lines must end with (two trailing spaces). Especially important in header blocks (Base URL / Auth / Format) and multi-line list items. Without them, GitHub and other renderers join lines into one paragraph.
  • Use "multi-account" terminology. Write "multi-account" or "parent-child account" when describing Kaltura's multi-account model. Explain concepts directly rather than using internal product names like "VPaaS."
  • Platform scale. Refer to the platform as having "100+ API services" and "a dozen client libraries" — not "80+" or other approximations.

Auth Patterns

APIAuth MethodKS Notes
API v3 (media, baseEntry, etc.)-d "ks=$KALTURA_KS" form paramAdmin KS with disableentitlement for full access
Events PlatformBearer $KALTURA_KS headerKS must have userId set
Agents ManagerBearer $KALTURA_KS headerStandard admin KS
AI GenieKS $KALTURA_KS headerStandard admin KS
App RegistryBearer $KALTURA_KS headerAdmin KS with ADMIN_BASE permission
User ProfileBearer $KALTURA_KS headerAdmin KS with ADMIN_BASE permission
MessagingBearer $KALTURA_KS headerAdmin KS (type=2)
Webhooks (Event Notifications)-d "ks=$KALTURA_KS" form paramAdmin KS with disableentitlement
Distribution & Syndication-d "ks=$KALTURA_KS" form paramAdmin KS with disableentitlement
Auth BrokerKS $KALTURA_KS headerAdmin KS
Player embedKS in URL or JS configUSER KS (type=0) for playback

Common Kaltura API Patterns

  • Entry statuses: -2 (ERROR_IMPORTING), -1 (ERROR_CONVERTING), 0 (IMPORT), 1 (PRECONVERT), 2 (READY), 3 (DELETED), 4 (PENDING), 5 (MODERATE), 6 (BLOCKED), 7 (NO_CONTENT). Plugin extensions: virusScan.Infected, virusScan.ScanFailure
  • Upload lifecycle: uploadToken.add → uploadToken.upload → media.add → media.addContent
  • Polling pattern: Check baseEntry.get for status=2 with interval/timeout
  • Cascade behavior: Deleting a parent entry cascades to children — use baseEntry.list with parentEntryIdEqual to discover children first
  • Search for child entries: Use parentEntryIdEqual filter to retrieve child entries (multi-stream, clip children). Default search returns root entries only.
  • Event IDs are integers (Events Platform) — pass as 12345, not "evt_abc123"
  • Cue point filter constraint: Every cuePoint.list / cuePoint.count call must include entryIdEqual, entryIdIn, idEqual, or idIn — calls without these return an error

Security & Compliance Guidance

Every guide must steer agents toward production-quality, secure integrations:

  1. Use AppTokens in production. Generate KS server-side via AppTokens with minimal privileges; rotate periodically. API secrets are permanent and cannot be regenerated or revoked — keep adminSecret on the server only. See KALTURA_APPTOKENS_API.md.
  2. Scope KS privileges. Use edit:entryId, sview:*, setrole:ROLE, iprestrict, urirestrict to limit what a session can access. Prefer USER KS (type=0) over ADMIN KS (type=2) whenever possible.
  3. Set KS expiry. Default to short-lived sessions (1-4 hours). Use AppToken session start for renewal rather than long-lived admin sessions.
  4. Generate KS server-side for mobile/client apps. Pass tokens to clients per-session at runtime. API secrets are permanent and unrevocable; KS tokens expire, breaking hardcoded binaries; and users can extract embedded credentials.
  5. Verify webhook signatures. Always validate HMAC signatures on incoming webhooks using SHA256(signing_secret + body). See KALTURA_EVENT_NOTIFICATIONS_WEBHOOK_AND_EMAIL_API.md section 8.
  6. Validate inputs at boundaries. Sanitize user-provided entry IDs, search terms, and metadata before passing to API calls.
  7. Use Kaltura's built-in capabilities. Prefer Kaltura REACH for enrichment services (captions, translation, moderation, and more), Agents Manager for automation, Messaging for emails, eSearch for content discovery, and Access Control for content protection — rather than building custom implementations.
  8. Handle errors gracefully. Every API call can fail — check for error responses, implement retries with backoff for transient failures, and log error codes for debugging.
  9. Protect content with Access Control. Use accessControlProfile to restrict content by IP, domain, geo, or scheduling rules rather than implementing custom access logic.
  10. Use CAN-SPAM compliant email. When sending emails via the Messaging API, always include unsubscribe links and respect opt-out preferences. See KALTURA_MESSAGING_API.md.

Leveraging Kaltura Capabilities

Agents building on Kaltura should use platform services rather than reimplementing:

NeedUse Kaltura ServiceGuide
Content enrichment (any type)REACH API (23 service types, machine + human, 80+ languages)KALTURA_REACH_API.md
Captions, translation, dubbingREACH API (specific enrichment services)KALTURA_REACH_API.md
Content moderation (AI)REACH API (serviceFeature=15) + Moderation APIKALTURA_MODERATION_API.md
Auto-process new uploadsAgents Manager (trigger + action rules)KALTURA_AGENTS_MANAGER_API.md
Auto-process matching entriesREACH Automation Rules (Boolean/category conditions)KALTURA_REACH_API.md
Content searcheSearch API (full-text, facets, operators)KALTURA_ESEARCH_API.md
Conversational AI / Q&AAI Genie (RAG over video library)KALTURA_AI_GENIE_API.md
Video player embedPlayer v7 (iframe or JS SDK)KALTURA_PLAYER_EMBED_GUIDE.md
Email notificationsMessaging API (templates, tracking, unsubscribe)KALTURA_MESSAGING_API.md
Event-driven webhooksWebhooks API (HTTP callbacks with HMAC signing)KALTURA_EVENT_NOTIFICATIONS_WEBHOOK_AND_EMAIL_API.md
Virtual eventsEvents Platform API (sessions, speakers, templates)KALTURA_EVENTS_PLATFORM_API.md
Secure auth without secretsAppTokens (HMAC-based session start)KALTURA_APPTOKENS_API.md
Video editing (trim, clip, concat, overlay)Video Editing API (operation resources, composition)KALTURA_VIDEO_EDITING_API.md
Multi-camera / dual-screenMulti-Stream API (parent-child entries)KALTURA_MULTI_STREAM_API.md
User registration & attendanceUser Profile API (per-app profiles)KALTURA_USER_PROFILE_API.md
User provisioning & RBACUser Management API (users, roles, groups)KALTURA_USER_MANAGEMENT_API.md
SSO/SAML authenticationAuth Broker API (IdP config, app subscriptions)KALTURA_AUTH_BROKER_API.md
Content organizationCategories & Entitlements (hierarchy, membership)KALTURA_CATEGORIES_AND_ENTITLEMENTS_API.md
Access control rulesAccess Control (profiles, conditions, restrictions)KALTURA_ACCESS_CONTROL_API.md
Custom metadata schemasCustom Metadata API (XSD schemas, appinfo, XSLT)KALTURA_CUSTOM_METADATA_API.md
Captions & transcriptsCaptions & Transcripts API (SRT/VTT/DFXP, REACH)KALTURA_CAPTIONS_AND_TRANSCRIPTS_API.md
Content distributionDistribution connectors (YouTube, Facebook, FTP, cross-Kaltura)KALTURA_DISTRIBUTION_API.md
Syndication feedsRSS/MRSS/iTunes/Roku feeds for external platformsKALTURA_SYNDICATION_API.md
Analytics reportsReports API (VOD/Live/Webcast metrics, CSV exports)KALTURA_ANALYTICS_REPORTS_API.md
Playback event trackingStats collection (quartiles, seeks, buffer events)KALTURA_ANALYTICS_EVENTS_COLLECTION_API.md
Gamification & leaderboardsGame Services (badges, certificates, rules engine)KALTURA_GAMIFICATION_API.md
Browser recordingExpress Recorder (WebRTC recording widget)KALTURA_EXPRESS_RECORDER_API.md
Caption editingCaptions Editor (interactive editing with waveform)KALTURA_CAPTIONS_EDITOR_API.md
AI avatar conversationsAgentic Avatars (intelligent-agents-sdk)KALTURA_CONVERSATIONAL_AVATAR_API.md
Real-time chat & Q&AChat & Collaborate (event chat panels)KALTURA_CNC_API.md
AI search widgetGenie Widget (conversational search)KALTURA_GENIE_WIDGET_API.md
Embedded analyticsEmbeddable Analytics (iframe dashboards)KALTURA_ANALYTICS_EMBED_API.md
Unisphere experiencesMicro-frontend framework: loader, workspace, services, Media ManagerKALTURA_UNISPHERE_FRAMEWORK_API.md
Multi-account managementParent-child accounts, cross-account analyticsKALTURA_MULTI_ACCOUNT_MANAGEMENT_API.md
Cue points (overview & base service)Temporal metadata concepts, base CRUD, eSearch, protocols, bulk opsKALTURA_CUE_POINTS_API.md
Interactive video quizzesQuiz lifecycle, 8 question types, scoring, reports, IVQ pluginKALTURA_QUIZ_API.md
Chapters & slidesThumb cue points, timedThumbAsset workflow, navigation pluginKALTURA_CHAPTERS_AND_SLIDES_API.md
Annotations & hotspotsThreaded annotations, hotspot pattern, searchableOnEntryKALTURA_ANNOTATIONS_API.md
Ad cue pointsVAST/VPAID ad insertion, pre-roll/mid-roll/overlayKALTURA_AD_CUE_POINTS_API.md
Code, event & session markersView-change commands, forceStop, broadcast events, sessionsKALTURA_CODE_CUE_POINTS_API.md
LTI/LMS integrationKAF modules, LTI 1.1/1.3 auth, deep linking, grade passback, CaliperKALTURA_LTI_INTEGRATION_GUIDE.md

Commit Messages & Versioning

This repository uses Conventional Commits. Every commit must follow this format:

<type>(<scope>): <description>
TypeWhenVersion bump
featNew guide, new major sectionMinor (6.2 → 6.3)
fixCorrect wrong docs, fix testsPatch (6.2.0 → 6.2.1)
testTest-only changesNone
docsNon-guide prose (README, CONTRIBUTING)None
choreMeta files, formattingNone
ciWorkflows, CI configNone
refactorRestructure without content changeNone

Scope is optional — use the guide name or area: feat(moderation), fix(reach), test(esearch).

Breaking changes use !: feat!: restructure guide format → major bump.

Examples:

feat(distribution): add Distribution API guide with 18 E2E tests
fix(reach): correct serviceFeature enum values for Immersive Agent
test(moderation): add reject side-effects verification
chore: update GUIDE_MAP.md and README test counts
ci: add commitlint and release-please workflows

Releases are manual via release-please. Trigger the release workflow (gh workflow run release.yml) → release-please opens a versioned PR → merge it to cut a release with auto-generated notes.

Editing an Existing Guide

  1. Read the file first. Always Read the guide file before making any edit — your memory of file contents from earlier in the conversation is unreliable after context compaction.
  2. Check the section index. Each guide has a <!-- Sections: ... --> HTML comment near the top listing all sections. Use it to understand what exists before adding or modifying sections.
  3. Run the companion test. After any edit, run python3 tests/test_{name}_api.py to verify the guide is still accurate.
  4. Update cross-references. If the edit changes section numbers, titles, or adds new content, update GUIDE_MAP.md, README.md, PLAN.md, SKILL.md, llms.txt, and context7.json as needed.

Adding a New Guide

  1. Research. Explore the API surface — endpoints, params, response schemas, auth. Test calls live.
  2. Verify enums against schema. For any enum or status code you plan to document, verify the complete value set against the generated client libraries (PHP/TypeScript) or the XML schema. For microservices, verify against the service's own OpenAPI spec. Include all values — do not rely on other guides or documentation wikis as authoritative sources. See the Schema Verification section below.
  3. Verify accessibility. Test every action you plan to document with a customer account KS. Exclude actions that return SERVICE_FORBIDDEN or require partner-level permissions beyond standard KS privileges. disableentitlement bypasses content entitlement checks; partner-level service restrictions remain in force regardless.
  4. Write the guide. Follow the header block, numbered sections, curl examples, Related Guides structure. Include a <!-- Sections: ... --> HTML comment after the header block listing all section numbers and titles.
  5. Create the test file. tests/test_{name}.py — cover every documented endpoint with real API calls.
  6. Run tests. All tests must pass against the live API. Tests must succeed with actual successful API responses — not by catching expected errors.
  7. Cross-reference. Add to Related Guides sections of existing guides where relevant. Link only to published guides in this repository.
  8. Update GUIDE_MAP.md. Add the new guide to the reading order tiers, dependency graph, and decision tree. Run python3 scripts/validate_guide_map.py to verify all cross-references are valid.
  9. Update PLAN.md. Add a row to the Completed Guides table.
  10. Commit with conventional format. Use feat(service-name): add Service Name API guide with N E2E tests. See Commit Messages & Versioning above.
  11. Iterate. If tests reveal undocumented behavior, update the guide to match reality.

Naming Convention

  • Guide: KALTURA_{SERVICE_NAME}_API.md (or _GUIDE.md for non-API docs)
  • Test: tests/test_{service_name}_api.py

Schema Verification

Kaltura's API surface spans two architectures with different schema sources:

Foundation API (v3) — www.kaltura.com/api_v3/*

The XML schema at https://www.kaltura.com/api_v3/api_schema.php is the authoritative source for all v3 services, enums, object types, and action signatures. It covers ~142 services and 664 enums.

Authoritative sources (in priority order):

  1. Live XML schema: https://www.kaltura.com/api_v3/api_schema.php (large — use targeted queries or generated clients)
  2. Generated PHP client enums: https://raw.githubusercontent.com/kaltura/KalturaGeneratedAPIClientsPHP/master/KalturaEnums.php + KalturaPlugins/ directory
  3. Generated TypeScript client: https://raw.githubusercontent.com/kaltura/KalturaGeneratedAPIClientsTypescript/master/src/api/types/

When writing or editing a guide that documents enum values:

  • Verify every enum table against the generated client libraries (PHP or TypeScript)
  • Include ALL values from the schema — plugin-contributed values use dot-notation strings (e.g., virusScan.Infected)
  • Note that many "integer" enums are technically string enums in the schema (KalturaEntryStatus, KalturaEntryType, KalturaCaptionType, KalturaReportType)
  • When an enum has plugin-contributed values beyond the core set, note this in the guide

When tests validate enum completeness:

  • Define a DOCUMENTED_* set constant at the top of the test file
  • Include ALL schema values in the set (the test catches undocumented values appearing in live responses)
  • Run vendorCatalogItem.list or equivalent list actions without filters to discover all active values

Microservices — Separate OpenAPI Specs

Modern JSON-based microservices (Events Platform, Agents Manager, AI Genie, Auth Broker, User Profile, Messaging, App Registry, Content Lab, Gamification) are NOT in the v3 XML schema. Each has its own OpenAPI spec in its source repository.

For microservice guides:

  • Verify against the service's own OpenAPI/Swagger spec (in the service repo or provided by the team)
  • These services use Bearer/KS auth headers and JSON bodies — different from v3 form-encoded
  • Enum values and object schemas are defined in each service's own spec

Verification Checklist (for any guide with enum tables)

  1. Identify the enum name (e.g., KalturaEntryStatus, KalturaVendorServiceFeature)
  2. Fetch the generated TypeScript or PHP client file for that enum
  3. Compare ALL values against the guide's table — ensure nothing is missing or incorrect
  4. For string enums with plugin values: document both the numeric core values and string plugin values
  5. Update the test file's DOCUMENTED_* set to match the complete enum
  6. Run the test to confirm no undocumented values appear in live responses

Detailed Reference

See .claude/rules/ for detailed standards on specific topics:

  • test-standards.md — Test file structure, conventions, environment config, test helpers
  • player-testing.md — Browser-based player testing, Player v7 runtime API
  • common-pitfalls.md — Known issues and fixes encountered during guide development

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.