Skip to content

Schema gaps blocking broader @sentry/api adoption in sentry-tui #131199

Open

Description

@billyvg

This issue is being created by OpenAI Codex on behalf of @billyvg while implementing billyvg/sentry-tui#188.

Context

sentry-tui initially adopted @sentry/api 0.272.0 for API requests where the generated surface matched the runtime API. The initial integration used generated operations for schema-covered Discover datasets, organization reads, project and environment lists, and replay detail. It retained a small flexible request path for the gaps below.

This is an inventory from real sentry-tui call sites, not a claim that the overall API gap list is exhaustive.

The generated query-type and pagination gaps originally tracked here are resolved in @sentry/api 0.286.0. sentry-tui migrated those call sites in billyvg/sentry-tui#241.

Routes not represented by generated operations

sentry-tui currently calls these Sentry API routes, but 0.286.0 has no corresponding operation:

  • GET /api/0/users/me/
  • GET /api/0/organizations/{org}/users/
  • GET /api/0/organizations/{org}/events-stats/ (the package exposes /events-timeseries/; guidance on response/query compatibility or replacement would also unblock this)
  • GET /api/0/organizations/{org}/issues-stats/
  • GET /api/0/organizations/{org}/ai-conversations/
  • GET /api/0/organizations/{org}/open-periods/
  • GET /api/0/organizations/{org}/group-search-views/
  • GET /api/0/organizations/{org}/monitors-stats/
  • GET /api/0/organizations/{org}/uptime-stats/
  • GET /api/0/organizations/{org}/dashboards/starred/
  • GET /api/0/organizations/{org}/explore/saved/
  • Seer Explorer chat/run/update and agent approval routes under /api/0/organizations/{org}/seer/ and /agent/approve/

Remaining work to unblock migration

  • Add operations and response types for the missing routes that are intended as supported API surface.
  • Clarify whether /events-timeseries/ is intended to replace /events-stats/ and, if so, document the query and response migration.

sentry-tui now uses the generated operations for Discover queries, replay lists, dashboards, detectors, workflows, and trace-item attributes. The routes above still require the flexible request path.

Activity

  1. linear-code commented on Nov 16, 2026

    @linear-code
  2. sentry-junior commented on Nov 16, 2026

    @sentry-junior
    Contributor

    The routes from this list that are already public are now covered:

    • GET /users/me/ is retrieveUserDetails, since user_id accepts me.
    • GET /organizations/{org}/ai-conversations/ is the same endpoint as listOrganizationAIConversations.
    • GET /organizations/{org}/group-search-views/ is listOrganizationIssueViews. Its missing per_page is documented in feat(api-docs): Document per_page on the issue views list #131215.

    The rest aren't published (publish_status PRIVATE or EXPERIMENTAL), so they can't go into the public spec, or @sentry/api, without a decision from the owning team and @getsentry/owners-api. Owning teams, please reply for your endpoints: either publish them with a typed schema, or say they stay private.

    Route Endpoint Status Owner
    GET /organizations/{org}/users/ OrganizationUsersEndpoint PRIVATE @getsentry/app-backend
    GET /organizations/{org}/events-stats/ OrganizationEventsStatsEndpoint EXPERIMENTAL @getsentry/data-browsing
    GET /organizations/{org}/issues-stats/ OrganizationGroupIndexStatsEndpoint PRIVATE @getsentry/issue-detection-backend @getsentry/issues-feed
    GET /organizations/{org}/open-periods/ OrganizationOpenPeriodsEndpoint PRIVATE @getsentry/alerts-monitors
    GET /organizations/{org}/monitors-stats/ OrganizationMonitorIndexStatsEndpoint PRIVATE @getsentry/crons
    GET /organizations/{org}/uptime-stats/ OrganizationUptimeStatsEndpoint EXPERIMENTAL @getsentry/crons
    GET /organizations/{org}/dashboards/starred/ OrganizationDashboardsStarredEndpoint PRIVATE @getsentry/dashboards
    GET/POST /organizations/{org}/explore/saved/ ExploreSavedQueriesEndpoint EXPERIMENTAL @getsentry/explore
    GET/POST /organizations/{org}/seer/explorer-chat/ and .../{run_id}/ OrganizationSeerAgentChatEndpoint PRIVATE @getsentry/machine-learning-ai
    POST /organizations/{org}/seer/explorer-update/{run_id}/ OrganizationSeerAgentUpdateEndpoint PRIVATE @getsentry/machine-learning-ai
    POST /organizations/{org}/agent/approve/ OrganizationAgentApproveEndpoint PRIVATE @getsentry/machine-learning-ai
    GET/POST /organizations/{org}/seer/runs/ OrganizationSeerRunsEndpoint EXPERIMENTAL @getsentry/machine-learning-ai
  3. sentry-junior commented on Nov 16, 2026

    @sentry-junior
    Contributor

    Here's the decision for each unpublished route. The published ones are PUBLIC_EXPERIMENTAL: they go into the spec and @sentry/api as experimental operations, not as a firm public promise. sentry-tui can move onto them once an @sentry/api release includes them.

    Route Decision operationId Link
    GET /organizations/{org}/dashboards/starred/ Experimental listOrganizationStarredDashboards #131229 (merged)
    GET, POST /organizations/{org}/explore/saved/ Experimental listOrganizationExploreSavedQueries, createOrganizationExploreSavedQuery #131237 (merged)
    GET /organizations/{org}/monitors-stats/ Experimental listOrganizationMonitorStats #131246 (merged)
    GET /organizations/{org}/uptime-stats/ Experimental listOrganizationUptimeStats #131246 (merged)
    GET /organizations/{org}/issues-stats/ Experimental listOrganizationIssueStats #131248
    GET /organizations/{org}/open-periods/ Experimental listOrganizationOpenPeriods #131257
    GET /organizations/{org}/seer/runs/ Experimental listOrganizationSeerRuns #131252
    POST /organizations/{org}/seer/runs/ Stays unpublished. It's the same read with its parameters in a body, so GET covers it. #131252
    GET, POST /organizations/{org}/seer/explorer-chat/ and …/{run_id}/ Stays private. One view serves both routes, so they can't get separate operationIds without splitting the view. The request also takes internal override fields. #131252
    POST /organizations/{org}/seer/explorer-update/{run_id}/ Stays private. It passes a Seer-defined payload through to Seer, and its response isn't something a schema can describe. #131252
    POST /organizations/{org}/agent/approve/ Stays private. It's a browser-session approval flow, not for API tokens.
    GET /organizations/{org}/users/ Stays private. Use listOrganizationMembers instead.
    GET /organizations/{org}/events-stats/ Stays unpublished. listOrganizationEventsTimeseries (/events-timeseries/) is the published replacement.

    The routes that were already public stay as they are: GET /users/me/ is retrieveUserDetails, ai-conversations is listOrganizationAIConversations, and group-search-views is listOrganizationIssueViews, whose per_page was documented in #131215.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions