Sentry REST API
Error tracking and performance monitoring REST API
Sentry is an error tracking and application monitoring platform that helps developers identify, diagnose, and fix software issues in real-time. The Sentry REST API enables developers to programmatically manage projects, retrieve error data, track releases, and integrate error monitoring into their development workflows. Teams use the API to automate issue management, build custom dashboards, and integrate Sentry data into their internal tools.
https://sentry.io/api/0
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /organizations/ | List all organizations accessible to the authenticated user |
| GET | /organizations/{organization_slug}/projects/ | Retrieve all projects within a specific organization |
| POST | /organizations/{organization_slug}/projects/ | Create a new project in an organization |
| GET | /projects/{organization_slug}/{project_slug}/issues/ | List issues for a specific project with filtering and pagination |
| GET | /issues/{issue_id}/ | Retrieve detailed information about a specific issue |
| PUT | /issues/{issue_id}/ | Update an issue's status, assignment, or other properties |
| GET | /issues/{issue_id}/events/ | List all events associated with a specific issue |
| GET | /projects/{organization_slug}/{project_slug}/events/{event_id}/ | Retrieve detailed information about a specific error event |
| POST | /organizations/{organization_slug}/releases/ | Create a new release to track deployments and associate commits |
| GET | /organizations/{organization_slug}/releases/ | List all releases for an organization |
| POST | /organizations/{organization_slug}/releases/{version}/deploys/ | Register a deployment for a specific release |
| GET | /organizations/{organization_slug}/stats_v2/ | Retrieve aggregated statistics for error and transaction data |
| GET | /projects/{organization_slug}/{project_slug}/keys/ | List all DSN keys (client keys) for a project |
| GET | /organizations/{organization_slug}/teams/ | Retrieve all teams within an organization |
| GET | /organizations/{organization_slug}/members/ | List all members of an organization with their roles |
Sponsor this page
AvailableReach developers actively building with Sentry. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X GET 'https://sentry.io/api/0/projects/my-org/my-project/issues/?statsPeriod=14d' \
-H 'Authorization: Bearer sntrys_YOUR_AUTH_TOKEN_HERE' \
-H 'Content-Type: application/json'
Use Sentry from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for Sentry. Paste your Sentry API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Sentry directly with your credentials — no local install, works on mobile.
get_recent_errors
Retrieve recent error issues from a Sentry project with automatic filtering by severity and time period
resolve_issue
Mark a Sentry issue as resolved and optionally add a comment explaining the resolution
create_release
Create a new release in Sentry and associate it with commits from a repository
get_error_details
Fetch comprehensive details about a specific error including stack traces, breadcrumbs, and user context
search_issues
Search and filter Sentry issues using natural language queries converted to Sentry search syntax
Connect in 60 seconds
Paste your Sentry key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect Sentry to your AI →