CometChat REST API Documentation Audit Report
Date: 2026-04-24 Branch:docs/restapi-chatapi-ENG-30061-ketan
Preview URL: https://cometchat-22654f5b-docs-restapi-chatapi-eng-30061-ketan.mintlify.app/
Pages Scanned: 3,090 MDX files across 10 product directories
OAS Files Scanned: 5 files with 345 total endpoints
Executive Summary
The REST API docs are well-structured with zero orphan pages, zero ghost nav entries, and 100% frontmatter description coverage. The main gaps are in the OAS response schemas (52 untyped
data: object responses in chat-apis.json), 4 broken redirect destinations, and cross-product consistency in overview page structure.
Product Coverage
Score Breakdown
Enterprise Readiness: 7.5/10
All 345 endpoints have operationIds and zero empty example values. Authentication is documented per-product (apikey for Chat, Basic Auth for Management). The main gap is 52 endpoints in chat-apis.json returningdata as a generic untyped object — enterprise SDK codegen and type-safe clients can’t infer response structure. 14 endpoints have completely empty response schemas.
AI-Agent Friendliness: 7.0/10
100% operationId coverage is excellent for AI agent consumption. Thellms.txt file is published and accessible. However, 35 list endpoints across 3 OAS files lack pagination metadata in response schemas, making it harder for agents to handle paginated results programmatically. The 52 untyped response objects in chat-apis.json are the biggest blocker for AI agent integration.
AEO Friendliness: 8.5/10
Every REST API MDX file has a frontmatterdescription. The llms.txt is published with clear page descriptions. Heading hierarchy is clean across all scanned pages. Overview pages have structured endpoint tables (except AI Agents overview which uses prose instead). No debug markers in REST API pages.
Link Hygiene: 8.0/10
Zero broken internal links in REST API pages. Zero legacy domain references. Zero orphan or ghost pages. However, 4 redirect destinations point to non-existent files (/ai-chatbots/ai-bots/bots, /ai-chatbots/ai-bots/instructions, /widget/wordpress/legacy, /widget/html/legacy). The flutter-sdk-changes-review.md file (286 <br> tags fixed in this branch) and 13 files with invalid mintlify imports were cleaned up.
Completeness: 7.5/10
REST API overview pages for Calls and Moderation are comprehensive with endpoint tables, property tables, error handling, and pagination examples. AI Agents overview is lighter — missing a structured endpoint table. The iOS APNs push notification page renders as code-only with no prose introduction. 11 TODO markers remain in iOS UI Kit and React Native notification pages (screenshots and code snippets needed).Consistency: 7.0/10
Overview page structure varies across products — Calls and Moderation have full endpoint tables while AI Agents uses prose. Pagination parameter naming varies across OAS files (perPage/count/limit) — this is an API-contract issue, not a docs issue. Code fence formatting was inconsistent (3 vs 4 backtick closings) across 10 JavaScript SDK files — fixed in this branch. Duplicate frontmatter keys were found in 2 files — fixed in this branch.
Issues Found
CRITICAL (P0)
HIGH (P1)
MEDIUM (P2)
LOW (P3)
Fixes Applied in This Branch
The following issues were discovered and fixed during this audit session:Prioritized Fix List
P0 — Must fix (blocks SDK codegen / AI agent consumption)
- Add typed response schemas to 52 chat-apis.json endpoints returning generic
data: object
P1 — Should fix (degrades developer experience)
- Add pagination metadata to 35 list endpoint response schemas
- Define response properties for 23 empty response schemas
- Fix or remove 4 broken redirect destinations in docs.json
P2 — Nice to fix (polish)
- Add structured endpoint table to AI Agents API overview page
- Add prose introduction to iOS APNs push notification page
- Resolve 11 TODO markers (screenshots, code snippets)
P3 — Backlog
- Remove
AWSCLIV2.pkgfrom repo - Add error response schemas to calls.json
Appendix
- Total issues: 9
- By severity: 1 critical, 3 high, 3 medium, 2 low
- By product: Chat 3, Calls 1, AI Agents 1, Cross-product 4
- Pages with zero issues: 3,070+ of 3,090
- OAS files scanned: chat-apis.json (130), calls.json (2), data-import-apis.json (4), management-apis.json (141), ai-agent-service.json (68)
- Branch fixes applied: 3 commits fixing 27 files total