docs(sessions): migrate GET/POST /api/sessions/{sessionId}/chats#204
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR adds OpenAPI documentation and reference pages for two new session-chat endpoints: a GET endpoint to list chats within a session and a POST endpoint to create a new chat with optional idempotent client-supplied identifiers. The OpenAPI schemas define request/response shapes and error conditions, while new MDX documentation pages provide API reference content integrated into the Sessions navigation. ChangesSession Chat API Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds OpenAPI paths + schemas (ChatSummary, ListSessionChatsResponse, CreateSessionChatRequest/Response, parity errors) and two MDX pages, plus nav entries under the Sessions group. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3321ffb to
07b445e
Compare
Summary
Documents the two new session-scoped chat endpoints landing in api#552:
GET /api/sessions/{sessionId}/chats→{ chats: ChatSummary[], defaultModelId }POST /api/sessions/{sessionId}/chats→{ chat }, with optional{ id }for optimistic client flows (idempotent same-session, 409 cross-session, 400 on empty id)Test plan
npx mintlify@latest dev— pages render under Sessions🤖 Generated with Claude Code
Summary by cubic
Adds docs and OpenAPI for session chat endpoints GET/POST
/api/sessions/{sessionId}/chats, with Try It panels. Covers list responsedefaultModelIdand POST idempotency with optionalid.ChatSummary,ListSessionChatsResponse,CreateSessionChatRequest/Response, and error schemas (400/401/403/404/409/500).Written for commit 07b445e. Summary will update on new commits.
Summary by CodeRabbit
New Features
Documentation