Official
API Development
Documents and types Sentry API endpoints using OpenAPI schemas and TypedDicts to ensure accurate, public-facing documentation.
This skill automates the process of generating and refining OpenAPI documentation for Sentry endpoints using drf-spectacular. It helps developers specify response TypedDicts, correct type drift between code and runtime responses, migrate legacy JSON documentation, and promote internal endpoints to public status. By identifying endpoint classes and validating against live responses, it ensures that the generated API specification is production-grade and highly accurate for SDK and MCP tool consumption.
Key Features
01One-way migration of legacy JSON-based documentation to modern decorators
02Runtime verification tools to detect type drift between code and live responses
03Dynamic type inference and TypedDict specification for request/response payloads
04Automated @extend_schema decorator generation for API methods and classes
05Standardized workflow for promoting endpoints from private to public status
06850 GitHub stars
Use Cases
01Adding OpenAPI documentation and TypedDict responses to a new Sentry endpoint
02Promoting a private Sentry API to public status while ensuring documentation compliance
03Fixing schema inaccuracies where a live API response differs from its declared types