Connecting to Sentry
Using API Key Authentication
Sentry uses token-based authentication. To obtain an Auth Token:
- Log in to your Sentry account at https://sentry.io
- Navigate to Settings > Auth Tokens
- Click "Create New Token"
- Select the required scopes and click "Create Token"
- Copy the generated token (it will only be shown once)
After obtaining your Auth Token, set the following connection properties:
- AuthScheme: Set this to APIKey.
- APIKey: Set this to your Sentry Auth Token.
- OrganizationId: Set this to your Sentry organization slug or ID.
Example Connection String
Profile=C:\profiles\Sentry.apip;AuthScheme=APIKey;ProfileSettings="APIKey=your_auth_token;OrganizationId=your_org_slug";
Connecting to Sentry
Once the authentication is configured, you can connect to Sentry and query data from any of the available tables such as Organizations, Projects, Issues, and Events.
Available Tables
The Sentry API Profile provides access to the following tables:
- EventIdResolutions: Resolve a short event ID to its full event details (requires EventId)
- IntegrationProviders: Retrieve available integration providers for a Sentry organization
- IssueDetails: Retrieve full details of a specific Sentry issue (requires IssueId)
- IssueEventDetails: Retrieve details of a specific event within an issue (requires IssueId and EventId)
- IssueEvents: Retrieve events associated with a specific issue (requires IssueId)
- IssueExternalLinks: Retrieve external issue links associated with a Sentry issue (requires IssueId)
- IssueTagDetails: Retrieve tag details for a specific issue and tag key (requires IssueId and TagKey)
- OrganizationAvailableIntegrations: Retrieve all available integrations for a Sentry organization
- OrganizationClientKeys: Retrieve DSN client keys configured for projects within an organization
- OrganizationDataForwarders: Retrieve data forwarder configurations for a Sentry organization
- OrganizationEventStatsByProject: Retrieve event statistics grouped by project (requires Field)
- OrganizationIntegration: Retrieve details of a specific integration installed for an organization (requires IntegrationId)
- OrganizationMembers: Retrieve members of a Sentry organization
- OrganizationProjects: Retrieve projects associated with a Sentry organization
- OrganizationRelease: Retrieve details of a specific release (requires Version)
- OrganizationReleaseFile: Retrieve a specific file associated with a release (requires Version and FileId)
- OrganizationReleases: Retrieve all releases for a Sentry organization
- OrganizationRepositories: Retrieve repositories linked to a Sentry organization
- OrganizationSentryApps: Retrieve custom Sentry integrations (Sentry Apps) for an organization
- OrganizationTeams: Retrieve teams belonging to a Sentry organization
- OrganizationTrustedRelays: Retrieve trusted relay configurations for a Sentry organization
- Organizations: Retrieve details of the authenticated user's Sentry organization
- ProjectDetails: Retrieve details of a specific project (requires ProjectId)
- ProjectEventDetails: Retrieve full details of a specific project event (requires ProjectId and EventId)
- ProjectEvents: Retrieve events for a specific project (requires ProjectId)
- ProjectIssues: Retrieve issues for a specific project (requires ProjectId)
- ProjectMembers: Retrieve members of a specific project (requires ProjectId)
- ProjectOwnership: Retrieve ownership rules for a specific project (requires ProjectId)
- ProjectReleaseCommits: Retrieve commits associated with a project release (requires ProjectId and Version)
- ProjectReleaseFiles: Retrieve files associated with a project release (requires ProjectId and Version)
- ProjectTeams: Retrieve teams associated with a specific project (requires ProjectId)
- ProjectUsers: Retrieve users who have been seen in a specific project (requires ProjectId)
- ReleaseCommitFiles: Retrieve files changed in commits for a specific release (requires Version)
- ReleaseDeploys: Retrieve deployments associated with a specific release (requires Version)
- RepositoryCommits: Retrieve commits from a specific repository (requires RepoId)
- SentryApp: Retrieve details of a specific custom Sentry App (requires SentryAppIdOrSlug)
- SentryAppInstallations: Retrieve installations of Sentry Apps for an organization
- ShortIdResolutions: Resolve a short issue ID to its full issue details (requires ShortId)
- TeamDetails: Retrieve details of a specific team (requires TeamId)
- TeamMembers: Retrieve members of a specific team (requires TeamId)
- UserOrganizations: Retrieve organizations associated with the authenticated user
Important Notes
- Most tables require OrganizationId to be set either as a connection property or as a filter in the query.
- The Sentry API uses cursor-based pagination via the Link response header for list endpoints.
- Several child tables require a parent identifier (e.g. ProjectId, IssueId, TeamId) to be specified as a filter.
- Date fields use ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.fffZ).
- Rate limiting applies - refer to Sentry API documentation for current limits.
API Documentation
For more information about the Sentry API, see the official Sentry API documentation.
Usage Examples
UserOrganizations:
SELECT * FROM UserOrganizations
Organizations:
SELECT * FROM Organizations
OrganizationProjects:
SELECT * FROM OrganizationProjects
OrganizationTeams:
SELECT * FROM OrganizationTeams
OrganizationMembers:
SELECT * FROM OrganizationMembers
OrganizationReleases:
SELECT * FROM OrganizationReleases
OrganizationRepositories:
SELECT * FROM OrganizationRepositories
OrganizationAvailableIntegrations:
SELECT * FROM OrganizationAvailableIntegrations
OrganizationClientKeys:
SELECT * FROM OrganizationClientKeys
OrganizationDataForwarders:
SELECT * FROM OrganizationDataForwarders
OrganizationSentryApps:
SELECT * FROM OrganizationSentryApps
OrganizationTrustedRelays:
SELECT * FROM OrganizationTrustedRelays
IntegrationProviders:
SELECT * FROM IntegrationProviders
SentryAppInstallations:
SELECT * FROM SentryAppInstallations
ProjectIssues:
SELECT * FROM ProjectIssues WHERE ProjectId = 'my-project'
ProjectEvents:
SELECT * FROM ProjectEvents WHERE ProjectId = 'my-project'
ProjectDetails:
SELECT * FROM ProjectDetails WHERE ProjectId = 'my-project'
ProjectMembers:
SELECT * FROM ProjectMembers WHERE ProjectId = 'my-project'
ProjectUsers:
SELECT * FROM ProjectUsers WHERE ProjectId = 'my-project'
ProjectTeams:
SELECT * FROM ProjectTeams WHERE ProjectId = 'my-project'
ProjectOwnership:
SELECT * FROM ProjectOwnership WHERE ProjectId = 'my-project'
IssueDetails:
SELECT * FROM IssueDetails WHERE IssueId = '123456789'
IssueEvents:
SELECT * FROM IssueEvents WHERE IssueId = '123456789'
IssueExternalLinks:
SELECT * FROM IssueExternalLinks WHERE IssueId = '123456789'
IssueEventDetails:
SELECT * FROM IssueEventDetails WHERE IssueId = '123456789' AND EventId = 'event-uuid'
IssueTagDetails:
SELECT * FROM IssueTagDetails WHERE IssueId = '123456789' AND TagKey = 'environment'
TeamMembers:
SELECT * FROM TeamMembers WHERE TeamId = 'my-team'
TeamDetails:
SELECT * FROM TeamDetails WHERE TeamId = 'my-team'
OrganizationRelease:
SELECT * FROM OrganizationRelease WHERE Version = '1.0.0'
ReleaseDeploys:
SELECT * FROM ReleaseDeploys WHERE Version = '1.0.0'
ReleaseCommitFiles:
SELECT * FROM ReleaseCommitFiles WHERE Version = '1.0.0'
ProjectReleaseCommits:
SELECT * FROM ProjectReleaseCommits WHERE ProjectId = 'my-project' AND Version = '1.0.0'
ProjectReleaseFiles:
SELECT * FROM ProjectReleaseFiles WHERE ProjectId = 'my-project' AND Version = '1.0.0'
OrganizationReleaseFile:
SELECT * FROM OrganizationReleaseFile WHERE Version = '1.0.0' AND FileId = 'file-id'
RepositoryCommits:
SELECT * FROM RepositoryCommits WHERE RepoId = 'repo-id'
ProjectEventDetails:
SELECT * FROM ProjectEventDetails WHERE ProjectId = 'my-project' AND EventId = 'event-uuid'
OrganizationIntegration:
SELECT * FROM OrganizationIntegration WHERE IntegrationId = 'integration-id'
SentryApp:
SELECT * FROM SentryApp WHERE SentryAppIdOrSlug = 'my-sentry-app'
ShortIdResolutions:
SELECT * FROM ShortIdResolutions WHERE ShortId = 'ORG-1'
EventIdResolutions:
SELECT * FROM EventIdResolutions WHERE EventId = 'event-uuid'
OrganizationEventStatsByProject:
SELECT * FROM OrganizationEventStatsByProject WHERE Field = 'sum(quantity)'
Connection Properties
The connection string properties are the various options that can be used to establish a connection. This section provides a complete list of the options you can configure in the connection string for this provider.
| Property | Description |
| APIKey | Your Sentry Auth Token. |
| AuthScheme | The scheme used for authentication. Accepted entries are APIKey or None. Allowed values are: BASIC, NONE, NTLM, OAUTH, APIKEY, OAUTH_CLIENT |
| OrganizationId | Your Sentry organization Id or slug. |