/api
Endpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is validated against your authenticated host.
> /plugin marketplace add getsentry/toolkit> /plugin install sentry-mcp@sentry-mcp
Command definition
api.mdEndpoints
Endpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is validated against your authenticated host.
A relative endpoint that names an organization, such as `organizations/acme-corp/issues/` or `projects/acme-corp/web/`, is sent to that organization's region (for example `https://us.sentry.io`) with the stored account that knows it, as other commands do. The first request for an organization may look up its region, and `--dry-run` shows the URL that would be used. An absolute URL is sent as given.
If a successful GET response is interrupted while downloading, the CLI retries within its existing limit of three attempts. This also applies to complete API responses read by other commands. The request timeout covers these response bodies; streaming responses such as SSE are excluded.
Dataset Names
When querying the Events API (`/events/` endpoint), valid dataset values are: `spans`, `logs`, `errors`, `tracemetrics`, `profile_functions`, and `uptime_results`.
Pagination
Each invocation fetches one server page. Repeat the same GET endpoint and filters with `--cursor next` (`-c next`) to continue, `--cursor prev` to revisit a page, or `--cursor first` to start again. The shared history expires after five minutes and is scoped to the request and authenticated identity. Keep the same query parameters and headers when navigating. The endpoint remains required.
Raw server cursors and custom cursors from the CLI's shared paginator are also accepted. Custom cursors preserve the page size and skip rows already returned, including when navigating back to a bookmarked page. A cursor's encoded page size takes precedence over `per_page`. Mid-page bookmarks support array bodies and responses with a `data` array, such as the Events API; envelope metadata is preserved. Other response bodies remain unchanged for ordinary cursors.
With `--json`, `pagination.nextCursor` is the CLI continuation and can retain a custom bookmark; pass it back through `--cursor` to resume exactly. `pagination.prevCursor` comes from the server, while `pagination.hasPrev` indicates a previously visited page in local history. `--fields` filters only the body and preserves this metadata. The pagination object is omitted when no continuation or local previous page is available. Its absence does not prove a complete or unsampled dataset.
`--cursor` replaces cursor parameters from the endpoint and request fields. It is only supported for GET requests. `--dry-run` previews the resolved request; dry-runs and failed requests do not advance the saved history.
Binary responses
Endpoints that return binary data — image attachments, minidumps, debug files — are streamed to stdout as raw bytes, so you can redirect them straight to a file.
When the response is a PNG or JPEG image **and** you're on a graphics-capable terminal, the image is rendered inline instead of dumping raw bytes into your session. Terminals that speak the newer kitty graphics protocol (kitty, WezTerm, Ghostty, recent Konsole) are used in preference to sixel, which remains the fallback for older terminals. Redirecting or piping stdout always keeps the raw bytes. Set `SENTRY_NO_GRAPHICS=1` (or run `sentry cli defaults graphics off`) to disable inline rendering; `SENTRY_NO_SIXEL` is still honored as a deprecated alias.
For full API documentation, see the [Sentry API Reference](https://docs.sentry.io/api/).
Read more
Endpoints
Endpoints are relative to `/api/0/` — the prefix is added automatically. Absolute HTTP(S) Sentry URLs also work; their origin is validated against your authenticated host.
A relative endpoint that names an organization, such as `organizations/acme-corp/issues/` or `projects/acme-corp/web/`, is sent to that organization's region (for example `https://us.sentry.io`) with the stored account that knows it, as other commands do. The first request for an organization may look up its region, and `--dry-run` shows the URL that would be used. An absolute URL is sent as given.
If a successful GET response is interrupted while downloading, the CLI retries within its existing limit of three attempts. This also applies to complete API responses read by other commands. The request timeout covers these response bodies; streaming responses such as SSE are excluded.
Dataset Names
When querying the Events API (`/events/` endpoint), valid dataset values are: `spans`, `logs`, `errors`, `tracemetrics`, `profile_functions`, and `uptime_results`.
Pagination
Each invocation fetches one server page. Repeat the same GET endpoint and filters with `--cursor next` (`-c next`) to continue, `--cursor prev` to revisit a page, or `--cursor first` to start again. The shared history expires after five minutes and is scoped to the request and authenticated identity. Keep the same query parameters and headers when navigating. The endpoint remains required.
Raw server cursors and custom cursors from the CLI's shared paginator are also accepted. Custom cursors preserve the page size and skip rows already returned, including when navigating back to a bookmarked page. A cursor's encoded page size takes precedence over `per_page`. Mid-page bookmarks support array bodies and responses with a `data` array, such as the Events API; envelope metadata is preserved. Other response bodies remain unchanged for ordinary cursors.
With `--json`, `pagination.nextCursor` is the CLI continuation and can retain a custom bookmark; pass it back through `--cursor` to resume exactly. `pagination.prevCursor` comes from the server, while `pagination.hasPrev` indicates a previously visited page in local history. `--fields` filters only the body and preserves this metadata. The pagination object is omitted when no continuation or local previous page is available. Its absence does not prove a complete or unsampled dataset.
`--cursor` replaces cursor parameters from the endpoint and request fields. It is only supported for GET requests. `--dry-run` previews the resolved request; dry-runs and failed requests do not advance the saved history.
Binary responses
Endpoints that return binary data — image attachments, minidumps, debug files — are streamed to stdout as raw bytes, so you can redirect them straight to a file.
When the response is a PNG or JPEG image **and** you're on a graphics-capable terminal, the image is rendered inline instead of dumping raw bytes into your session. Terminals that speak the newer kitty graphics protocol (kitty, WezTerm, Ghostty, recent Konsole) are used in preference to sixel, which remains the fallback for older terminals. Redirecting or piping stdout always keeps the raw bytes. Set `SENTRY_NO_GRAPHICS=1` (or run `sentry cli defaults graphics off`) to disable inline rendering; `SENTRY_NO_SIXEL` is still honored as a deprecated alias.
For full API documentation, see the [Sentry API Reference](https://docs.sentry.io/api/).
This repository contains the Sentry CLI, the Sentry MCP server, and shared packages. For the CLI, see the CLI guide and the published documentation at . The documentation index covers both products and shared contributor guidance.
Other commands on toolkit.
explore
CommandEnter explore mode - think through ideas, investigate problems, clarify requirements
propose
CommandPropose a new change - create it and generate all artifacts in one step
agent-conversation
CommandMore commands from other plugins.
build
CommandImplement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

