docs(sessions): enhance authentication details in session API descrip…#207
docs(sessions): enhance authentication details in session API descrip…#207ahmednahima0-beep wants to merge 1 commit into
Conversation
…tions Updated the descriptions for GET and POST endpoints related to sessions to clarify authentication requirements. Added explicit instructions on using either `x-api-key` or `Authorization: Bearer <privy-access-token>`, and detailed the consequences of sending both or neither. Enhanced error descriptions for unauthorized access to provide clearer guidance on potential issues. This improves the overall clarity and usability of the API documentation.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughOpenAPI specifications in ChangesSessions API Authentication and Error Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
✨ 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 |
…tions
Updated the descriptions for GET and POST endpoints related to sessions to clarify authentication requirements. Added explicit instructions on using either
x-api-keyorAuthorization: Bearer <privy-access-token>, and detailed the consequences of sending both or neither. Enhanced error descriptions for unauthorized access to provide clearer guidance on potential issues. This improves the overall clarity and usability of the API documentation.Summary by cubic
Clarified auth in session API docs: send exactly one of
x-api-keyorAuthorization: Bearer <privy-access-token>—sending both or neither returns 401; added clear 403/404 notes. Also added descriptions toApiKeyAuthandBearerAuthand standardized the 401 error body on GET/POST under/api/sessions/{sessionId}and/api/sessions/{sessionId}/chats.Written for commit 7042ebf. Summary will update on new commits.
Summary by CodeRabbit