Document API Endpoint

Document and type a Sentry API endpoint. Write or fix @extendschema decorators, specify response TypedDicts, type request parameters, correct type drift between the declared schema and the runtime response, and validate the generated spec.

About this skill

Document and type a Sentry API endpoint. Write or fix @extendschema decorators, specify response TypedDicts, type request parameters, correct type drift between the declared schema and the runtime response, and validate the generated spec.

Maintained by Sentry. The source includes the instructions and any supporting files needed to use this skill.

Inside the instructions

  • 01Workflow
  • 02Lessons
  • 031. Carefully compare what the code does vs declared types
  • 042. Reuse the canonical response type
  • 053. Infer the type. Avoid cast and # type: ignore
  • 064. Legacy doc migration is all-or-nothing per path

Before you start

  1. Read the instructions and check tool or account requirements.
  2. Install the complete folder when the skill references scripts or other files.
  3. Provide your task context, then review the agent's output.

Source

getsentry/skills / document-api-endpoint

Source reviewed October 2, 2026 · Apache-2.0